CVE-2022-28738: ruby-lang ruby Double Free
CVSS: 9.8v3.1CriticalModified
AliasesALPINE-CVE-2022-28738UBUNTU-CVE-2022-28738
Published 09-05-2022Last modified 03-08-2024
Vulnerability summary
CVE-2022-28738 is a critical (CVSS 9.8) Double Free vulnerability in ruby-lang ruby. EPSS estimates a 2.97% chance of exploitation in the next 30 days, higher than 87% of scored vulnerabilities.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
2.97%
0%100%
Low · +0.08 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 10 · Related 6Timeline
- 09-05-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versionsCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 3 agree
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
High 7.5Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
2.97%
Chance of exploitation in the next 30 days
Percentile
87%
Versus all other CVEs
30-day change
+0.08 pp
From 2.89% on 19-09-2026
19-09-202619-10-2026
EPSS score2.97%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- ruby≥ 3.0.0, < 3.0.4-r0 | ≥ 3.0.0, < 3.1.2-r0
Ruby-lang1 product
- ruby≥ 3.0.0, < 3.0.4 | ≥ 3.1.0, < 3.1.2
Ubuntu1 product
- ruby3.0< 3.0.2-7ubuntu2.1
3 vendors · 3 products
References
12 links- security.netapp.com/advisory/ntap-20220624-0002/Third Party Advisory
- security.gentoo.org/glsa/202401-27Vendor Advisory