CVE-2021-22902
HIGH 7.5CVSS 3.1Denial of Service in Action Dispatch
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
- 11 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-g8ww-46x2-2p65
- Sources
- NVDJSONOSV GHSA-g8ww-46x2-2p65JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
>= 6.0.0, < 6.0.3.7 | 6.0.3.7 |
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
>= 6.1.0, < 6.1.0.2 | 6.1.0.2 |
| OSV | RubyGems | actionpack | >= 6.0.0, < 6.0.3.7 | 6.0.3.7 |
| OSV | RubyGems | actionpack | >= 6.1.0, < 6.1.3.2 | 6.1.3.2 |
References
- https://discuss.rubyonrails.org/t/cve-2021-22902-possible-denial-of-service-vulnerability-in-action-dispatch/77866 · Exploit, Mitigation, Patch, Vendor Advisory, WEB
- https://hackerone.com/reports/1138654 · Permissions Required, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-22902 · ADVISORY
- https://github.com/rails/rails/releases/tag/v6.0.3.7 · WEB
- https://github.com/rails/rails/releases/tag/v6.1.3.2 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22902.yml · WEB
- https://groups.google.com/g/rubyonrails-security/c/_5ID_ld9u1c · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 11 Jun 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 May 2021)