CVE-2023-22796
HIGH7.5EPSS 1.5%ReDoS based DoS vulnerability in Active Support's underscore
Published: 1/18/2023Modified: 4/28/2026
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 (2)
- Debian/railsfrom 0, < 2:6.0.3.7+dfsg-2+deb11u1
- RubyGems/activesupportfrom 0, < 6.1.7.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-22796
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-22796
- PATCHhttps://github.com/rails/rails
- WEBhttps://discuss.rubyonrails.org/t/cve-2023-22796-possible-redos-based-dos-vulnerability-in-active-supports-underscore/82116
- WEBhttps://github.com/rails/rails/commit/2164d4f6a1bde74b911fe9ba3c8df1b5bf345bf8
- WEBhttps://github.com/rails/rails/commit/a7cda7e6aa5334ab41b1f4b0f671be931be946ef
- WEBhttps://github.com/rails/rails/releases/tag/v6.1.7.1
- WEBhttps://github.com/rails/rails/releases/tag/v7.0.4.1
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-22796.yml
- WEBhttps://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released