
CVE catalog
CVE-2022-28738
libruby3_1-3_1-3.1.2-1.1 on GA media
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 3.14% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-5ubuntu1 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.1 | fixed |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0~preview1-1ubuntu2 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-4ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-4ubuntu4 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-6ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.2 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.4 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.5 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.6 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.7 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.8 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.9 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.10 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.11 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.12 | fixed |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-2 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-3 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-4 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-4ubuntu1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.2 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.3 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.4 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.5 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.6 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.7 | fixed |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-5ubuntu1 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2 | vulnerable |
| Ubuntu | ruby3.0 | 22.04 | 3.0.2-7ubuntu2.1 | fixed |
| Opensuse | ruby3.1 | tumbleweed | 3.1.2-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Ubuntu | ruby3.0 | deb | 22.04 | 3.0.2-7ubuntu2.1 | Not reported | UBUNTU-CVE-2022-28738 | Not reported |
| Ubuntu | ruby2.5 | deb | 18.04 | 2.5.1-1ubuntu1.12 | Not reported | USN-5462-1 | Not reported |
| Ubuntu | ruby2.7 | deb | 20.04 | 2.7.0-5ubuntu1.7 | Not reported | USN-5462-1 | Not reported |
| Ubuntu | ruby3.0 | deb | 22.04 | 3.0.2-7ubuntu2.1 | Not reported | USN-5462-1 | Not reported |
| Opensuse | ruby3.1 | rpm | tumbleweed | 3.1.2-1.1 | Not reported | OPENSUSE-SU-2024:12006-1 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2022_6450.json]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-28738]
- [https://osv.dev/vulnerability/USN-5462-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12006-1]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-28738.json]
[FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]