CVE-2017-9227
publishedoniguruma: Out-of-bounds stack read in mbc_enc_len() during regular expression searching
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-2024-2520 | 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 stack out-of-bounds read occurs in mbc_enc_len() during regular expression searching. Invalid handling of reg->dmin in forward_search_range() could result in an invalid pointer dereference, as an out-of-bounds read from a stack buffer.
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
4- 100538 http://www.securityfocus.com/bid/100538
- RHSA-2018:1296 https://access.redhat.com/errata/RHSA-2018:1296
- https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814
- https://github.com/kkos/oniguruma/issues/58
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8ac59ac8c7347d941af009ee1604908d15a70b0546af7b8621ce3019ad3598b4
- Ingested
- 23 Sep 2026, 07:43:06 UTC
- Source record
- Official CVE record