CVE-2022-28738

Critical

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductRuby
PublishedMay 9, 2022
First seenMay 9, 2022

How to fix

Update
  • ruby-lang ruby3.0.4, 3.1.2 or later

Affected products

ProductAffected versionsFixed in
ruby-lang ruby3.0.0 ≤ v < 3.0.4, 3.1.0 ≤ v < 3.1.23.0.4, 3.1.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.