CVE-2017-9226

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 93%
Affected Products (NVD)
VendorProductVersion
oniguruma_projectoniguruma
6.2.0
phpphp
𝑥
< 5.6.31
phpphp
7.0.0 ≤
𝑥
< 7.0.21
phpphp
7.1.0 ≤
𝑥
< 7.1.7
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libonig
bookworm
6.9.8-1
fixed
bullseye
6.9.6-1.1
fixed
sid
6.9.9-1
fixed
trixie
6.9.9-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libonig
artful
ignored
bionic
Fixed 6.3.0-1
released
trusty
Fixed 5.9.1-1ubuntu1.1
released
xenial
Fixed 5.9.6-1ubuntu0.1
released
yakkety
ignored
zesty
ignored
php5
artful
dne
bionic
dne
trusty
Fixed 5.5.9+dfsg-1ubuntu4.22
released
xenial
dne
zesty
dne
php7.0
artful
dne
bionic
dne
trusty
dne
xenial
Fixed 7.0.22-0ubuntu0.16.04.1
released
zesty
Fixed 7.0.22-0ubuntu0.17.04.1
released
php7.1
artful
Fixed 7.1.8-1ubuntu1
released
bionic
dne
trusty
dne
xenial
dne
zesty
dne
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
oniguruma
Amazon Linux 2
0:5.9.6-1.amzn2.0.7
fixed
oniguruma-debuginfo
Amazon Linux 2
0:5.9.6-1.amzn2.0.7
fixed
oniguruma-devel
Amazon Linux 2
0:5.9.6-1.amzn2.0.7
fixed
php
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-bcmath
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-cli
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-common
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-dba
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-debuginfo
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-devel
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-embedded
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-enchant
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-fpm
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-gd
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-intl
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-ldap
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-mbstring
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-mysqlnd
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-odbc
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-pdo
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-pgsql
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-process
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-pspell
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-recode
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-snmp
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-soap
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-xml
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php-xmlrpc
Amazon Linux 2
0:5.4.16-46.amzn2.0.6
fixed
php56
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-bcmath
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-cli
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-common
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-dba
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-dbg
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-debuginfo
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-devel
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-embedded
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-enchant
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-fpm
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-gd
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-gmp
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-imap
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-intl
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-ldap
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-mbstring
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-mcrypt
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-mssql
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-mysqlnd
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-odbc
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-opcache
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-pdo
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-pgsql
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-process
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-pspell
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-recode
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-snmp
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-soap
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-tidy
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-xml
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php56-xmlrpc
Amazon Linux 1
0:5.6.31-1.134.amzn1
fixed
php70
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-bcmath
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-cli
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-common
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-dba
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-dbg
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-debuginfo
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-devel
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-embedded
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-enchant
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-fpm
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-gd
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-gmp
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-imap
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-intl
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-json
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-ldap
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-mbstring
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-mcrypt
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-mysqlnd
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-odbc
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-opcache
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-pdo
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-pdo-dblib
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-pgsql
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-process
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-pspell
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-recode
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-snmp
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-soap
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-tidy
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-xml
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-xmlrpc
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed
php70-zip
Amazon Linux 1
0:7.0.21-1.23.amzn1
fixed