CVE-2021-22902
HIGH7.5EPSS 0.68%Denial of Service in Action Dispatch
Published: 5/5/2021Modified: 4/28/2026
Description
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.
Affected packages (2)
- Debian/railsfrom 0, < 2:6.0.3.7+dfsg-1
- RubyGems/actionpack>= 6.0.0, < 6.0.3.7
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-22902
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-22902
- WEBhttps://discuss.rubyonrails.org/t/cve-2021-22902-possible-denial-of-service-vulnerability-in-action-dispatch/77866
- WEBhttps://github.com/rails/rails/releases/tag/v6.0.3.7
- WEBhttps://github.com/rails/rails/releases/tag/v6.1.3.2
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22902.yml
- WEBhttps://groups.google.com/g/rubyonrails-security/c/_5ID_ld9u1c
- WEBhttps://hackerone.com/reports/1138654