php: Integer overflow in mysqli_api.c:mysqli_real_escape_string()
Published Aug 2, 2018
9.8
CRITICALCVSS 3.1
EPSS 7.56%
Description
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 mysqli_real_escape_string.
Affected products
No data.
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
php
Not affected
Red Hat Enterprise Linux 7
php
Not affected
Red Hat Enterprise Linux 8
php
Not affected
Red Hat Software Collections
rh-php70-php
Affected
Red Hat Software Collections
rh-php72-php
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
| Red Hat Enterprise Linux 7 | php | Not affected | n/a |
| Red Hat Enterprise Linux 8 | php | Not affected | n/a |
| Red Hat Software Collections | rh-php70-php | Affected | n/a |
| Red Hat Software Collections | rh-php72-php | Affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of php as shipped with Red Hat Enterprise Linux 6 and 7 (versions 5.3.3 and 5.4.16, respectively).
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (41 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 7.56% (0.07562) | 94.34th | v5 (v2026.06.15) |
| Jun 15, 2026 | 7.56% (0.07562) | 93.72th | v5 (v2026.06.15) |
| Feb 16, 2026 | 1.72% (0.01723) | 82.05th | v4 (v2025.03.14) |
| Feb 4, 2026 | 3.75% (0.03750) | 87.73th | v4 (v2025.03.14) |
| Feb 1, 2026 | 4.82% (0.04824) | 89.29th | v4 (v2025.03.14) |
| Jan 4, 2026 | 6.14% (0.06142) | 90.51th | v4 (v2025.03.14) |
| Jan 1, 2026 | 4.82% (0.04824) | 89.24th | v4 (v2025.03.14) |
| Dec 28, 2025 | 6.14% (0.06142) | 90.49th | v4 (v2025.03.14) |
| Dec 27, 2025 | 8.66% (0.08664) | 92.19th | v4 (v2025.03.14) |
| Dec 4, 2025 | 6.14% (0.06142) | 90.43th | v4 (v2025.03.14) |
| Dec 1, 2025 | 4.82% (0.04824) | 89.16th | v4 (v2025.03.14) |
| Nov 21, 2025 | 6.14% (0.06142) | 90.40th | v4 (v2025.03.14) |
| Nov 18, 2025 | 0.84% (0.00838) | 72.63th | v4 (v2025.03.14) |
| Nov 4, 2025 | 6.14% (0.06142) | 90.39th | v4 (v2025.03.14) |
| Nov 1, 2025 | 4.82% (0.04824) | 89.07th | v4 (v2025.03.14) |
| Oct 28, 2025 | 6.14% (0.06142) | 90.38th | v4 (v2025.03.14) |
| Oct 27, 2025 | 8.66% (0.08664) | 92.08th | v4 (v2025.03.14) |
| Oct 4, 2025 | 6.14% (0.06142) | 90.42th | v4 (v2025.03.14) |
| Oct 1, 2025 | 4.82% (0.04824) | 89.10th | v4 (v2025.03.14) |
| Sep 4, 2025 | 8.66% (0.08664) | 92.13th | v4 (v2025.03.14) |
| Sep 1, 2025 | 6.86% (0.06855) | 91.05th | v4 (v2025.03.14) |
| Aug 4, 2025 | 8.66% (0.08664) | 92.06th | v4 (v2025.03.14) |
| Aug 1, 2025 | 6.86% (0.06855) | 91.03th | v4 (v2025.03.14) |
| Jul 30, 2025 | 8.66% (0.08664) | 92.06th | v4 (v2025.03.14) |
| Mar 30, 2025 | 5.79% (0.05791) | 89.56th | v4 (v2025.03.14) |
| Mar 29, 2025 | 16.09% (0.16090) | 91.37th | v4 (v2025.03.14) |
| Mar 22, 2025 | 4.80% (0.04801) | 88.56th | v4 (v2025.03.14) |
| Mar 21, 2025 | 3.73% (0.03729) | 86.99th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.80% (0.04801) | 88.75th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.93% (0.00932) | 83.20th | v3 (v2023.03.01) |
| Dec 24, 2023 | 0.93% (0.00932) | 81.25th | v3 (v2023.03.01) |
| Jul 27, 2023 | 0.85% (0.00849) | 79.98th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.84% (0.00842) | 79.53th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.14% (0.01136) | 59.45th | v2 (v2022.01.01) |
| Oct 18, 2022 | 1.14% (0.01136) | 58.28th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.14% (0.01136) | 56.27th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.14% (0.01136) | 34.23th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.30% (0.01300) | 31.12th | v1 |
| Jan 6, 2022 | 1.30% (0.01300) | 30.48th | v1 |
| Sep 1, 2021 | 1.30% (0.01300) | 69.44th | v1 |
| Apr 14, 2021 | 1.30% (0.01300) | 0.00th | v1 |
References (7)
- https://access.redhat.com/errata/RHSA-2019:2519 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-9120 Vendor Advisory
- https://bugs.php.net/bug.php?id=74544 x_refsource_MISCExploitIssue TrackingPatchVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1611898 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2017-9120
- https://security.netapp.com/advisory/ntap-20181107-0003/ x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-9120
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2019:2519 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2017-9120 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=74544 | x_refsource_MISCExploitIssue TrackingPatchVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1611898 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-9120 | ||
| https://security.netapp.com/advisory/ntap-20181107-0003/ | x_refsource_CONFIRMThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2017-9120 |
Change history (0)
No recorded changes yet.