CVE-2020-8166
Research article
CVE-2020-8166: Cross-Site Request Forgery in Ruby on Rails
| CVE | CVE-2020-8166 |
|---|---|
| Published | December 01, 2026 21:30 UTC |
| Research cut-off | December 01, 2026 21:20 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-06-17); CISA KEV catalog; vendor advisory page (debian.org); 1 exploit reference |
Executive summary
CVE-2020-8166 is a Cross-Site Request Forgery (CSRF) vulnerability in Ruby on Rails, with a CVSS 3.1 base score of 4.3 MEDIUM, scored by nvd@nist.gov [1]. The flaw affects versions of Rails prior to 5.2.4.3, and versions from 6.0.0 up to 6.0.3.1 [1]. The reviewed sources do not report exploitation [2]. The NVD record lists 5.2.4.3 and 6.0.3.1 as fixed versions [1].
Key points
- CVE-2020-8166 is a Cross-Site Request Forgery (CSRF) vulnerability in Ruby on Rails [1].
- The CVSS 3.1 base score is 4.3 MEDIUM, scored by nvd@nist.gov [1].
- The flaw affects versions of Rails prior to 5.2.4.3, and versions from 6.0.0 up to 6.0.3.1 [1].
- The reviewed sources do not report exploitation [2].
- The NVD record lists 5.2.4.3 and 6.0.3.1 as fixed versions [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2020-8166 | Ruby on Rails | Ruby on Rails | CWE-352 | 4.3 MEDIUM, scored by nvd@nist.gov | 2020-07-02 | 2026-06-17 | Modified |
Vulnerability description
A Cross-Site Request Forgery (CSRF) flaw is listed for Ruby on Rails, with CWE-352 [1]. The vulnerability is categorized under CWE-352 and is associated with the Rails web framework [1].
Attack surface and exploitation prerequisites
According to the CVSS vector, the attack requires no user interaction [1]. The vulnerability is accessible over the network [1], and no privileges are needed to exploit it [1].
Impact analysis
The CVSS vector indicates that the vulnerability may lead to a low impact on integrity [1]. There is no impact on confidentiality or availability [1].
Affected products and versions
| Affected | Fixed |
|---|---|
| < 5.2.4.3 | 5.2.4.3 |
| ≥ 6.0.0, < 6.0.3.1 | 6.0.3.1 |
Exploitation and threat intelligence status
CVE-2020-8166 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-01 [2]. The reviewed sources do not report exploitation [2].
Detection and exposure assessment
Readers can check if they are exposed by verifying if their installed version of Ruby on Rails falls within the affected range [1]. No detection steps are provided by the sources [1].
Remediation
The fixed versions for Ruby on Rails are 5.2.4.3 and 6.0.3.1 [1]. The Debian Security Advisory DSA-4766-1 recommends upgrading the rails packages to the fixed version [3].
Remediation checklist
Evidence gaps
- The sources do not describe the specific vulnerability or its root cause [1].
- The sources do not describe the technical mechanics of the flaw [1].
- The sources do not describe any indicators of compromise [1].
- The sources do not describe any workarounds or compensating controls [1].
- The sources do not mention a public exploit or proof-of-concept [4].
References
- CVE-2020-8166 record. NIST National Vulnerability Database (NVD), 2026-06-17. https://nvd.nist.gov/vuln/detail/CVE-2020-8166. Accessed 2026-12-01.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-01. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-01.
- Third party advisory page (debian.org). debian.org. https://www.debian.org/security/2020/dsa-4766. Accessed 2026-12-01.
- Follow-Up: Incomplete Remediation of CVE-2020-8166 and CSRF Isolation Weaknesses in Ruby on Rails. Full Disclosure, 2026-12-01. https://seclists.org/fulldisclosure/2026/Dec/2. Accessed 2026-12-01.
Summary
Posted by Daniel Owens via Fulldisclosure on Dec 01 Description On 26 April 2025, we published "Ruby on Rails Cross-Site Request Forgery" ( https://seclists.org/fulldisclosure/2025/Apr/29 ), which examined ActionController::RequestForgeryProtection, but much of the discussion surrounding our work fixated on a single question that did not address our central argument -- whether prepending a 32-b…
Severity breakdown
Medium · 4.3
An attacker without an account can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- low on integrity, none on confidentiality and availability
Weakness
- CWE-352: Cross-Site Request Forgery (CSRF)
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| https://github.com/rails/rails | Fixed in 5.2.4.3, 6.0.3.1 | — |
Public exploits
Exploit available
- Full Disclosure: Follow-Up: Incomplete Remediation of CVE-2020-8166 and CSRF Isolation Weaknesses in Ruby on Rails
- hackerone.com/reports/732415
References by type
Patches and fixed releases
Other references
Frequently asked questions
What is CVE-2020-8166?
CVE-2020-8166 is a Cross-Site Request Forgery (CSRF) vulnerability in Ruby on Rails, with a CVSS 3.1 base score of 4.3 MEDIUM, scored by nvd@nist.gov. The flaw affects versions of Rails prior to 5.2.4.3, and versions from 6.0.0 up to 6.0.3.1. The reviewed sources do not report exploitation. The NVD record lists 5.2.4.3 and 6.0.3.1 as fixed versions. Weakness type: Cross-Site Request Forgery (CSRF) (CWE-352).
How severe is CVE-2020-8166?
CVE-2020-8166 has a CVSS 3.1 base score of 4.3 (medium), from NVD. An attacker without an account can exploit this over the network if a user is tricked into an action.
Is CVE-2020-8166 being exploited?
Not as far as is known: CVE-2020-8166 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026. Exploit code or a proof of concept has been published, which makes attacks more likely. EPSS estimates a 1.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2020-8166?
https://github.com/rails/rails Fixed in 5.2.4.3, 6.0.3.1.
How do I fix CVE-2020-8166?
Upgrade Ruby on Rails to version 5.2.4.3. Upgrade Ruby on Rails to version 6.0.3.1. Check the Debian Security Advisory DSA-4766-1 for additional guidance.