CVE-2017-8923
php: Overflowing the length of string causes crash
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Rocky Linux (medium), Ubuntu (low).
Description
The zend_string_extend function in Zend/zend_string.h in PHP through 7.1.5 does not prevent changes to string objects that result in a negative length, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact by leveraging a script's use of .= with a long string.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 9 | php7.0 | no fix listed |
| Red Hat | php:7.3::apcu-panel, php:7.3::libzip, php:7.3::libzip-devel and 96 more | no fix listed |
| rocky 8 | php:7.4::apcu-panel, php:7.4::libzip, php:7.4::libzip-devel and 34 more | 5.1.18-1.module+el8.10.0+1604+6558efc7 and 6 more |
| ubuntu 16.04-ESM | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm3 |
| ubuntu 18.04 | php7.2 | 7.2.24-0ubuntu0.18.04.11 |
| ubuntu 18.04-ESM | php7.2 | 7.2.24-0ubuntu0.18.04.11 |
| ubuntu 20.04 | php7.4 | 7.4.3-4ubuntu2.10 |
| ubuntu 20.04-ESM | php7.4 | 7.4.3-4ubuntu2.10 |
| ubuntu 21.10 | php8.0 | 8.0.8-1ubuntu0.3 |
Show all 143 entries from 9 sources
| Source | Package | Fixed in |
|---|---|---|
| debian 9 | php7.0 | no fix listed |
| Red Hat | php:7.3::apcu-panel | no fix listed |
| Red Hat | php:7.3::libzip | no fix listed |
| Red Hat | php:7.3::libzip-devel | no fix listed |
| Red Hat | php:7.3::libzip-tools | no fix listed |
| Red Hat | php:7.3::php | no fix listed |
| Red Hat | php:7.3::php-bcmath | no fix listed |
| Red Hat | php:7.3::php-cli | no fix listed |
| Red Hat | php:7.3::php-common | no fix listed |
| Red Hat | php:7.3::php-dba | no fix listed |
| Red Hat | php:7.3::php-dbg | no fix listed |
| Red Hat | php:7.3::php-devel | no fix listed |
| Red Hat | php:7.3::php-embedded | no fix listed |
| Red Hat | php:7.3::php-enchant | no fix listed |
| Red Hat | php:7.3::php-ffi | no fix listed |
| Red Hat | php:7.3::php-fpm | no fix listed |
| Red Hat | php:7.3::php-gd | no fix listed |
| Red Hat | php:7.3::php-gmp | no fix listed |
| Red Hat | php:7.3::php-intl | no fix listed |
| Red Hat | php:7.3::php-json | no fix listed |
| Red Hat | php:7.3::php-ldap | no fix listed |
| Red Hat | php:7.3::php-mbstring | no fix listed |
| Red Hat | php:7.3::php-mysqlnd | no fix listed |
| Red Hat | php:7.3::php-odbc | no fix listed |
| Red Hat | php:7.3::php-opcache | no fix listed |
| Red Hat | php:7.3::php-pdo | no fix listed |
| Red Hat | php:7.3::php-pear | no fix listed |
| Red Hat | php:7.3::php-pecl-apcu | no fix listed |
| Red Hat | php:7.3::php-pecl-apcu-devel | no fix listed |
| Red Hat | php:7.3::php-pecl-rrd | no fix listed |
| Red Hat | php:7.3::php-pecl-xdebug | no fix listed |
| Red Hat | php:7.3::php-pecl-xdebug3 | no fix listed |
| Red Hat | php:7.3::php-pecl-zip | no fix listed |
| Red Hat | php:7.3::php-pgsql | no fix listed |
| Red Hat | php:7.3::php-process | no fix listed |
| Red Hat | php:7.3::php-recode | no fix listed |
| Red Hat | php:7.3::php-snmp | no fix listed |
| Red Hat | php:7.3::php-soap | no fix listed |
| Red Hat | php:7.3::php-xml | no fix listed |
| Red Hat | php:7.3::php-xmlrpc | no fix listed |
| Red Hat | rh-php70-php | no fix listed |
| Red Hat | rh-php70-php-bcmath | no fix listed |
| Red Hat | rh-php70-php-cli | no fix listed |
| Red Hat | rh-php70-php-common | no fix listed |
| Red Hat | rh-php70-php-dba | no fix listed |
| Red Hat | rh-php70-php-dbg | no fix listed |
| Red Hat | rh-php70-php-devel | no fix listed |
| Red Hat | rh-php70-php-embedded | no fix listed |
| Red Hat | rh-php70-php-enchant | no fix listed |
| Red Hat | rh-php70-php-fpm | no fix listed |
| Red Hat | rh-php70-php-gd | no fix listed |
| Red Hat | rh-php70-php-gmp | no fix listed |
| Red Hat | rh-php70-php-imap | no fix listed |
| Red Hat | rh-php70-php-intl | no fix listed |
| Red Hat | rh-php70-php-json | no fix listed |
| Red Hat | rh-php70-php-ldap | no fix listed |
| Red Hat | rh-php70-php-mbstring | no fix listed |
| Red Hat | rh-php70-php-mysqlnd | no fix listed |
| Red Hat | rh-php70-php-odbc | no fix listed |
| Red Hat | rh-php70-php-opcache | no fix listed |
| Red Hat | rh-php70-php-pdo | no fix listed |
| Red Hat | rh-php70-php-pgsql | no fix listed |
| Red Hat | rh-php70-php-process | no fix listed |
| Red Hat | rh-php70-php-pspell | no fix listed |
| Red Hat | rh-php70-php-recode | no fix listed |
| Red Hat | rh-php70-php-snmp | no fix listed |
| Red Hat | rh-php70-php-soap | no fix listed |
| Red Hat | rh-php70-php-tidy | no fix listed |
| Red Hat | rh-php70-php-xml | no fix listed |
| Red Hat | rh-php70-php-xmlrpc | no fix listed |
| Red Hat | rh-php70-php-zip | no fix listed |
| Red Hat | rh-php73-php | no fix listed |
| Red Hat | rh-php73-php-bcmath | no fix listed |
| Red Hat | rh-php73-php-cli | no fix listed |
| Red Hat | rh-php73-php-common | no fix listed |
| Red Hat | rh-php73-php-dba | no fix listed |
| Red Hat | rh-php73-php-dbg | no fix listed |
| Red Hat | rh-php73-php-devel | no fix listed |
| Red Hat | rh-php73-php-embedded | no fix listed |
| Red Hat | rh-php73-php-enchant | no fix listed |
| Red Hat | rh-php73-php-fpm | no fix listed |
| Red Hat | rh-php73-php-gd | no fix listed |
| Red Hat | rh-php73-php-gmp | no fix listed |
| Red Hat | rh-php73-php-intl | no fix listed |
| Red Hat | rh-php73-php-json | no fix listed |
| Red Hat | rh-php73-php-ldap | no fix listed |
| Red Hat | rh-php73-php-mbstring | no fix listed |
| Red Hat | rh-php73-php-mysqlnd | no fix listed |
| Red Hat | rh-php73-php-odbc | no fix listed |
| Red Hat | rh-php73-php-opcache | no fix listed |
| Red Hat | rh-php73-php-pdo | no fix listed |
| Red Hat | rh-php73-php-pgsql | no fix listed |
| Red Hat | rh-php73-php-process | no fix listed |
| Red Hat | rh-php73-php-pspell | no fix listed |
| Red Hat | rh-php73-php-recode | no fix listed |
| Red Hat | rh-php73-php-snmp | no fix listed |
| Red Hat | rh-php73-php-soap | no fix listed |
| Red Hat | rh-php73-php-xml | no fix listed |
| Red Hat | rh-php73-php-xmlrpc | no fix listed |
| Red Hat | rh-php73-php-zip | no fix listed |
| rocky 8 | php:7.4::apcu-panel | 5.1.18-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::libzip | 1.6.1-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::libzip-devel | 1.6.1-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::libzip-tools | 1.6.1-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-bcmath | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-cli | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-common | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-dba | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-dbg | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-devel | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-embedded | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-enchant | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-ffi | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-fpm | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-gd | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-gmp | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-intl | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-json | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-ldap | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-mbstring | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-mysqlnd | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-odbc | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-opcache | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pdo | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pear | 1:1.10.13-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pecl-apcu | 5.1.18-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pecl-apcu-devel | 5.1.18-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pecl-rrd | 2.0.1-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pecl-xdebug | 2.9.5-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pecl-zip | 1.18.2-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-pgsql | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-process | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-snmp | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-soap | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-xml | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| rocky 8 | php:7.4::php-xmlrpc | 7.4.33-1.module+el8.10.0+1604+6558efc7 |
| ubuntu 16.04-ESM | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm3 |
| ubuntu 18.04 | php7.2 | 7.2.24-0ubuntu0.18.04.11 |
| ubuntu 18.04-ESM | php7.2 | 7.2.24-0ubuntu0.18.04.11 |
| ubuntu 20.04 | php7.4 | 7.4.3-4ubuntu2.10 |
| ubuntu 20.04-ESM | php7.4 | 7.4.3-4ubuntu2.10 |
| ubuntu 21.10 | php8.0 | 8.0.8-1ubuntu0.3 |
References
- http://www.securityfocus.com/bid/98518
- https://access.redhat.com/errata/RHSA-2023:2903
- https://access.redhat.com/security/cve/CVE-2017-8923
- https://bugs.php.net/bug.php?id=74577
- https://bugzilla.redhat.com/show_bug.cgi?id=1451700
- https://bugzilla.redhat.com/show_bug.cgi?id=2133687
- https://bugzilla.redhat.com/show_bug.cgi?id=2133688
- https://bugzilla.redhat.com/show_bug.cgi?id=2139280
All 24 references
- https://bugzilla.redhat.com/show_bug.cgi?id=2140200
- https://bugzilla.redhat.com/show_bug.cgi?id=2158791
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8923
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31628
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31629
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31630
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31631
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-37454
- https://errata.rockylinux.org/RLSA-2023:2903
- https://nvd.nist.gov/vuln/detail/CVE-2017-8923
- https://security.netapp.com/advisory/ntap-20241227-0007/
- https://ubuntu.com/security/notices/USN-5300-1
- https://ubuntu.com/security/notices/USN-5300-2
- https://ubuntu.com/security/notices/USN-5300-3
- https://www.cve.org/CVERecord?id=CVE-2017-8923