CVE-2023-22796
HIGH 7.5CVSS 3.1ReDoS based DoS vulnerability in Active Support's underscore
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.
- Published
- 9 Feb 2023
- Last modified
- 24 Oct 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-j6gc-792m-qgm2
- Sources
- NVDJSONOSV GHSA-j6gc-792m-qgm2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | activesupport_project | activesupportcpe:2.3:a:activesupport_project:activesupport:*:*:*:*:*:ruby:*:* |
< 6.1.7.1 | 6.1.7.1 |
| NVD | activesupport_project | activesupportcpe:2.3:a:activesupport_project:activesupport:*:*:*:*:*:ruby:*:* |
>= 7.0.0, < 7.0.4.1 | 7.0.4.1 |
| OSV | RubyGems | activesupport | < 6.1.7.1 | 6.1.7.1 |
| OSV | RubyGems | activesupport | >= 7.0.0, < 7.0.4.1 | 7.0.4.1 |
References
- https://discuss.rubyonrails.org/t/cve-2023-22796-possible-redos-based-dos-vulnerability-in-active-supports-underscore/82116 · Patch, Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20240202-0009/
- https://www.debian.org/security/2023/dsa-5372
- 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
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 9 Feb 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Jan 2023)