Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Ruby

CVE-2020-8166

Medium · CVSS 4.3EPSS 1.7% First seen December 01, 2026
RubyWebVulnerabilities

Research article

CVE-2020-8166: Cross-Site Request Forgery in Ruby on Rails

CVECVE-2020-8166
PublishedDecember 01, 2026 21:30 UTC
Research cut-offDecember 01, 2026 21:20 UTC
Sources reviewed4: 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 IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2020-8166Ruby on RailsRuby on RailsCWE-3524.3 MEDIUM, scored by nvd@nist.gov2020-07-022026-06-17Modified

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

AffectedFixed
< 5.2.4.35.2.4.3
≥ 6.0.0, < 6.0.3.16.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

  1. Upgrade Ruby on Rails to version 5.2.4.3 [1].
  2. Upgrade Ruby on Rails to version 6.0.3.1 [1].
  3. Check the Debian Security Advisory DSA-4766-1 for additional guidance [3].

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

  1. 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. CVE ID, vendor, product, CWE, CVSS scores, affected versions, fixed versions, detection steps
  2. 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. Exploitation status
  3. Third party advisory page (debian.org). debian.org. https://www.debian.org/security/2020/dsa-4766. Accessed 2026-12-01. Fixed versions for Debian, remediation steps
  4. 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. Exploit reference

Written with AI assistance from the 4 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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…

Excerpt from Full Disclosure. No official description has been published yet.

Severity breakdown

Medium · 4.3 CVSS 3.1 base score from NVD

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

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Affected and fixed versions

ProductAffected versionsFixed in
https://github.com/rails/railsFixed in 5.2.4.3, 6.0.3.1—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

Public exploits

Exploit available Exploit code or a detailed exploitation write-up is public, so attacks are easier to carry out.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

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.

Timeline & sources

References

Related vulnerabilities & news