| Name | CVE-2023-22796 |
| 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 | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-5372-1 |
| Debian Bugs | 1030050 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| rails (PTS) | bullseye | 2:6.0.3.7+dfsg-2+deb11u2 | fixed |
| bullseye (security) | 2:6.0.3.7+dfsg-2+deb11u4 | fixed | |
| bookworm | 2:6.1.7.10+dfsg-1~deb12u1 | fixed | |
| bookworm (security) | 2:6.1.7.10+dfsg-1~deb12u2 | fixed | |
| trixie | 2:7.2.2.1+dfsg-7 | fixed | |
| trixie (security) | 2:7.2.2.2+dfsg-2~deb13u1 | fixed | |
| forky, sid | 2:7.2.2.2+dfsg-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| rails | source | bullseye | 2:6.0.3.7+dfsg-2+deb11u1 | DSA-5372-1 | ||
| rails | source | (unstable) | 2:6.1.7.3+dfsg-1 | 1030050 |
https://discuss.rubyonrails.org/t/cve-2023-22796-possible-redos-based-dos-vulnerability-in-active-supports-underscore/82116
https://github.com/rails/rails/commit/4b383e6936d7a72b5dc839f526c9a9aeb280acae (6-1-stable)