Skip to content
OpenAdvisories
Unscored Public exploit CVE-2019-19012 EUVD-2019-8663GHSA-5mw9-mr3r-536c

An integer overflow in the search_in_range function in regexec.c in Oniguruma 6.x before 6.9.4_rc2 leads to an out-of-bounds read, in which…

Published Nov 16, 2019 · Updated Aug 5, 2024 · Assigned by mitre

Description

An integer overflow in the search_in_range function in regexec.c in Oniguruma 6.x before 6.9.4_rc2 leads to an out-of-bounds read, in which the offset of this read is under the control of an attacker. (This only affects the 32-bit compiled version). Remote attackers can cause a denial-of-service or information disclosure, or possibly have unspecified other impact, via a crafted regular expression.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libonig 6.9.4-1 —
Debian 13 libonig 6.9.4-1 —
Debian 12 libonig 6.9.4-1 —
Debian 9 libonig 6.1.3-2+deb9u1 DLA-2431-1
Debian 8 libonig 5.9.5-3.2+deb8u4 DLA-2020-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libonig 6.7.0-1ubuntu0.1~esm2 USN-5662-1
Ubuntu Pro 16.04 LTS libonig 5.9.6-1ubuntu0.1+esm2 USN-5662-1
Ubuntu Pro 14.04 LTS libonig 5.9.1-1ubuntu1.1+esm2 USN-5662-1, USN-4460-1
ReleasePackageFixed inAdvisory
RHEL 8 oniguruma +1 6.8.2-2.1.el8_9 RHSA-2024:0889
RHEL 8 ruby +4 2.5.9-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-abrt +1 0.3.0-4.module+el8.10.0+22021+135c76a8 RHSA-2025:7539
RHEL 8 rubygem-bigdecimal 1.3.4-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-bson +1 4.3.0-2.module+el8.9.0+19193+435404ae RHSA-2025:7539
RHEL 8 rubygem-bundler +1 1.16.1-5.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-did_you_mean 1.2.0-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-io-console 0.4.6-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-json 2.1.0-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-minitest 5.10.3-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-mongo +1 2.5.1-2.module+el8.9.0+19193+435404ae RHSA-2025:7539
RHEL 8 rubygem-mysql2 +1 0.4.10-4.module+el8.9.0+19193+435404ae RHSA-2025:7539
RHEL 8 rubygem-net-telnet 0.1.1-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-openssl 2.1.2-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-pg +1 1.0.0-3.module+el8.9.0+19193+435404ae RHSA-2025:7539
RHEL 8 rubygem-power_assert 1.1.1-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-psych 3.0.2-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-rake 12.3.3-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-rdoc 6.0.1.1-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-test-unit 3.2.7-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygem-xmlrpc 0.3.0-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
RHEL 8 rubygems +1 2.7.6.3-114.module+el8.10.0+23088+750dc6ca RHSA-2025:7539
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.8 EUS oniguruma +1 6.8.2-2.1.el8_8 RHSA-2024:0572
RHEL 8.6 EUS oniguruma +1 6.8.2-2.1.el8_6 RHSA-2024:0409

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 oniguruma +1 6.8.2-2.1.el8_9 ALSA-2024:0889
AlmaLinux 8 ruby +4 2.5.9-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-abrt 0.3.0-4.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-abrt-doc 0.3.0-4.module_el8.10.0+3871+342e2c2f ALSA-2025:7539
AlmaLinux 8 rubygem-bigdecimal 1.3.4-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-bson 4.3.0-2.module_el8.5.0+259+8cec6917 ALSA-2025:7539
AlmaLinux 8 rubygem-bson-doc 4.3.0-2.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-bundler +1 1.16.1-5.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-did_you_mean 1.2.0-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-io-console 0.4.6-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-json 2.1.0-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-minitest 5.10.3-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-mongo +1 2.5.1-2.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-mysql2 0.4.10-4.module_el8.5.0+259+8cec6917 ALSA-2025:7539
AlmaLinux 8 rubygem-mysql2-doc 0.4.10-4.module_el8.5.0+2625+ec418553 ALSA-2025:7539
AlmaLinux 8 rubygem-net-telnet 0.1.1-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-openssl 2.1.2-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-pg +1 1.0.0-3.module_el8.9.0+3635+c6f99506 ALSA-2025:7539
AlmaLinux 8 rubygem-power_assert 1.1.1-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-psych 3.0.2-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-rake 12.3.3-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-rdoc 6.0.1.1-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-test-unit 3.2.7-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygem-xmlrpc 0.3.0-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539
AlmaLinux 8 rubygems +1 2.7.6.3-114.module_el8.10.0+3991+5e651d4e ALSA-2025:7539

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 ruby 2.5.9-114.module+el8.10.0+1979+815637df RLSA-2025:7539
Rocky Linux 8 rubygem-abrt 0.3.0-4.module+el8.5.0+738+032c9c02 RLSA-2025:7539
Rocky Linux 8 rubygem-bson 4.3.0-2.module+el8.9.0+1536+5f79634e RLSA-2025:7539
Rocky Linux 8 rubygem-bundler 1.16.1-5.module+el8.10.0+1979+815637df RLSA-2025:7539
Rocky Linux 8 rubygem-mongo 2.5.1-2.module+el8.9.0+1536+5f79634e RLSA-2025:7539
Rocky Linux 8 rubygem-mysql2 0.4.10-4.module+el8.9.0+1536+5f79634e RLSA-2025:7539
Rocky Linux 8 rubygem-pg 1.0.0-3.module+el8.9.0+1536+5f79634e RLSA-2025:7539
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed oniguruma 6.9.7.1-1.2 openSUSE-SU-2024:11111-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 oniguruma +1 5.9.6-1.amzn2.0.3 ALAS2-2020-1380

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 oniguruma +1 6.8.2-2.1.el8_9 ELSA-2024-0889
Oracle Linux 8 ruby +4 2.5.9-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-abrt +1 0.3.0-4.module+el8.10.0+90367+ae9e8511 ELSA-2025-7539
Oracle Linux 8 rubygem-bigdecimal 1.3.4-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-bson +1 4.3.0-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-bundler +1 1.16.1-5.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-did_you_mean 1.2.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-io-console 0.4.6-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-json 2.1.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-minitest 5.10.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-mongo +1 2.5.1-2.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-mysql2 +1 0.4.10-4.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-net-telnet 0.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-openssl 2.1.2-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-pg +1 1.0.0-3.module+el8.9.0+90042+a65659a6 ELSA-2025-7539
Oracle Linux 8 rubygem-power_assert 1.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-psych 3.0.2-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-rake 12.3.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-rdoc 6.0.1.1-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-test-unit 3.2.7-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygem-xmlrpc 0.3.0-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539
Oracle Linux 8 rubygems +1 2.7.6.3-114.module+el8.10.0+90580+29305b94 ELSA-2025-7539

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

  • ManhNDd/CVE-2019-19012 ★ 4 · Nov 20, 2019

    Integer overflow in Oniguruma

  • tarantula-team/CVE-2019-19012 ★ 0 · Nov 20, 2019

    An integer overflow in the search_in_range function in regexec.c in Oniguruma 6.x before 6.9.4_rc2 leads to an out-of-bounds read

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 17

References