CVE-2022-28738: ruby-lang ruby Double Free
Vulnerability summary
CVE-2022-28738 is a critical (CVSS 9.8) Double Free vulnerability in ruby-lang ruby. EPSS estimates a 3.14% chance of exploitation in the next 30 days, higher than 88.3% of scored vulnerabilities.
Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?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 versions- 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
EPSS trend
Probability
3.14%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.14% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- ruby≥ 3.0.0, < 3.1.2-r0 | ≥ 3.0.0, < 3.0.4-r0 | ≥ 3.1.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