CVEvulnerability
CVE-2022-28738
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-05-09
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-415
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.
Affected configurations
• ruby-lang ruby (>= 3.0.0 < 3.0.4)
• ruby-lang ruby (>= 3.1.0 < 3.1.2)
Related
Weakness · CWE (1)
- CWE-415 Double Free weakness
References
- https://hackerone.com/reports/1220911 Permissions Required, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2022-28738 Patch, Third Party Advisory
- https://security.gentoo.org/glsa/202401-27 security.gentoo.org
- 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 Required, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2022-28738 Patch, Third Party Advisory
- https://security.gentoo.org/glsa/202401-27 security.gentoo.org
- 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