Vulnerability · Published Feb 9, 2023 · Assigned by hackerone
CVE-2023-22796
High 7.5
In plain English
A high-severity uncontrolled resource consumption in https://github.com/rails/rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ruby-activesupport | 7.0.4.3-r0 | ALPINE-CVE-2023-22796 |
| Alpine:v3.21 | ruby-activesupport | 7.0.4.3-r0 | ALPINE-CVE-2023-22796 |
| Alpine:v3.22 | ruby-activesupport | 7.0.4.3-r0 | ALPINE-CVE-2023-22796 |
| Alpine:v3.23 | ruby-activesupport | 7.0.4.3-r0 | ALPINE-CVE-2023-22796 |
| Alpine:v3.24 | ruby-activesupport | 7.0.4.3-r0 | ALPINE-CVE-2023-22796 |
| Debian:12 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2023-22796 |
| Debian:13 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2023-22796 |
| Debian:14 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2023-22796 |
| RubyGems | activesupport | 7.0.4.1 | GHSA-j6gc-792m-qgm2 |
| RubyGems | activesupport | 6.1.7.1 | GHSA-j6gc-792m-qgm2 |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-22796 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2023-22796 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-22796 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2023-22796 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | 6.1.7.1, 7.0.4.1 |
Weakness: CWE-400