VulnerabilityModified
CVE-2022-28738
If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations.
CRITICAL 9.8EPSS 2.89%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.89%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 2.89% probability · 86th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-415
- Affected
- ruby-lang/ruby
- Source
- cve@mitre.org
References
- https://hackerone.com/reports/1220911Permissions Required, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2022-28738Patch, Third 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/1220911Permissions Required, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2022-28738Patch, Third 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
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.