Double Free in Ruby-Lang Ruby
CVE-2022-28738
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.
Vulnerability class: Double Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.030 (87.0th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 87th percentile — 87.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.029 · newest: 0.030 · change: +0.001
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- hackerone.com/reports/1220911 (Permissions Required, Third Party Advisory)
- www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022… (Vendor Advisory)
- security-tracker.debian.org/tracker/CVE-2022-28738 (Patch, Third Party Advisory)
- security.netapp.com/advisory/ntap-20220624-0002/ (Third Party Advisory)
- security.gentoo.org/glsa/202401-27 (vendor-advisory)
Frequently asked questions
- What is CVE-2022-28738?
- CVE-2022-28738 is a critical-severity vulnerability in Ruby-Lang Ruby, classified under Double Free. CVSS score: 9.8/10. Published 2022-05-09.
- How severe is CVE-2022-28738?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2022-28738 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.