9.8

CVE-2022-28738: ruby-lang ruby Double Free

CVSS: 9.8v3.1CriticalModified
AliasesALPINE-CVE-2022-28738UBUNTU-CVE-2022-28738
Published 09-05-2022Last modified 03-08-2024

Vulnerability summary

CVE-2022-28738 is a critical (CVSS 9.8) Double Free vulnerability in ruby-lang ruby. EPSS estimates a 2.97% chance of exploitation in the next 30 days, higher than 87% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
2.97%
0%100%
Low · +0.08 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 10 · Related 6

Timeline

  1. 09-05-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

2.97%

Chance of exploitation in the next 30 days

Percentile

87%

Versus all other CVEs

30-day change

+0.08 pp

From 2.89% on 19-09-2026

19-09-202619-10-2026
EPSS score
2.97%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Alpine1 product
  • ruby≥ 3.0.0, < 3.0.4-r0 | ≥ 3.0.0, < 3.1.2-r0
Ruby-lang1 product
  • ruby≥ 3.0.0, < 3.0.4 | ≥ 3.1.0, < 3.1.2
Ubuntu1 product
  • ruby3.0< 3.0.2-7ubuntu2.1

3 vendors · 3 products

References

12 links
Show all 12 references