Vulnerability 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 Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ruby-Lang | Ruby | >= 3.0.0, < 3.0.4 |
Related Weaknesses (CWE)
References
- https://hackerone.com/reports/1220911Permissions RequiredThird Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2022-28738PatchThird 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-cVendor Advisory
- https://hackerone.com/reports/1220911Permissions RequiredThird Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2022-28738PatchThird 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-cVendor Advisory
FAQ
What is CVE-2022-28738?
CVE-2022-28738 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 u...
How severe is CVE-2022-28738?
CVE-2022-28738 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2022-28738?
Check the references section above for vendor advisories and patch information. Affected products include: Ruby-Lang Ruby.