CVE-2023-22796
rubygem-activesupport: Regular Expression Denial of Service
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-400, CWE-1333
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | activesupport | <6.1.7.1>=7.0.0, <7.0.4.1 | 6.1.7.17.0.4.1~> 5.2.8~> 6.1.7, >= 6.1.7.1 |
Open a package to see all its vulnerabilities.
Operating systems · 14 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | rubygem-activesupport | affected |
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | ruby2-5-rubygem-activesupport-5-1 | 5.1.4-150000.3.12.1 | SUSE-SU-2023:0275-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby-activesupport | 7.0.4.3-r0 |
| 3.23 | ruby-activesupport | 7.0.4.3-r0 |
| 3.24 | ruby-activesupport | 7.0.4.3-r0 |
| edge | ruby-activesupport | 7.0.4.3-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rails | 2:6.0.3.7+dfsg-2+deb11u1 |
| 12 | rails | 2:6.1.7.3+dfsg-1 |
| 13 | rails | 2:6.1.7.3+dfsg-1 |
| 14 | rails | 2:6.1.7.3+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | 2:6.1.7.3+dfsg-1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | ruby3-1-rubygem-activesupport-7-0 +1 | 7.0.4.1-1.1 | openSUSE-SU-2024:12767-1 |
| Tumbleweed | ruby3-3-rubygem-activesupport-7-0 | 7.0.8.4-1.1 | openSUSE-SU-2024:14071-1 |
| Tumbleweed | ruby3-4-rubygem-activesupport-7-0 | 7.0.8.6-1.3 | openSUSE-SU-2025:15114-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-22796
- discuss.rubyonrails.org https://discuss.rubyonrails.org/t/cve-2023-22796-possible-redos-based-dos-vulnerability-in-active-supports-underscore/82116
- github.com https://github.com/advisories/GHSA-j6gc-792m-qgm2
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails/commit/2164d4f6a1bde74b911fe9ba3c8df1b5bf345bf8
- github.com https://github.com/rails/rails/commit/a7cda7e6aa5334ab41b1f4b0f671be931be946ef
- github.com https://github.com/rails/rails/releases/tag/v6.1.7.1
- github.com https://github.com/rails/rails/releases/tag/v7.0.4.1
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-22796.yml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-22796
Show all 14 references
- rubyonrails.org https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released
- security.netapp.com https://security.netapp.com/advisory/ntap-20240202-0009/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-22796
- www.debian.org https://www.debian.org/security/2023/dsa-5372
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.