CVE-2017-9226
publishedoniguruma: Heap buffer overflow in next_state_val() during regular expression compilation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2311 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2832 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | v3.4 | php5 | Fixed | 5.6.31-r0 | Package fix record |
| Debian | wheezy | libonig | Advisory build | 5.9.1-1+deb7u1 | DLA-958-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-phpsrc | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| SUSE / openSUSE | SLE-11-SP4 | php53-develi586 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.5 | php5 | Fixed | 5.6.31-r0 | Package fix record |
| Alpine Linux | v3.5 | php7 | Fixed | 7.0.21-r0 | Package fix record |
| Alpine Linux | v3.6 | php5 | Fixed | 5.6.31-r0 | Package fix record |
| Alpine Linux | v3.6 | php7 | Fixed | 7.1.9-r0 | Package fix record |
| Alpine Linux | v3.7 | php5 | Fixed | 5.6.31-r0 | Package fix record |
| Alpine Linux | v3.7 | php7 | Fixed | 7.1.7-r0 | Package fix record |
| Alpine Linux | v3.8 | php5 | Fixed | 5.6.31-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-phpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-bcmathx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-clix86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-commonx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-dbax86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-dbgx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-debuginfox86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-develx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-embeddedx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-enchantx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-fpmx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-gdx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-gmpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-imapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-intlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-jsonx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-ldapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-mbstringx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-mysqlndx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-odbcx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-opcachex86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pdox86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pgsqlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-processx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pspellx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-recodex86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-snmpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-soapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-tidyx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-xmlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-xmlrpcx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-zipx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-phpsrc | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-phpx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-bcmathx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-clix86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-commonx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-dbax86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-dbgx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-debuginfox86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-develx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-embeddedx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-enchantx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-fpmx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-gdx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-gmpx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-intlx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-jsonx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-ldapx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-mbstringx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-mysqlndx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-odbcx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-opcachex86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-pdox86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-pgsqlx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-processx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-pspellx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-recodex86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-snmpx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-soapx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-xmlx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-xmlrpcx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-zipx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| SUSE / openSUSE | SLE-11-SP4 | php53-develia64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-develppc64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-devels390x | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-develx86_64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-imapi586 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-imapia64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-imapppc64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-imaps390x | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-imapx86_64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-posixi586 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-posixia64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-posixppc64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-posixs390x | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-posixx86_64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-readlinei586 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-readlineia64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-readlineppc64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-readlines390x | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-readlinex86_64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-socketsi586 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-socketsia64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-socketsppc64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-socketss390x | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-socketsx86_64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-sqlitei586 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
| SUSE / openSUSE | SLE-11-SP4 | php53-sqliteia64 | Advisory build | 5.3.17-108.1 | SUSE-SU-2017:1585-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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 heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- 101244 http://www.securityfocus.com/bid/101244
- RHSA-2018:1296 https://access.redhat.com/errata/RHSA-2018:1296
- https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a
- https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6
- https://github.com/kkos/oniguruma/issues/55
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 07c8055408688b2c73ee3fd61b3f5c5633cb90603b35074ce90fdba933c54a36
- Ingested
- 23 Sep 2026, 07:43:06 UTC
- Source record
- Official CVE record