CVE-2017-9118: High severity PHP PHP vulnerability

Published May 17, 2017
·
Updated

Last updated 24 July 2024

Other sources

PHP 7.1.5 has an Out of bounds access in phppcrereplaceimpl via a crafted pregreplace call.

PHP through is vulnerable to an out of bounds access in the phppcre.c:phppcrereplaceimpl() function. An attacker could exploit this by calling pregreplace() with crafted arguments.

Upstream Bug:

https://bugs.php.net/bug.php?id=74604

Red Hat

Affected Software

10 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
debian/php5
debian/php7.0
debian/php7.1
PHP PHP>=7.4.0<7.4.27
PHP PHP>=8.0.0<8.0.14
PHP PHP>=8.1.0<8.1.1
PHP PHP=7.1.5
NetApp Storage Automation Store
Microsoft cbl2 php 7.4.14-3

Event History

May 17, 2017
CVE Published
12:00 AM
Aug 2, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Aug 3, 2018
Data Sourced
via Red Hat·02:16 AM
DescriptionSeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:42 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:51 AM
RemedyDescriptionSeverityAffected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Updated
via Microsoft·11:11 PM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2017-9118?

CVE-2017-9118 is a vulnerability in PHP 7.1.5 that allows for an Out of bounds access in php_pcre_replace_impl via a crafted preg_replace call.

2

What software is affected by CVE-2017-9118?

PHP 7.1.5 and potentially other versions of PHP are affected.

3

What is the severity of CVE-2017-9118?

CVE-2017-9118 has a severity score of 7.5, which is considered high.

4

How can I fix CVE-2017-9118?

Update your PHP version to a secure and patched release, such as PHP 7.1.30-1.el7 or a later version.

5

Where can I find more information about CVE-2017-9118?

You can find more information about CVE-2017-9118 on the PHP bug tracker (https://bugs.php.net/bug.php?id=74604), Red Hat bugzilla (https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1611891), and PHP security wiki (https://wiki.php.net/security).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203