CVE-2020-8166
MEDIUM 4.3CVSS 3.1Ability to forge per-form CSRF tokens in Rails
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.
- Published
- 2 Jul 2020
- Last modified
- 2 Dec 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-352
- Also known as
- GHSA-jp5v-5gx4-jmj9
- Sources
- NVDJSONCVE ListJSONOSV GHSA-jp5v-5gx4-jmj9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| CVE List | CISA-ADP | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
< 5.2.4.3 | 5.2.4.3 |
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
>= 6.0.0, < 6.0.3.1 | 6.0.3.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| CVE List | n/a | https://github.com/rails/rails | = Fixed in 5.2.4.3, 6.0.3.1 | |
| OSV | RubyGems | actionpack | >= 5.0.0, < 5.2.4.3 | 5.2.4.3 |
| OSV | RubyGems | actionpack | >= 6.0.0, < 6.0.3.1 | 6.0.3.1 |
References
- https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw · Mailing List, Patch, Third Party Advisory, x_refsource_MISC, WEB
- https://hackerone.com/reports/732415 · Exploit, Third Party Advisory, x_refsource_MISC, WEB
- https://www.debian.org/security/2020/dsa-4766 · Third Party Advisory, vendor-advisory, x_refsource_DEBIAN, WEB
- http://seclists.org/fulldisclosure/2026/Dec/2
- https://nvd.nist.gov/vuln/detail/CVE-2020-8166 · ADVISORY
- https://github.com/rails/rails · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2020-8166.yml · WEB
- https://groups.google.com/forum/#!topic/rubyonrails-security/NOjKiGeXUgw · WEB
History
- 2 Dec 2026 00:24 UTC · NVD: 1 reference added
- 1 Dec 2026 23:34 UTC · CVE List: first stored (published 2 Jul 2020)
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Jul 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 May 2020)