CVE-2020-8166
mediumpriority · track · 18EPSS 0.017 · 77 %ileDEEURUUSEPSS · scored 2026-10-27
A CSRF forgery vulnerability exists in rails < 5.2.5, rails < 6.0.4 that makes it possible for an attacker to, given a global CSRF token such as the one present in the authenticity_token meta tag, forge a per-form CSRF token.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (74)
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-jp5v-5gx4-jmj9Ability to forge per-form CSRF tokens in Rails2020-05-26ghsa · osvUS
It is possible to, given a global CSRF token such as the one present in the authenticity_token meta tag, forge a per-form CSRF token for any action for that session. Impact ------ Given the ability to extract the global CSRF token, an attacker would be able to construct a per-form CSRF token for that session. Workarounds ----------- This is a low-severity security issue. As such, no workaround is necessarily until such time as the application can be upgraded.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (21)
External citations — patches, advisories, analysis.
- http://www.nsfocus.net/vulndb/48035cnnvd
- https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgwcnnvd
- https://hackerone.com/reports/732415cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-8166cnnvd
- https://vigilance.fr/vulnerability/rails-four-vulnerabilities-33413cnnvd
- https://weblog.rubyonrails.org/2020/5/18/Rails-5-2-4-3-and-6-0-3-1-have-been-released/Patchcnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.1780/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.3278/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan