Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-8166
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:09 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-8166
Complete source record
{
"id": "b904757d57ecb9be2d61bed425d17f87c7e1eaeedaadccf4e814afee5c7f6dd8",
"url": "https://osv.dev/vulnerability/CVE-2020-8166",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-8166",
"summary": "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.",
"evidence": "osv:CVE-2020-8166",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-8166",
"aliases": [
"CVE-2020-8166",
"GHSA-jp5v-5gx4-jmj9"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/rails/rails",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "7b5cc5a5dfcf38522be0a4b5daa97c5b2ba26c20"
},
{
"introduced": "66cabeda2c46c582d19738e1318be8d59584cc5b"
},
{
"fixed": "34991a6ae2fc68347c01ea7382fa89004159e019"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "5.2.4.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.0.3.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v6.0.3",
"v5.2.4.2",
"v6.0.3.rc1",
"v5.2.4.1",
"v5.2.4",
"v5.2.4.rc1",
"v6.0.0",
"v5.2.1.rc1",
"v5.2.0.rc1",
"v5.1.0.beta1",
"v5.0.0.beta4",
"v5.0.0.beta2",
"v5.0.0.beta1",
"v4.2.0.beta1",
"v4.0.0.rc1",
"v4.0.0.beta1",
"v3.2.0.rc1",
"v3.1.0.rc1",
"v3.1.0.beta1",
"v3.0.0.beta3",
"v3.0.0.beta.3",
"v2.0.1",
"v2.0.0",
"v2.0.0_RC2",
"v2.0.0_RC1",
"v2.0.0_PR",
"v1.1.1",
"v1.1.0",
"v1.1.0_RC1",
"v0.14.3",
"v0.14.1",
"v0.13.1",
"v0.13.0",
"v0.12.0",
"v0.11.1",
"v0.11.0",
"v0.10.1",
"v0.10.0",
"v0.9.5",
"v0.9.4.1",
"v0.9.4",
"v0.9.3",
"v0.9.2",
"v0.9.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-8166.json"
}
}
],
"modified": "2026-10-24T10:30:35.903394885Z",
"provider": "osv",
"references": [
"https://www.debian.org/security/2020/dsa-4766",
"https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw",
"https://hackerone.com/reports/732415"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-8166",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 433862,
"published_at": "2020-07-02T19:15:12.513+00:00"
}