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

EcosystemPackageFixed inAdvisory
Debian:12rails2:5.2.4.3+dfsg-1DEBIAN-CVE-2020-8166
Debian:13rails2:5.2.4.3+dfsg-1DEBIAN-CVE-2020-8166
Debian:14rails2:5.2.4.3+dfsg-1DEBIAN-CVE-2020-8166
RubyGemsactionpack5.2.4.3GHSA-jp5v-5gx4-jmj9
RubyGemsactionpack6.0.3.1GHSA-jp5v-5gx4-jmj9

Affected products (as reported)

VendorProductVersions
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