CVE-2022-28738
JSON

9.8critical

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.

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
3.14% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
BIT-RUBY-2022-28738BIT-RUBY-MIN-2022-28738

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
ruby-lang rubyfrom 3.0.0 before 3.0.4, from 3.1.0 before 3.1.2NVD
ruby (Bitnami)from 3.0.0 before 3.0.4, from 3.1.0 before 3.1.2Bitnami Vulnerability Database
ruby-min (Bitnami)from 3.0.0 before 3.0.4, from 3.1.0 before 3.1.2Bitnami Vulnerability Database

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

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.

NVD (es)

Se ha encontrado una doble liberación en el compilador de Regexp en Ruby versiones 3.x anteriores a 3.0.4 y versiones 3.1.x anteriores a 3.1.2. Si una víctima intenta crear un Regexp a partir de una entrada de usuario no confiable, un atacante puede ser capaz de escribir en ubicaciones de memoria no esperadas

References

Sources

SourceRecordLicence
CVE ListCVE-2022-28738 changed 2024-08-03CVE Terms of Use
NVDCVE-2022-28738 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-RUBY-2022-28738 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-RUBY-MIN-2022-28738 changed 2026-09-08Apache-2.0