PT-2022-2610 · Ruby+8 · Ruby+8
Piao
·
Published
2022-04-12
·
Updated
2025-12-12
·
CVE-2022-28738
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Ruby versions 3.0.0 through 3.0.3
Ruby versions 3.1.0 through 3.1.1
Description
A double free was found in the Regexp compiler. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations. The issue is related to the implementation of the Regexp class and can lead to a denial of service using specially crafted Regexp objects.
Recommendations
For Ruby versions 3.0.0 through 3.0.3, update to version 3.0.4 or later.
For Ruby versions 3.1.0 through 3.1.1, update to version 3.1.2 or later.
As a temporary workaround, consider restricting the creation of Regexp objects from untrusted user input until a patch is available.
Exploit
Fix
Buffer Overflow
Double Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Ruby
Ubuntu