9.8critical
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.
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 3.14% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- BIT-RUBY-2022-28738BIT-RUBY-MIN-2022-28738
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ruby-lang ruby | from 3.0.0 before 3.0.4, from 3.1.0 before 3.1.2 | NVD |
| ruby (Bitnami) | from 3.0.0 before 3.0.4, from 3.1.0 before 3.1.2 | Bitnami Vulnerability Database |
| ruby-min (Bitnami) | from 3.0.0 before 3.0.4, from 3.1.0 before 3.1.2 | Bitnami Vulnerability Database |
All scores
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
NVD (es)
Se ha encontrado una doble liberación en el compilador de Regexp en Ruby versiones 3.x anteriores a 3.0.4 y versiones 3.1.x anteriores a 3.1.2. Si una víctima intenta crear un Regexp a partir de una entrada de usuario no confiable, un atacante puede ser capaz de escribir en ubicaciones de memoria no esperadas
References
| https://hackerone.com/reports/1220911 | advisory, permissions-required, third-party-advisory | |
| https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/ | advisory, vendor-advisory | |
| https://security-tracker.debian.org/tracker/CVE-2022-28738 | advisory, patch, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20220624-0002/ | advisory, third-party-advisory | |
| https://security.gentoo.org/glsa/202401-27 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-28738 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-28738 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2022-28738 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-RUBY-2022-28738 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-RUBY-MIN-2022-28738 changed 2026-09-08 | Apache-2.0 |