A CSRF vulnerability exists in rails <= 6.0.3 rails-ujs module that could allow attackers to send CSRF tokens to wrong domains.
- Published
- Jun 19, 2020
- Updated
- Jun 16, 2026
- EPSS
- 1.5% · 73th percentile
- CWE
- CWE-352
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
26
Monitor
Low priority for now.
- CVSS
- 26 / 40 · 6.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.5%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| rubyonrails | rails | cpe:2.3:a:rubyonrails:rails |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- rubyonrails railsbefore 5.2.4.3
- rubyonrails rails6.0.0 and later · before 6.0.3.1
Versions reported by the vendor
Affected version ranges reported by the assigning authority (hackerone). Independent of NVD's CPE analysis and usually ahead of it.
n/a http://github.com/rails/rails
- Fixed in 5.2.4.3, 6.0.3.1affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:10 | rails | before 2:5.2.2.1+dfsg-1+deb10u2 | 2:5.2.2.1+dfsg-1+deb10u2 |
| Debian:12 | rails | before 2:5.2.4.3+dfsg-1 | 2:5.2.4.3+dfsg-1 |
| openSUSE:Leap 15.1 | rmt-server | before 2.6.5-lp151.2.18.2 | 2.6.5-lp151.2.18.2 |
| openSUSE:Leap 15.2 | rmt-server | before 2.6.5-lp152.2.3.1 | 2.6.5-lp152.2.3.1 |
| openSUSE:Tumbleweed | rmt-server | before 2.6.13-1.1 | 2.6.13-1.1 |
| openSUSE:Tumbleweed | rubygem-actionview-6.0 | before 6.0.4.4-1.1 | 6.0.4.4-1.1 |
| Red Hat:satellite_capsule:6.9::el7 | ansible-collection-redhat-satellite | before 0:2.0.1-1.el7sat | 0:2.0.1-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | ansible-runner | before 0:1.4.6-1.el7ar | 0:1.4.6-1.el7ar |
| Red Hat:satellite_capsule:6.9::el7 | ansiblerole-foreman_scap_client | before 0:0.1.0-1.el7sat | 0:0.1.0-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | ansiblerole-insights-client | before 0:1.7.1-1.el7sat | 0:1.7.1-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | ansiblerole-satellite-receptor-installer | before 0:0.6.13-1.el7sat | 0:0.6.13-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | crane-selinux | before 0:3.5.1-1.el7sat | 0:3.5.1-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | createrepo_c | before 0:0.17.1-1.el7pc | 0:0.17.1-1.el7pc |
| Red Hat:satellite_capsule:6.9::el7 | createrepo_c-debuginfo | before 0:0.17.1-1.el7pc | 0:0.17.1-1.el7pc |
| Red Hat:satellite_capsule:6.9::el7 | createrepo_c-libs | before 0:0.17.1-1.el7pc | 0:0.17.1-1.el7pc |
| Red Hat:satellite_capsule:6.9::el7 | foreman | before 0:2.3.1.20-1.el7sat | 0:2.3.1.20-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-bootloaders-redhat | before 0:202005201200-1.el7sat | 0:202005201200-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-bootloaders-redhat-tftpboot | before 0:202005201200-1.el7sat | 0:202005201200-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-debug | before 0:2.3.1.20-1.el7sat | 0:2.3.1.20-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-discovery-image | before 1:3.7.4-2.el7sat | 1:3.7.4-2.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-discovery-image-service | before 0:1.0.0-4.el7sat | 0:1.0.0-4.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-discovery-image-service-tui | before 0:1.0.0-4.el7sat | 0:1.0.0-4.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-installer | before 1:2.3.1.10-1.el7sat | 1:2.3.1.10-1.el7sat |
| Red Hat:satellite_capsule:6.9::el7 | foreman-installer-katello | before 1:2.3.1.10-1.el7sat | 1:2.3.1.10-1.el7sat |
+96
Same product
rubyonrails: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-5418There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted accepKEV90Now
- CVE-2016-0752Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, anKEV89Now
- CVE-2019-5420A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically gene66This week
- CVE-2020-8163The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument o60This week
- CVE-2013-0156active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, and 3.2.x before 3.2.160This week
- CVE-2013-0333lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly convert JSON data to59Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:rails | 2:5.2.4.3+dfsg-1 · Debian:12 | Package registry (OSV) |
| opensuse:rmt-server | 2.6.5-lp152.2.3.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:rubygem-actionview-5_1 | 5.1.4-150000.3.6.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:rubygem-actionview-6.0 | 6.0.4.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:ansible-collection-redhat-satellite | 0:2.0.1-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansible-runner | 0:1.4.6-1.el7ar · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansiblerole-foreman_scap_client | 0:0.1.0-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansiblerole-insights-client | 0:1.7.1-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:ansiblerole-satellite-receptor-installer | 0:0.6.13-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:crane-selinux | 0:3.5.1-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:createrepo_c | 0:0.17.1-1.el7pc · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:createrepo_c-debuginfo | 0:0.17.1-1.el7pc · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:createrepo_c-libs | 0:0.17.1-1.el7pc · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:foreman | 0:2.3.1.20-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:foreman-bootloaders-redhat | 0:202005201200-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| red hat:foreman-bootloaders-redhat-tftpboot | 0:202005201200-1.el7sat · Red Hat:satellite_capsule:6.9::el7 | Package registry (OSV) |
| RubyGems:actionview | 5.2.4.3 | Package registry (OSV) |
| RubyGems:actionview | 6.0.3.1 | Package registry (OSV) |
| suse:rmt-server | 2.6.5-3.3.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | Package registry (OSV) |
| suse:rubygem-actionview-5_1 | 5.1.4-150000.3.6.1 · SUSE:Linux Enterprise High Availability Extension 15 SP1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- high · data or configuration can be modified
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- High
- Availability impact
- None
Weakness class (CWE)
CWE-352 · Cross-Site Request Forgery (CSRF)CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
nvd-primary
Root cause
State-changing requests rely on the session cookie the browser sends automatically; nothing verifies that the request came from the user’s own page.
The bug in code
The whole CWE-352 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
app.use(session({ cookie: { httpOnly: true } }));app.post("/account/address", updateAddress);Fixed
app.use(session({ cookie: { httpOnly: true, sameSite: "lax" } }));app.post("/account/address", csrfProtection, updateAddress);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Vendor advisories and official records. Exploit/PoC links are deliberately left out.