{"id":"CVE-2020-8166","details":"A CSRF forgery vulnerability exists in rails \u003c 5.2.5, rails \u003c 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.","aliases":["GHSA-jp5v-5gx4-jmj9"],"modified":"2026-04-10T04:28:18.309820Z","published":"2020-07-02T19:15:12.513Z","related":["SUSE-SU-2020:3036-1","SUSE-SU-2020:3147-1","SUSE-SU-2020:3160-1","SUSE-SU-2024:0103-1","openSUSE-SU-2020:1993-1","openSUSE-SU-2020:2000-1","openSUSE-SU-2024:10589-1","openSUSE-SU-2024:11317-1","openSUSE-SU-2024:11318-1","openSUSE-SU-2024:11821-1"],"references":[{"type":"ADVISORY","url":"https://www.debian.org/security/2020/dsa-4766"},{"type":"FIX","url":"https://groups.google.com/g/rubyonrails-security/c/NOjKiGeXUgw"},{"type":"EVIDENCE","url":"https://hackerone.com/reports/732415"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails","events":[{"introduced":"0"},{"fixed":"7b5cc5a5dfcf38522be0a4b5daa97c5b2ba26c20"},{"introduced":"66cabeda2c46c582d19738e1318be8d59584cc5b"},{"fixed":"34991a6ae2fc68347c01ea7382fa89004159e019"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"5.2.4.3"},{"introduced":"6.0.0"},{"fixed":"6.0.3.1"}]}}],"versions":["v0.10.0","v0.10.1","v0.11.0","v0.11.1","v0.12.0","v0.13.0","v0.13.1","v0.14.1","v0.14.3","v0.9.1","v0.9.2","v0.9.3","v0.9.4","v0.9.4.1","v0.9.5","v1.1.0","v1.1.0_RC1","v1.1.1","v2.0.0","v2.0.0_PR","v2.0.0_RC1","v2.0.0_RC2","v2.0.1","v3.0.0.beta.3","v3.0.0.beta3","v3.1.0.beta1","v3.1.0.rc1","v3.2.0.rc1","v4.0.0.beta1","v4.0.0.rc1","v4.2.0.beta1","v5.0.0.beta1","v5.0.0.beta2","v5.0.0.beta4","v5.1.0.beta1","v5.2.0.rc1","v5.2.1.rc1","v5.2.4","v5.2.4.1","v5.2.4.2","v5.2.4.rc1","v6.0.0","v6.0.3","v6.0.3.rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-8166.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"10.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"}]}