{"id":"CVE-2020-8166","state":"PUBLISHED","title":"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","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.","publishedAt":"2020-07-02T18:35:17.000Z","updatedAt":"2026-04-28T15:45:49.012Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","source":"CISA-ADP"},"assigner":"hackerone","products":["n/a https://github.com/rails/rails"],"affected":[{"vendor":"n/a","product":"https://github.com/rails/rails","versions":[{"version":"Fixed in 5.2.4.3, 6.0.3.1","status":"affected"}]}],"references":["https://hackerone.com/reports/732415","https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw","https://www.debian.org/security/2020/dsa-4766"],"weaknesses":["CWE-352"],"ingestedAt":"2026-10-29T19:47:44.297Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/8xxx/CVE-2020-8166.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2020-8166","state":"PUBLISHED","datePublished":"2020-07-02T18:35:17.000Z","dateUpdated":"2026-04-28T15:45:49.012Z","assignerShortName":"hackerone","assignerOrgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateReserved":"2020-01-28T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"https://github.com/rails/rails","versions":[{"version":"Fixed in 5.2.4.3, 6.0.3.1","status":"affected"}]}],"references":[{"url":"https://hackerone.com/reports/732415","tags":["x_refsource_MISC"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2020/dsa-4766","name":"DSA-4766","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-352","description":"Cross-Site Request Forgery (CSRF) (CWE-352)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"hackerone","dateUpdated":"2020-09-25T11:06:21.000Z","orgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"support@hackerone.com","ID":"CVE-2020-8166","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"https://github.com/rails/rails","version":{"version_data":[{"version_value":"Fixed in 5.2.4.3, 6.0.3.1"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Cross-Site Request Forgery (CSRF) (CWE-352)"}]}]},"references":{"reference_data":[{"name":"https://hackerone.com/reports/732415","refsource":"MISC","url":"https://hackerone.com/reports/732415"},{"name":"https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw","refsource":"MISC","url":"https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw"},{"name":"DSA-4766","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4766"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://hackerone.com/reports/732415","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4766","name":"DSA-4766","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T09:48:25.645Z"}},{"title":"CISA ADP Vulnrichment","references":[{"url":"https://hackerone.com/reports/732415","tags":["exploit"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":4.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-04-28T15:45:41.140315Z","id":"CVE-2020-8166","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-28T15:45:49.012Z"}}]}}}