Vulnerability record · CVE-2022-28738 · published 9 May 2022
CVE-2022-28738: Ruby-lang ruby double free vulnerability
Ruby Lang · Ruby
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.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://hackerone.com/reports/1220911 | Permissions RequiredThird Party Advisory |
| https://security-tracker.debian.org/tracker/CVE-2022-28738 | PatchThird Party Advisory |
| https://security.gentoo.org/glsa/202401-27 | |
| https://security.netapp.com/advisory/ntap-20220624-0002/ | Third Party Advisory |
| https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/ | Vendor Advisory |
| https://hackerone.com/reports/1220911 | Permissions RequiredThird Party Advisory |
| https://security-tracker.debian.org/tracker/CVE-2022-28738 | PatchThird Party Advisory |
| https://security.gentoo.org/glsa/202401-27 | |
| https://security.netapp.com/advisory/ntap-20220624-0002/ | Third Party Advisory |
| https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/ | Vendor Advisory |
Track CVE-2022-28738 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-28738), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.