All vulnerabilities

Servers and applications

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 input, an attacker may be able to write to unexpected memory locations.

Severity
Critical 9.8
Published
9 May 2022
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
3.0.4, 3.1.2
Sources
NVD

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • From 3.0.0 before 3.0.4
  • From 3.1.0 before 3.1.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-28738
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-28738