CVE-2022-28738
CRITICAL9.8EPSS 0.46%Published: 5/9/2022Modified: 12/3/2025
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 packages (3)
- Alpine/rubyfrom 0, < 3.0.4-r0
- Bitnami/ruby>= 3.0.0, < 3.0.4, >= 3.1.0, < 3.1.2
- Bitnami/ruby-min>= 3.0.0, < 3.0.4, >= 3.1.0, < 3.1.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (7)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2022-28738
- WEBhttps://hackerone.com/reports/1220911
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-28738
- WEBhttps://security.gentoo.org/glsa/202401-27
- WEBhttps://security.netapp.com/advisory/ntap-20220624-0002/
- WEBhttps://security-tracker.debian.org/tracker/CVE-2022-28738
- WEBhttps://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/