Skip to main content

CVE tracker

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.

Published2018-08-02

Status in GetPageSpeed packages

ProductStatusFixed inDetails
PHP 7.0Fixed7.0.33-61Backported as php-cve-2017-9118.patch. Everpatch PHP
PHP 7.1Fixed7.1.33-54Backported as php-cve-2017-9118.patch. Everpatch PHP
PHP 7.2Fixed7.2.34-49Backported as php-cve-2017-9118.patch. Everpatch PHP
PHP 7.3Fixed7.3.33-41Backported 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-9118

After 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.