cve.bz

CVE-2019-13224 Use After Free

9.8 criticalEPSS 4.0%Fix available

Critical (9.8). EPSS 4.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.0% (unchanged from 4.0% a week ago; 4.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-13224 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-13224?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-13224?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-13224 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
oniguruma_project:oniguruma6.9.2
php:phpfrom 7.1.0 before 7.1.32
php:phpfrom 7.2.0 before 7.2.23
php:phpfrom 7.3.0 before 7.3.9
fedoraproject:fedora29
fedoraproject:fedora30
debian:debian_linux8.0
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libonig5.9.5-3.2+deb8u2DLA-1854-1
Debian9libonig6.1.3-2+deb9u1DLA-2431-1
Debian9php7.07.0.33-0+deb9u5DSA-4529-1
Debian10php7.37.3.9-1~deb10u1DSA-4527-1
Debian12, 13, 14libonig6.9.2-1DEBIAN-CVE-2019-13224
Ubuntu16.04:LTSmudlet, groonga, libevhtpno fix listedUBUNTU-CVE-2019-13224
Ubuntu18.04:LTS, 20.04:LTSmudlet, groongano fix listedUBUNTU-CVE-2019-13224
Ubuntu20.04:LTSlibonig6.9.2-1UBUNTU-CVE-2019-13224
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moregroongano fix listedUBUNTU-CVE-2019-13224
UbuntuPro:14.04:LTSlibonig5.9.1-1ubuntu1.1+esm1UBUNTU-CVE-2019-13224
UbuntuPro:14.04:LTSphp55.5.9+dfsg-1ubuntu4.29+esm4UBUNTU-CVE-2019-13224 USN-4088-1
UbuntuPro:16.04:LTSlibonig5.9.6-1ubuntu0.1+esm1UBUNTU-CVE-2019-13224
UbuntuPro:18.04:LTSlibonig6.7.0-1ubuntu0.1~esm1UBUNTU-CVE-2019-13224
Red Hatenterprise_linux:8::appstreamapcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more0:5.1.17-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatenterprise_linux:8::appstreamlibzip, libzip-devel, libzip-tools and 3 more0:1.5.2-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatenterprise_linux:8::appstreamoniguruma, oniguruma-debuginfo, oniguruma-debugsource0:6.8.2-2.1.el8_9RHSA-2024:0889
Red Hatenterprise_linux:8::appstreamphp, php-gd, php-cli and 51 more0:7.3.20-1.module+el8.2.0+7373+b272fdefRHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pear1:1.10.9-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource0:2.0.1-1.module+el8.2.0+4968+1d5097dbRHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pecl-xdebug, php-pecl-xdebug-debuginfo, php-pecl-xdebug-debugsource0:2.8.0-1.module+el8.2.0+4968+1d5097dbRHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pecl-zip, php-pecl-zip-debuginfo, php-pecl-zip-debugsource0:1.15.4-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatenterprise_linux:8::crboniguruma-devel, oniguruma-debuginfo, oniguruma-debugsource0:6.8.2-2.1.el8_9RHSA-2024:0889
Red Hatrhel_eus:8.6::appstreamoniguruma, oniguruma-debuginfo, oniguruma-debugsource0:6.8.2-2.1.el8_6RHSA-2024:0409
Red Hatrhel_eus:8.6::crboniguruma-devel, oniguruma-debuginfo, oniguruma-debugsource0:6.8.2-2.1.el8_6RHSA-2024:0409
Red Hatrhel_eus:8.8::appstreamoniguruma, oniguruma-debuginfo, oniguruma-debugsource0:6.8.2-2.1.el8_8RHSA-2024:0572
1 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 moreoniguruma6.7.0-150000.3.3.1SUSE-SU-2022:3327-1
openSUSELeap 15.3, Leap 15.4, Leap Micro 5.2oniguruma6.7.0-150000.3.3.1SUSE-SU-2022:3327-1
openSUSETumbleweedoniguruma6.9.7.1-1.2openSUSE-SU-2024:11111-1
AlmaLinux8apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.17-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8libzip, libzip-devel, libzip-tools1.5.2-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8libzip, libzip-devel, libzip-tools1.5.2-1.module_el8.4.0+2229+b272fdefALSA-2020:3662
AlmaLinux8libzip, libzip-devel, libzip-tools1.5.2-1.module_el8.5.0+152+112d3b8cALSA-2020:3662
AlmaLinux8oniguruma, oniguruma-devel6.8.2-2.1.el8_9ALSA-2024:0889
AlmaLinux8php, php-gd, php-cli and 24 more7.3.20-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8php, php-gd, php-cli and 24 more7.3.20-1.module_el8.4.0+2229+b272fdefALSA-2020:3662
AlmaLinux8php, php-gd, php-cli and 24 more7.3.20-1.module_el8.5.0+152+112d3b8cALSA-2020:3662
AlmaLinux8php-pear1:1.10.9-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8php-pecl-apcu, php-pecl-apcu-devel5.1.17-1.module_el8.4.0+2229+b272fdefALSA-2020:3662
AlmaLinux8php-pecl-apcu, php-pecl-apcu-devel5.1.17-1.module_el8.5.0+152+112d3b8cALSA-2020:3662
AlmaLinux8php-pecl-rrd2.0.1-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
8 more for AlmaLinux in the JSON.
Rocky Linux8libzip0:1.5.2-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php0:7.3.20-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pear1:1.10.9-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-apcu0:5.1.17-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-rrd0:2.0.1-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-xdebug0:2.8.0-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-zip0:1.15.4-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Alpinev3.7php77.1.32-r0ALPINE-CVE-2019-13224
Alpinev3.10, v3.11, v3.12 and 3 morephp77.3.9-r0ALPINE-CVE-2019-13224

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Ruby versions are not affected as they used Onigmo, which is a fork of Oniguruma, instead. The Onigmo library doesn't includes the source code containing the related bug.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8php:7.3-8020020200715124551.ceb1cf90Fixed 2020-09-08RHSA-2020:3662
Red Hat Enterprise Linux 8oniguruma-0:6.8.2-2.1.el8_9Fixed 2024-02-20RHSA-2024:0889
Red Hat Enterprise Linux 8.6 Extended Update Supportoniguruma-0:6.8.2-2.1.el8_6Fixed 2024-01-25RHSA-2024:0409
Red Hat Enterprise Linux 8.8 Extended Update Supportoniguruma-0:6.8.2-2.1.el8_8Fixed 2024-01-30RHSA-2024:0572
Red Hat Enterprise Linux 5phpOut of support scope
Red Hat Enterprise Linux 5php53Out of support scope
Red Hat Enterprise Linux 6onigurumaOut of support scope
Red Hat Enterprise Linux 6phpWill not fix
Red Hat Enterprise Linux 7phpWill not fix
Red Hat Enterprise Linux 8php:7.2/phpWill not fix
Red Hat Enterprise Linux 8ruby:2.5/rubyNot affected
Red Hat Enterprise Linux 8ruby:2.6/rubyNot affected
Red Hat OpenShift Container Platform 4onigurumaWill not fix
Red Hat Software Collectionsrh-php70-phpOut of support scope
Red Hat Software Collectionsrh-php72-phpWill not fix
Red Hat Software Collectionsrh-php73-phpNot affected
Red Hat Software Collectionsrh-ruby24-rubyNot affected
Red Hat Software Collectionsrh-ruby25-rubyNot affected
Red Hat Software Collectionsrh-ruby26-rubyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-13224.

References

Check your stackJSON