CVE Database›CVE-2022-28738

CVE-2022-28738

Ruby: Double free in Regexp compilation

Loading…

Severity

Moderate

Red Hat Product Security

7.7

CVSS 3.1

Review impact separately from score.

Published · April 14, 2022

Updated · June 28, 2026

Description

A double-free vulnerability was found in Ruby. The issue occurs during Regexp compilation. This flaw allows an attacker to create a Regexp object with a crafted source string that could cause the same memory to be freed twice.

Statement

Ruby 2.6 series and 2.7 series are not affected.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 7.7
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CWE-415 · Double Free