# CVE-2021-22902

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 6.0.3.7, 6.1.0.2 (CNA); fix release not confirmed
- Status: published
- Published: 2021-06-11 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-22902, DEBIAN-CVE-2021-22902, GHSA-g8ww-46x2-2p65
- Record: https://cvemate.com/vulnerability/CVE-2021-22902 · JSON: https://cvemate.com/vulnerability/CVE-2021-22902/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.868%, percentile 87.241%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian rails (Debian): \< 2:6.0.3.7+dfsg-1
- ubuntu rails (Ubuntu): All versions (No fix recorded)
- RubyGems actionpack (RubyGems): ≥ 6.0.0, \< 6.0.3.7 \| ≥ 6.1.0, \< 6.1.3.2
- rubyonrails rails: ≥ 6.0.0, \< 6.0.3.7 \| ≥ 6.1.0, \< 6.1.0.2

## References

- <https://hackerone.com/reports/1138654>
- <https://discuss.rubyonrails.org/t/cve-2021-22902-possible-denial-of-service-vulnerability-in-action-dispatch/77866>
- <https://ubuntu.com/security/CVE-2021-22902>
- <https://www.cve.org/CVERecord?id=CVE-2021-22902>
- <https://security-tracker.debian.org/tracker/CVE-2021-22902>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22902>
- <https://github.com/rails/rails/releases/tag/v6.0.3.7>
- <https://github.com/rails/rails/releases/tag/v6.1.3.2>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22902.yml>
- <https://groups.google.com/g/rubyonrails-security/c/_5ID_ld9u1c>

---

Data as of 2026-12-05T14:01:22.917Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
