cbcvebase.
CVE-2022-28738
published 2022-05-09

CVE-2022-28738: 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…

PriorityP348critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
2.57%
83.2th percentile
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

12 ranges
VendorProductVersion rangeFixed in
debianruby2.7
ruby-langruby>= 0 < 3.0.4-r03.0.4-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 0 < 3.1.2-r03.1.2-r0
ruby-langruby>= 3.0.0 < 3.0.43.0.4
ruby-langruby>= 3.1.0 < 3.1.23.1.2

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8LOW
vendor_oracle9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.