Description
An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A SIGSEGV occurs in left_adjust_char_head() during regular expression compilation. Invalid handling of reg->dmax in forward_search_range() could result in an invalid pointer dereference, normally as an immediate denial-of-service condition.
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.1.3-2 | — |
| Debian 13 | libonig | 6.1.3-2 | — |
| Debian 12 | libonig | 6.1.3-2 | — |
| Debian 7 | libonig | 5.9.1-1+deb7u1 | DLA-958-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libonig | 5.9.6-1ubuntu0.1 | — |
| Ubuntu 16.04 LTS | php7.0 | 7.0.22-0ubuntu0.16.04.1 | USN-3382-1 |
| Ubuntu 14.04 LTS | libonig | 5.9.1-1ubuntu1.1 | — |
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.22 | USN-3382-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-php70-php +29 | 7.0.27-1.el6 | RHSA-2018:1296 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | oniguruma +1 | 6.9.10-4.1.hum1 | RHSA-2026:7545 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES 12 SP4 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES 12 SP3 | php5 | 5.5.14-109.13.1 | SUSE-SU-2017:3277-1 |
| SLES 12 SP3 | php7 | 7.0.7-50.23.1 | SUSE-SU-2017:3237-1 |
| SLES 12 SP3 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES 12 SP2 | php5 | 5.5.14-109.13.1 | SUSE-SU-2017:3277-1 |
| SLES 12 SP2 | php7 | 7.0.7-50.23.1 | SUSE-SU-2017:3237-1 |
| SLES 12 SP2 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES 12 SP2 | yast2-ruby-bindings | 3.1.53-9.8.1 | SUSE-SU-2020:1570-1 |
| SLES 12 | php5 | 5.5.14-109.13.1 | SUSE-SU-2017:3277-1 |
| SLES 12 | php7 | 7.0.7-50.23.1 | SUSE-SU-2017:3237-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | php53 | 5.3.17-112.10.1 | SUSE-SU-2018:0003-1 |
| SLES for SAP 12 SP5 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES for SAP 12 SP4 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES for SAP 12 SP3 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES for SAP 12 SP2 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SLES for SAP 12 SP2 | yast2-ruby-bindings | 3.1.53-9.8.1 | SUSE-SU-2020:1570-1 |
| SLES for SAP 11 SP4 | php53 | 5.3.17-112.10.1 | SUSE-SU-2018:0003-1 |
| SUSE OpenStack Cloud Crowbar 8 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SUSE OpenStack Cloud 8 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SUSE OpenStack Cloud 7 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SUSE OpenStack Cloud 7 | yast2-ruby-bindings | 3.1.53-9.8.1 | SUSE-SU-2020:1570-1 |
| SUSE HPE Helion OpenStack 8 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SUSE Enterprise Storage 5 | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.8 | php5 | 5.6.31-r0 | — |
| Alpine v3.7 | php5 | 5.6.31-r0 | — |
| Alpine v3.7 | php7 | 7.1.7-r0 | — |
| Alpine v3.6 | php5 | 5.6.31-r0 | — |
| Alpine v3.6 | php7 | 7.1.9-r0 | — |
| Alpine v3.5 | php5 | 5.6.31-r0 | — |
| Alpine v3.5 | php7 | 7.0.21-r0 | — |
| Alpine v3.4 | php5 | 5.6.31-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | oniguruma +1 | 5.9.6-1.amzn2.0.7 | ALAS2-2023-2311 |
| Amazon Linux 2 | php +23 | 5.4.16-46.amzn2.0.3 | ALAS2-2023-2375 |
Advisories 11
- RHSA-2026:7545 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 6, 2026
- RHSA-2018:1296 Red Hat Security Advisory: rh-php70-php security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-3382-1 php5, php7.0 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-958-1 libonig - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:3237-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0003-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1570-1 Security update for ruby2.1 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:3277-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-2718 PHP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 4, 2023
- ALAS2-2023-2375 Important: php security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 4, 2023
- ALAS2-2023-2311 Important: oniguruma security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 19, 2023