CVE-2021-22902: The actionpack ruby gem (a framework for handling and responding to web requests in Rails) before 6.0.3.7, 6.1.3.2 suffers from a possible d
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 2.8% (FIRST EPSS); higher than 86.6% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: rails (Debian:12) 2:6.0.3.7+dfsg-1; rubygem-actionpack-6.0 (openSUSE:Tumbleweed) 6.0.4.4-1.1; foreman (Red Hat:satellite_capsule:6.10::el7) 0:2.5.2.17-2.el7sat.
Low priority for now. Upgrade to rails (Debian:12) 2:6.0.3.7+dfsg-1; rubygem-actionpack-6.0 (openSUSE:Tumbleweed) 6.0.4.4-1.1; foreman (Red Hat:satellite_capsule:6.10::el7) 0:2.5.2.17-2.el7sat or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
The actionpack ruby gem (a framework for handling and responding to web requests in Rails) before 6.0.3.7, 6.1.3.2 suffers from a possible denial of service vulnerability in the Mime type parser of Action Dispatch. Carefully crafted Accept headers can cause the mime type parser in Action Dispatch to do catastrophic backtracking in the regular expression engine.
- Published
- Jun 11, 2021
- Updated
- Jun 16, 2026
- EPSS
- 2.8% · 86th percentile
- CWE
- CWE-400
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.8%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| rubyonrails | rails | cpe:2.3:a:rubyonrails:rails |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- rubyonrails rails6.0.0 and later · before 6.0.3.7
- rubyonrails rails6.1.0 and later · before 6.1.0.2
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 https://github.com/rails/rails
- Fixed in 6.0.3.7, 6.1.3.2affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | rails | before 2:6.0.3.7+dfsg-1 | 2:6.0.3.7+dfsg-1 |
| openSUSE:Tumbleweed | rubygem-actionpack-6.0 | before 6.0.4.4-1.1 | 6.0.4.4-1.1 |
| Red Hat:satellite_capsule:6.10::el7 | foreman | before 0:2.5.2.17-2.el7sat | 0:2.5.2.17-2.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | python-aiohttp | before 0:3.7.4-1.el7pc | 0:3.7.4-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-ecdsa | before 0:0.13.3-2.el7pc | 0:0.13.3-2.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-pyyaml | before 0:5.4.1-1.el7pc | 0:5.4.1-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-urllib3 | before 0:1.26.5-1.el7pc | 0:1.26.5-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-django | before 0:2.2.24-1.el7pc | 0:2.2.24-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-ecdsa | before 0:0.13.3-2.el7pc | 0:0.13.3-2.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-pyyaml | before 0:5.4.1-1.el7pc | 0:5.4.1-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-urllib3 | before 0:1.26.5-1.el7pc | 0:1.26.5-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | satellite | before 0:6.10.0-3.el7sat | 0:6.10.0-3.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | satellite-capsule | before 0:6.10.0-3.el7sat | 0:6.10.0-3.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | tfm-rubygem-nokogiri | before 0:1.11.3-2.el7sat | 0:1.11.3-2.el7sat |
| Red Hat:satellite:6.10::el7 | candlepin | before 0:4.0.9-1.el7sat | 0:4.0.9-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-actionpack | before 0:6.0.3.7-1.el7sat | 0:6.0.3.7-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-activerecord-session_store | before 0:2.0.0-1.el7sat | 0:2.0.0-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-addressable | before 0:2.8.0-1.el7sat | 0:2.8.0-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-puma | before 0:5.3.2-1.el7sat | 0:5.3.2-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-rails | before 0:6.0.3.7-1.el7sat | 0:6.0.3.7-1.el7sat |
| RubyGems | actionpack | from 6.0.0 · before 6.0.3.7 | 6.0.3.7 |
| RubyGems | actionpack | from 6.1.0 · before 6.1.3.2 | 6.1.3.2 |
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
Published before and after this one in the same product
- ← EarlierCVE-2021-22881Feb 11, 2021 · The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an open redirect vulnerability.50Plan
- ← EarlierCVE-2021-22885May 27, 2021 · A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polym31Monitor
- Later →CVE-2021-22903Jun 11, 2021 · The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability.24Monitor
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:6.0.3.7+dfsg-1 · Debian:12 | Package registry (OSV) |
| opensuse:rubygem-actionpack-6.0 | 6.0.4.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:candlepin | 0:4.0.9-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:foreman | 0:2.5.2.17-2.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-aiohttp | 0:3.7.4-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-ecdsa | 0:0.13.3-2.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-pyyaml | 0:5.4.1-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python3-ecdsa | 0:0.13.3-2.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python3-pyyaml | 0:5.4.1-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:satellite | 0:6.10.0-3.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:satellite-capsule | 0:6.10.0-3.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-actionpack | 0:6.0.3.7-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-activerecord-session_store | 0:2.0.0-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-nokogiri | 0:1.11.3-2.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| RubyGems:actionpack | 6.0.3.7 | Package registry (OSV) |
| RubyGems:actionpack | 6.1.3.2 | 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.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) {
return node.children.map(expand);
}Fixed
const MAX_DEPTH = 32;
function expand(node, depth = 0) {
if (depth > MAX_DEPTH) throw new Error("too deep");
return node.children.map((c) => expand(c, depth + 1));
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change 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.