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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | oniguruma | 6.9.7.1-1.2 | openSUSE-SU-2024:11111-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | oniguruma +1 | 5.9.6-1.amzn2.0.3 | ALAS2-2020-1380 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
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
- ALSA-2024:0889 Moderate: oniguruma security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:7539 Moderate: ruby:2.5 security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2024-0218 Red Hat Enterprise Linux's oniguruma, tcpslice, c-ares: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 21, 2026
- RHSA-2025:7539 Red Hat Security Advisory: ruby:2.5 security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- USN-5662-1 libonig vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- RHSA-2024:0889 Red Hat Security Advisory: oniguruma security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2024:0572 Red Hat Security Advisory: oniguruma security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2024:0409 Red Hat Security Advisory: oniguruma security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- USN-4460-1 libonig vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-2020-1 libonig - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2431-1 libonig - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11111-1 libonig5-6.9.7.1-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1086 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 19, 2025
- RLSA-2025:7539 Moderate: ruby:2.5 security update Rocky Linux Security Advisories · Jul 29, 2025
- ELSA-2025-7539 Moderate: ruby:2.5 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 16, 2025
- ELSA-2024-0889 Moderate: oniguruma security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Feb 20, 2024
- ALAS2-2020-1380 Moderate: oniguruma security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jan 8, 2020
References
- https://github.com/kkos/oniguruma/issues/164
- https://github.com/kkos/oniguruma/releases/tag/v6.9.4_rc2
- https://github.com/tarantula-team/CVE-2019-19012
- FEDORA-2019-d942abd0d4 vendor-advisory
- [debian-lts-announce] 20191204 [SECURITY] [DLA 2020-1] libonig security update mailing-list
- FEDORA-2019-73197ff9a0 vendor-advisory
- USN-4460-1 vendor-advisory