VDB

CVE-2020-8166

CVE-2020-8166 PUBLISHED CVSS 4.300000190734863 MEDIUM

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.

PackageEcosystemFixed in
railsRubyGems6.0.3.1, 5.2.4.3
actionpackRubyGems6.0.3.1, 5.2.4.3

Risk scores

CVSS 3.1
4.300000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS Score
1.67%
77.4th percentile

Affected products

VendorProductVersions
rubyonrailsrails0, 6.0.0
debiandebian_linux10.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›