CVE-2020-8165: A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow
CVE-2020-8165 is a critical-severity flaw (CVSS 9.8) affecting rails, debian linux, leap. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 45.7% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-502 |
| Published | 2020-06-19 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: masahiro331/CVE-2020-8165 (42 stars)
- GitHub PoC: hybryx/CVE-2020-8165 (4 stars)
- GitHub PoC: umiterkol/CVE-2020-8165--Auto-Shell (1 stars)
- Write-up: hackerone.com/reports/413388
- GitHub PoC: AssassinUKG/CVE-2020-8165
- GitHub PoC: danielklim/cve-2020-8165-demo
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-8165?
rails: upgrade to 5.2.4.3, 6.0.3.1; debian linux: mitigate or apply the listed mitigation; leap: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2020-8165 being exploited?
CVE-2020-8165 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2020-8165 affect?
CVE-2020-8165 affects rails, debian linux, leap. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2020-8165?
Priority 74/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Ruby on Rails vulnerabilities · Debian vulnerabilities
Related CVEs
- CVE-2023-22795 HIGH 7.5 UPGRADE MITIGATE A regular expression based DoS vulnerability in Action Dispatch <6.1.7.1 and <7.0.4.1 related to the If-None-M
- CVE-2023-22792 HIGH 7.5 UPGRADE A regular expression based DoS vulnerability in Action Dispatch <6.0.6.1,< 6.1.7.1, and <7.0.4.1
- CVE-2026-33167 MEDIUM 6.1 UPGRADE Action Pack is a Rubygem for building web applications on the Rails framework
- CVE-2026-33195 CRITICAL 9.8 UPGRADE Active Storage allows users to attach cloud and local files in Rails applications
- CVE-2026-33658 MEDIUM 6.5 UPGRADE Active Storage allows users to attach cloud and local files in Rails applications