# CVE-2021-22902: Denial of Service in Action Dispatch

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.87%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-05T19:48:21.000Z
- Modified: 2026-06-17T03:37:59.480Z
- Also known as: GHSA-g8ww-46x2-2p65
- Weaknesses: CWE-400
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: Fixed in 6.0.3.7, 6.1.3.2
- actionpack (RubyGems): from 6.0.0 before 6.0.3.7; from 6.1.0 before 6.1.3.2
- rubyonrails rails: from 6.0.0 before 6.0.3.7; from 6.1.0 before 6.1.0.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## 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)

## Sources

- CVE List: [CVE-2021-22902](https://www.cve.org/CVERecord?id=CVE-2021-22902), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-g8ww-46x2-2p65](https://github.com/advisories/GHSA-g8ww-46x2-2p65), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-22902](https://nvd.nist.gov/vuln/detail/CVE-2021-22902), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22902 · Whole record: https://cve.day/CVE-2021-22902.json · Rebuilt by cve.day 2026-11-25T22:58:01.810Z
