# CVE-2023-22795: ReDoS based DoS vulnerability 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.34%, higher than 84% of CVEs (2026-12-01)
- Published: 2023-01-18T18:20:51.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-8xww-x3g3-6jcv
- Weaknesses: CWE-400, CWE-1333
- Assigned by: hackerone

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

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 6.1.7.1, 7.0.4.1
- actionpack (RubyGems): from 4.0.0.beta1 before 6.1.7.1; from 7.0.0 before 7.0.4.1
- rubyonrails rails: before 6.1.7.1; from 7.0.0 before 7.0.4.1
- debian debian_linux: 11.0

## Every score

- GitHub: rating Low
- 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`

## References

- <https://discuss.rubyonrails.org/t/cve-2023-22795-possible-redos-based-dos-vulnerability-in-action-dispatch/82118> (patch, vendor-advisory, web)
- <https://www.debian.org/security/2023/dsa-5372> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240202-0010/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22795> (advisory)
- <https://github.com/rails/rails/commit/8d82687f3b04b2803320b64f985308239a8c3d2f> (web)
- <https://github.com/rails/rails/commit/8dc45950619a4c64d16fb9370570c996d201f9b0> (web)
- <https://github.com/rails/rails/commit/cd461c3e64e09cdcb1e379d1c35423c5e2caa592> (web)
- <https://github.com/rails/rails> (package)
- <https://github.com/rails/rails/releases/tag/v6.1.7.1> (web)
- <https://github.com/rails/rails/releases/tag/v7.0.4.1> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2023-22795.yml> (web)
- <https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released> (web)

## Sources

- CVE List: [CVE-2023-22795](https://www.cve.org/CVERecord?id=CVE-2023-22795), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-8xww-x3g3-6jcv](https://github.com/advisories/GHSA-8xww-x3g3-6jcv), CC-BY-4.0, modified 2025-03-31
- NVD: [CVE-2023-22795](https://nvd.nist.gov/vuln/detail/CVE-2023-22795), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2023-22795 · Whole record: https://cve.day/CVE-2023-22795.json · Rebuilt by cve.day 2026-11-25T22:58:21.906Z
