Vulnerability · Published Jul 2, 2020 · Assigned by hackerone
CVE-2020-8166
Medium 4.3
In plain English
A medium-severity cross-site request forgery in https://github.com/rails/rails. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)1.7%top 23.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:5.2.4.3+dfsg-1 | DEBIAN-CVE-2020-8166 |
| Debian:13 | rails | 2:5.2.4.3+dfsg-1 | DEBIAN-CVE-2020-8166 |
| Debian:14 | rails | 2:5.2.4.3+dfsg-1 | DEBIAN-CVE-2020-8166 |
| RubyGems | actionpack | 5.2.4.3 | GHSA-jp5v-5gx4-jmj9 |
| RubyGems | actionpack | 6.0.3.1 | GHSA-jp5v-5gx4-jmj9 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | Fixed in 5.2.4.3, 6.0.3.1 |
Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
References
- https://hackerone.com/reports/732415 x_refsource_MISC
- https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw x_refsource_MISC
- DSA-4766 vendor-advisory, x_refsource_DEBIAN