CVE-2021-22902Rubyonrails Rails
High 7.5 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Jun 11, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
≥ 6.0.0 < 6.0.3.7 |
6.0.3.7 |
gem "actionpack", ">= 6.0.3.7" |
| RubyGems | actionpack |
≥ 6.1.0 < 6.1.3.2 |
6.1.3.2 |
gem "actionpack", ">= 6.1.3.2" |
Per OSV / GitHub Advisories (GHSA-g8ww-46x2-2p65). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | ≥ 6.0.0 < 6.0.3.7 |
| rubyonrails | rails | ≥ 6.1.0 < 6.1.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.rubyonrails.org Exploit Mitigation Patch
- hackerone.com Permissions Required Third Party Advisory