Name | CVE-2022-28738 |
Description | A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1009958 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
ruby2.1 (PTS) | jessie, jessie (lts) | 2.1.5-2+deb8u14 | fixed |
ruby2.3 (PTS) | stretch (security) | 2.3.3-1+deb9u11 | fixed |
| stretch (lts), stretch | 2.3.3-1+deb9u12 | fixed |
ruby2.5 (PTS) | buster, buster (lts) | 2.5.5-3+deb10u7 | fixed |
| buster (security) | 2.5.5-3+deb10u6 | fixed |
ruby2.7 (PTS) | bullseye | 2.7.4-1+deb11u1 | fixed |
| bullseye (security) | 2.7.4-1+deb11u2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
ruby2.1 | source | jessie | (not affected) | | | |
ruby2.1 | source | (unstable) | (unfixed) | | | |
ruby2.3 | source | (unstable) | (not affected) | | | |
ruby2.5 | source | (unstable) | (not affected) | | | |
ruby2.7 | source | (unstable) | (not affected) | | | |
ruby3.0 | source | (unstable) | 3.0.4-1 | | | 1009958 |
Notes
- ruby2.7 <not-affected> (Vulnerable code not present)
- ruby2.5 <not-affected> (Vulnerable code not present)
- ruby2.3 <not-affected> (Vulnerable code not present)
https://github.com/ruby/ruby/commit/052ec6d2585c3ace95671013d336f5543624ef3d (v3_0_4)
https://github.com/ruby/ruby/commit/73f45e5e96ccc13a131f7c0122cf8600ce5b930f (v3_1_2)
https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/
[jessie] - ruby2.1 <not-affected> (Vulnerable code not present)