CVE-2020-8165: 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
Noroxi assessment
Priority: Plan (action score 53/100)
- Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 45.7% (FIRST EPSS); higher than 98.7% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: rails (Debian:10) 2:5.2.2.1+dfsg-1+deb10u2; rails (Debian:12) 2:5.2.4.3+dfsg-1; rails (Debian:8) 2:4.1.8-1+deb8u7.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Add it to your regular patch cycle. Upgrade to rails (Debian:10) 2:5.2.2.1+dfsg-1+deb10u2; rails (Debian:12) 2:5.2.4.3+dfsg-1; rails (Debian:8) 2:4.1.8-1+deb8u7 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2021-01345
- GHSA-2p68-f74v-9wc6
- DLA-2251-1
- DLA-2282-1
- DSA-4766-1
- openSUSE-SU-2020:1677-1
- openSUSE-SU-2020:1679-1
- openSUSE-SU-2020:1993-1
- openSUSE-SU-2020:2000-1
- openSUSE-SU-2024:10589-1
- openSUSE-SU-2024:11828-1
- RHSA-2021:1313
- SUSE-SU-2020:2899-1
- SUSE-SU-2020:2929-1
- SUSE-SU-2020:3036-1
- SUSE-SU-2020:3147-1
- SUSE-SU-2020:3160-1
- Published
- Jun 19, 2020
- Updated
- Jun 16, 2026
- EPSS
- 45.7% · 98th percentile
- CWE
- CWE-502
Report tools
Action score
53
Plan
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 14 / 30 · 45.7%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| rubyonrails | rails | cpe:2.3:a:rubyonrails:rails |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- debian debian linux8.0
- debian debian linux9.0
- opensuse leap15.1
- opensuse leap15.2
- rubyonrails railsbefore 5.2.4.3
- rubyonrails rails6.0.0 and later · before 6.0.3.1
Versions reported by the vendor
Affected version ranges reported by the assigning authority (hackerone). Independent of NVD's CPE analysis and usually ahead of it.
n/a https://github.com/rails/rails
- Fixed in 5.2.4.3, 6.0.3.1affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:10 | rails | before 2:5.2.2.1+dfsg-1+deb10u2 | 2:5.2.2.1+dfsg-1+deb10u2 |
| Debian:12 | rails | before 2:5.2.4.3+dfsg-1 | 2:5.2.4.3+dfsg-1 |
| Debian:8 | rails | before 2:4.1.8-1+deb8u7 | 2:4.1.8-1+deb8u7 |
| Debian:9 | rails | before 2:4.2.7.1-1+deb9u3 | 2:4.2.7.1-1+deb9u3 |
| openSUSE:Leap 15.1 | rmt-server | before 2.6.5-lp151.2.18.2 | 2.6.5-lp151.2.18.2 |
| openSUSE:Leap 15.1 | rubygem-activesupport-5_1 | before 5.1.4-lp151.3.3.1 | 5.1.4-lp151.3.3.1 |
| openSUSE:Leap 15.2 | rmt-server | before 2.6.5-lp152.2.3.1 | 2.6.5-lp152.2.3.1 |
| openSUSE:Leap 15.2 | rubygem-activesupport-5_1 | before 5.1.4-lp152.4.3.1 | 5.1.4-lp152.4.3.1 |
| openSUSE:Tumbleweed | rmt-server | before 2.6.13-1.1 | 2.6.13-1.1 |
| openSUSE:Tumbleweed | rubygem-activesupport-6.0 | before 6.0.4.4-1.1 | 6.0.4.4-1.1 |
| Red Hat:satellite_capsule:6.9::el7 | ansible-collection-redhat-satellite | before 0:2.0.1-1.el7sat | 0:2.0.1-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | ansible-runner | before 0:1.4.6-1.el7ar | 0:1.4.6-1.el7ar |
| Red Hat:satellite_capsule:6.9::el7 | ansiblerole-foreman_scap_client | before 0:0.1.0-1.el7sat | 0:0.1.0-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | ansiblerole-insights-client | before 0:1.7.1-1.el7sat | 0:1.7.1-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | ansiblerole-satellite-receptor-installer | before 0:0.6.13-1.el7sat | 0:0.6.13-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | crane-selinux | before 0:3.5.1-1.el7sat | 0:3.5.1-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | createrepo_c | before 0:0.17.1-1.el7pc | 0:0.17.1-1.el7pc |
| Red Hat:satellite_capsule:6.9::el7 | createrepo_c-debuginfo | before 0:0.17.1-1.el7pc | 0:0.17.1-1.el7pc |
| Red Hat:satellite_capsule:6.9::el7 | createrepo_c-libs | before 0:0.17.1-1.el7pc | 0:0.17.1-1.el7pc |
| Red Hat:satellite_capsule:6.9::el7 | foreman | before 0:2.3.1.20-1.el7sat | 0:2.3.1.20-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-bootloaders-redhat | before 0:202005201200-1.el7sat | 0:202005201200-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-bootloaders-redhat-tftpboot | before 0:202005201200-1.el7sat | 0:202005201200-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-debug | before 0:2.3.1.20-1.el7sat | 0:2.3.1.20-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-discovery-image | before 1:3.7.4-2.el7sat | 1:3.7.4-2.el7sat |
+96
Same product
rubyonrails: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-5418There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted accepKEV90Now
- CVE-2016-0752Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, anKEV89Now
- CVE-2019-5420A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically gene66This week
Published before and after this one in the same product
- ← EarlierCVE-2020-8162Jun 19, 2020 · A client side enforcement of server side security vulnerability exists in rails < 5.2.4.2 and rails < 6.0.3.1 ActiveStorage's S3 adapter tha31Monitor
- ← EarlierCVE-2020-8164Jun 19, 2020 · A deserialization of untrusted data vulnerability exists in rails < 5.2.4.3, rails < 6.0.3.1 which can allow an attacker to supply informati31Monitor
- Later →CVE-2020-8167Jun 19, 2020 · A CSRF vulnerability exists in rails <= 6.0.3 rails-ujs module that could allow attackers to send CSRF tokens to wrong domains.26Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:rails | 2:5.2.4.3+dfsg-1 · Debian:12 | Package registry (OSV) |
| opensuse:rmt-server | 2.6.5-lp152.2.3.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:rubygem-activesupport-5_1 | 5.1.4-lp151.3.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:rubygem-activesupport-6.0 | 6.0.4.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:ansible-collection-redhat-satellite | 0:2.0.1-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansible-runner | 0:1.4.6-1.el7ar · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansiblerole-foreman_scap_client | 0:0.1.0-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansiblerole-insights-client | 0:1.7.1-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansiblerole-satellite-receptor-installer | 0:0.6.13-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:crane-selinux | 0:3.5.1-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:createrepo_c | 0:0.17.1-1.el7pc · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:createrepo_c-debuginfo | 0:0.17.1-1.el7pc · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:createrepo_c-libs | 0:0.17.1-1.el7pc · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:foreman | 0:2.3.1.20-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:foreman-bootloaders-redhat | 0:202005201200-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:foreman-bootloaders-redhat-tftpboot | 0:202005201200-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| RubyGems:activesupport | 5.2.4.3 | Package registry (OSV) |
| RubyGems:activesupport | 6.0.3.1 | Package registry (OSV) |
| suse:rmt-server | 2.6.5-3.3.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | Package registry (OSV) |
| suse:rubygem-activesupport-4_2 | 4.2.9-7.9.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:rubygem-activesupport-5_1 | 5.1.4-3.3.1 · SUSE:Linux Enterprise High Availability Extension 15 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×7
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:42 | 2020-05-20 |
| Proof-of-concept repository on GitHub | stars:1 | 2020-11-13 |
| Proof-of-concept repository on GitHub | stars:0 | 2020-12-25 |
| Proof-of-concept repository on GitHub | stars:4 | 2021-01-03 |
| Proof-of-concept repository on GitHub | stars:0 | 2021-01-15 |
| Proof-of-concept repository on GitHub | stars:0 | 2021-01-15 |
| Proof-of-concept repository on GitHub | stars:1 | 2021-02-14 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-31 d
- Published
- TodayNov 3, 2026+2328 d
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-20-452 · Jun 22, 2020(Ruby on Rails Güvenlik Güncellemesi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-502 · Deserialization of Untrusted DataCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
Data received over the network is deserialized into the language’s native object format without verifying its source. Code paths inside the object can be triggered during deserialization.
The bug in code
The whole CWE-502 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
payload = sock.recv(65536)
job = pickle.loads(payload)Fixed
payload = sock.recv(65536)
if not hmac.compare_digest(sign(payload), header_sig):
raise PermissionError("invalid signature")
job = JobSchema.validate(json.loads(payload))Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00034.html
- groups.google.com/g/rubyonrails-security/c/bv6fW4S0Y1c
- lists.debian.org/debian-lts-announce/2020/06/msg00022.html
- lists.debian.org/debian-lts-announce/2020/07/msg00013.html
- weblog.rubyonrails.org/2020/5/18/Rails-5-2-4-3-and-6-0-3-1-have-been-released/
- www.debian.org/security/2020/dsa-4766
- security.netapp.com/advisory/ntap-20250509-0002/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.