Live threats

All CVEs / Ruby-lang

CVE-2022-28738Ruby-lang Ruby

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
May 9, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-415
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≥ 3.0.0 < 3.0.4
ruby-langruby≥ 3.1.0 < 3.1.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.