# CVE-2023-22796: ReDoS based DoS vulnerability in Active Support's underscore

- 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): 1.76%, higher than 78% of CVEs (2026-12-01)
- Published: 2023-01-18T18:23:20.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-j6gc-792m-qgm2
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: hackerone

## Description

A regular expression based DoS vulnerability in Active Support <6.1.7.1 and <7.0.4.1. A specially crafted string passed to the underscore method 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.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 6.1.7.1, 7.0.4.1
- activesupport (RubyGems): before 6.1.7.1; from 7.0.0 before 7.0.4.1
- activesupport_project activesupport: before 6.1.7.1; from 7.0.0 before 7.0.4.1

## 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-22796-possible-redos-based-dos-vulnerability-in-active-supports-underscore/82116> (patch, vendor-advisory, web)
- <https://www.debian.org/security/2023/dsa-5372> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240202-0009/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22796> (advisory)
- <https://github.com/rails/rails/commit/2164d4f6a1bde74b911fe9ba3c8df1b5bf345bf8> (web)
- <https://github.com/rails/rails/commit/a7cda7e6aa5334ab41b1f4b0f671be931be946ef> (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/activesupport/CVE-2023-22796.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-22796](https://www.cve.org/CVERecord?id=CVE-2023-22796), CVE Terms of Use, modified 2024-11-27
- GitHub Advisory Database: [GHSA-j6gc-792m-qgm2](https://github.com/advisories/GHSA-j6gc-792m-qgm2), CC-BY-4.0, modified 2025-02-18
- NVD: [CVE-2023-22796](https://nvd.nist.gov/vuln/detail/CVE-2023-22796), Public domain, modified 2026-10-24

---

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