Live threats

All CVEs / Rubyonrails

CVE-2020-8166Rubyonrails Rails

Medium 4.3 No auth needed

Priority
41
CVSS 3.1
4.3
EPSS
1.7%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Jul 2, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-352
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rails.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems actionpack ≥ 5.0.0 < 5.2.4.3 5.2.4.3 gem "actionpack", ">= 5.2.4.3"
RubyGems actionpack ≥ 6.0.0 < 6.0.3.1 6.0.3.1 gem "actionpack", ">= 6.0.3.1"

Per OSV / GitHub Advisories (GHSA-jp5v-5gx4-jmj9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubyonrailsrails< 5.2.4.3
rubyonrailsrails≥ 6.0.0 < 6.0.3.1
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.