CVE-2020-8166
Ability to forge per-form CSRF tokens in Rails
Record from NVD · Published May 18, 2020
rails is fixed in 6.0.3.1 and 5.2.4.3 (RubyGems)
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.
EPSS 1.67% · 77.4th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rails | RubyGems | 6.0.3.1, 5.2.4.3 |
| actionpack | RubyGems | 6.0.3.1, 5.2.4.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | 0, 6.0.0 |
| debian | debian_linux | 10.0 |
Timeline
- May 18, 2020 CVE Published
- Aug 27, 2020 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Distribution Patch
- Mar 17, 2026 Security Advisory (4 in total, the first dated here)
- Aug 28, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-8166
vulnetix vdb fixes CVE-2020-8166
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-8166/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart