CVE-2017-9120: Integer Overflow

Published May 9, 2017
·
Updated

Last updated 24 July 2024

Other sources

PHP 7.x through 7.1.5 allows remote attackers to cause a denial of service (buffer overflow and application crash) or possibly have unspecified other impact via a long string because of an Integer overflow in mysqlirealescapestring.

PHP is vulnerable to an integer overflow in the mysqliapi.c:mysqlirealescapestring() function. An attacker could exploit this by performing a crafted query to cause a crash.

Upstream Bug:

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

— Red Hat

Affected Software

12 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.0.0<=7.1.5
PHP PHP>=7.4.0<7.4.23
PHP PHP>=8.0.0<8.0.10
NetApp Storage Automation Store
Microsoft cbl2 php 7.4.14-3
ubuntu/php7.0<7.0.33-0ubuntu0.16.04.16+esm3
7.0.33-0ubuntu0.16.04.16+esm3
ubuntu/php7.2<7.2.24-0ubuntu0.18.04.11
7.2.24-0ubuntu0.18.04.11
ubuntu/php7.4<7.4.3-4ubuntu2.10
7.4.3-4ubuntu2.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rh-php71-php to a version that resolves this vulnerability.

    Fixed in 0:7.1.30-1.el7
  2. Upgrade

    Upgrade ubuntu/php7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.33-0ubuntu0.16.04.16+esm3
  3. Upgrade

    Upgrade ubuntu/php7.2 to a version that resolves this vulnerability.

    Fixed in 7.2.24-0ubuntu0.18.04.11
  4. Upgrade

    Upgrade ubuntu/php7.4 to a version that resolves this vulnerability.

    Fixed in 7.4.3-4ubuntu2.10

Event History

May 9, 2017
CVE Published
12:00 AM
Aug 2, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via OSV·03:29 PM
DescriptionSeverityAffected Software
Aug 3, 2018
Data Sourced
via Red Hat·02:34 AM
DescriptionSeverityAffected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2017-9120?

CVE-2017-9120 is a vulnerability in PHP 7.x through 7.1.5 that allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string.

2

What is the severity of CVE-2017-9120?

The severity of CVE-2017-9120 is critical with a severity score of 9.8.

3

Which software versions are affected by CVE-2017-9120?

PHP versions 7.x through 7.1.5 are affected by CVE-2017-9120.

4

How can I fix CVE-2017-9120?

To fix CVE-2017-9120, update PHP to a version higher than 7.1.5.

5

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

You can find more information about CVE-2017-9120 at the following references: [link1](https://bugs.php.net/bug.php?id=74544), [link2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1614880), [link3](https://bugs.php.net/patch-display.php?bug_id=74544&patch=bug74544.diff&revision=1500891082&download=1)

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