CVE Vulnerabilities

CVE-2019-13224

Use After Free

Published: Jul 10, 2019 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
6.8 MODERATE
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A use-after-free in onig_new_deluxe() in regext.c in Oniguruma 6.9.2 allows attackers to potentially cause information disclosure, denial of service, or possibly code execution by providing a crafted regular expression. The attacker provides a pair of a regex pattern and a string, with a multi-byte encoding that gets handled by onig_new_deluxe(). Oniguruma issues often affect Ruby, as well as common optional libraries for PHP and Rust.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
OnigurumaOniguruma_project6.9.2 (including)6.9.2 (including)
Red Hat Enterprise Linux 8RedHatphp:7.3-8020020200715124551.ceb1cf90*
Red Hat Enterprise Linux 8RedHatoniguruma-0:6.8.2-2.1.el8_9*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatoniguruma-0:6.8.2-2.1.el8_6*
Red Hat Enterprise Linux 8.8 Extended Update SupportRedHatoniguruma-0:6.8.2-2.1.el8_8*
GroongaUbuntubionic*
GroongaUbuntucosmic*
GroongaUbuntudevel*
GroongaUbuntudisco*
GroongaUbuntueoan*
GroongaUbuntuesm-apps/bionic*
GroongaUbuntuesm-apps/focal*
GroongaUbuntuesm-apps/jammy*
GroongaUbuntuesm-apps/noble*
GroongaUbuntuesm-apps/xenial*
GroongaUbuntufocal*
GroongaUbuntugroovy*
GroongaUbuntuhirsute*
GroongaUbuntuimpish*
GroongaUbuntujammy*
GroongaUbuntukinetic*
GroongaUbuntulunar*
GroongaUbuntumantic*
GroongaUbuntunoble*
GroongaUbuntuoracular*
GroongaUbuntuplucky*
GroongaUbuntuquesting*
GroongaUbuntutrusty*
GroongaUbuntuxenial*
LibevhtpUbuntuesm-apps/xenial*
LibevhtpUbuntutrusty*
LibevhtpUbuntuxenial*
LibonigUbuntubionic*
LibonigUbuntucosmic*
LibonigUbuntudevel*
LibonigUbuntudisco*
LibonigUbuntueoan*
LibonigUbuntuesm-apps/bionic*
LibonigUbuntuesm-apps/xenial*
LibonigUbuntuesm-infra-legacy/trusty*
LibonigUbuntuesm-infra/focal*
LibonigUbuntufocal*
LibonigUbuntugroovy*
LibonigUbuntuhirsute*
LibonigUbuntuimpish*
LibonigUbuntujammy*
LibonigUbuntukinetic*
LibonigUbuntulunar*
LibonigUbuntumantic*
LibonigUbuntunoble*
LibonigUbuntuoracular*
LibonigUbuntuplucky*
LibonigUbuntuquesting*
LibonigUbuntutrusty*
LibonigUbuntutrusty/esm*
LibonigUbuntuxenial*
MudletUbuntubionic*
MudletUbuntucosmic*
MudletUbuntudisco*
MudletUbuntueoan*
MudletUbuntuesm-apps/bionic*
MudletUbuntuesm-apps/focal*
MudletUbuntuesm-apps/xenial*
MudletUbuntufocal*
MudletUbuntutrusty*
MudletUbuntuxenial*
Php5Ubuntuesm-infra-legacy/trusty*
Php5Ubuntutrusty/esm*

Potential Mitigations

References