CVE-2020-8165
highpriority · attend · 65EPSS 0.457 · 99 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow an attacker to unmarshal user-provided objects in MemCacheStore and RedisCacheStore potentially resulting in an RCE.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (7)
Public proof-of-concept and weaponised exploit code.
- AssassinUKG/CVE-2020-8165AssassinUKG/CVE-2020-8165PoC · poc_in_github
- danielklim/cve-2020-8165-demodanielklim/cve-2020-8165-demoPoC · poc_in_github
- hybryx/CVE-2020-8165hybryx/CVE-2020-8165PoC · poc_in_github
- masahiro331/CVE-2020-8165masahiro331/CVE-2020-8165PoC · poc_in_github
- progfay/CVE-2020-8165PoC for CVE-2020-8165PoC · poc_in_github
- taipansec/CVE-2020-8165taipansec/CVE-2020-8165PoC · poc_in_github
affected products (23)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-1093Ruby on Rails: Mehrere SchwachstellenDeutsch2020-05-18csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Ruby on Rails ausnutzen, um Sicherheitsvorkehrungen zu umgehen, Informationen offenzulegen, beliebigen Programmcode auszuführen oder Dateien zu manipulieren.
- GHSA-2p68-f74v-9wc6ActiveSupport potentially unintended unmarshalling of user-provided objects in MemCacheStore and RedisCacheStore2020-05-26ghsa · osvUS
In ActiveSupport, there is potentially unexpected behaviour in the MemCacheStore and RedisCacheStore where, when untrusted user input is written to the cache store using the `raw: true` parameter, re-reading the result from the cache can evaluate the user input as a Marshalled object instead of plain text. Vulnerable code looks like: ``` data = cache.fetch("demo", raw: true) { untrusted_string } ``` Versions Affected: rails < 5.2.5, rails < 6.0.4 Not affected: Applications not using MemCacheStore or RedisCacheStore. Applications that do not use the `raw` option when storing untrusted user input. Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1 Impact ------ Unmarshalling of untrusted user input can have impact up to and including RCE. At a minimum, this vulnerability allows an attacker to inject untrusted Ruby objects into a web application. In addition to upgrading to the latest versions of Rails, developers should ensure that whenever they are calling `Rails.cache.fetch` they are using consistent values of the `raw` parameter for both reading and writing, especially in the case of the RedisCacheStore which does not, prior to these changes, detect if data was serialized using the raw option upon deserialization. Workarounds ----------- It is recommended that application developers apply the suggested patch or upgrade to the latest release as soon as possible. If this is not possible, we recommend ensuring that all user-provided strings cached using the `raw` argument should be double-checked to ensure that they conform to the expected format.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (36)
External citations — patches, advisories, analysis.
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00031.htmlcnnvd
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00034.htmlcnnvd
- https://groups.google.com/g/rubyonrails-security/c/bv6fW4S0Y1ccnnvd
- https://hackerone.com/reports/413388cnnvd
- https://lists.debian.org/debian-lts-announce/2020/06/msg00022.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2020/07/msg00013.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-8165cnnvd
- https://vigilance.fr/vulnerability/rails-code-execution-via-Cache-Store-Deserialization-32594cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan