CVE-2017-9118
Out-of-bounds access in preg_replace
Severity: High CVSS 7.5. Status in our packages: Fixed.
About CVE-2017-9118
PHP 7.1.5 has an Out of bounds access in php_pcre_replace_impl via a crafted preg_replace call.
Description quoted from the CVE record at cve.org.
| Published | 2018-08-02 |
|---|
Status in GetPageSpeed packages
| Product | Status | Fixed in | Details |
|---|---|---|---|
| PHP 7.0 | Fixed | 7.0.33-61 | Backported as php-cve-2017-9118.patch. Everpatch PHP |
| PHP 7.1 | Fixed | 7.1.33-54 | Backported as php-cve-2017-9118.patch. Everpatch PHP |
| PHP 7.2 | Fixed | 7.2.34-49 | Backported as php-cve-2017-9118.patch. Everpatch PHP |
| PHP 7.3 | Fixed | 7.3.33-41 | Backported as php-cve-2017-9118.patch. Everpatch PHP |
Check a server for CVE-2017-9118
Everpatch PHP on Enterprise Linux: PHP 7.0 7.0.33-61 or later, PHP 7.1 7.1.33-54 or later, PHP 7.2 7.2.34-49 or later, PHP 7.3 7.3.33-41 or later. The package changelog names every CVE a build fixes.
rpm -q php-common
rpm -q --changelog php-common | grep -F CVE-2017-9118After a PHP update, restart PHP-FPM (and Apache httpd if it runs mod_php): the old processes keep the vulnerable code until then.
Fixed in the same build
- CVE-2025-1217: Header parser of http stream wrapper does not handle folded headers
- CVE-2019-19246: Oniguruma heap over-read in str_lower_case_match
- CVE-2017-9120: Integer overflow in mysqli_real_escape_string
- CVE-2017-9119: Crash in i_zval_ptr_dtor after a memory limit error
- CVE-2017-8923: Negative string length after .= with a long string
- CVE-2015-9253: php-fpm endless child restart with a non-blocking STDIN
Scanner feeds (OVAL, CSAF, OpenVEX), fix-time targets and answers to common questions: the CVE tracker.