php: Incorrect handling of URI components in URL parser
Published Jul 10, 2017
7.5
HIGHCVSS 3.0
EPSS 1.91%
Description
In PHP before 5.6.28 and 7.x before 7.0.13, incorrect handling of various URI components in the URL parser could be used by attackers to bypass hostname-specific URL checks, as demonstrated by evil.example.com:80#@good.example.com/ and evil.example.com:80?@good.example.com/ inputs to the parse_url function (implemented in the php_url_parse_ex function in ext/standard/url.c).
Affected products
No data.
- ≤ 5.6.27
- 7.0.0
- 7.0.1
- 7.0.2
- 7.0.3
- 7.0.4
- 7.0.5
- 7.0.6
- 7.0.7
- 7.0.8
- 7.0.9
- 7.0.10
- 7.0.11
- 7.0.12
No data.
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat OpenShift Enterprise 2
php
Will not fix
Red Hat Software Collections
rh-php56-php
Will not fix
Red Hat Software Collections
rh-php70-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat OpenShift Enterprise 2 | php | Will not fix | n/a |
| Red Hat Software Collections | rh-php56-php | Will not fix | n/a |
| Red Hat Software Collections | rh-php70-php | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
AV:N/AC:L/Au:N/C:N/I:P/A:N
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
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.91% (0.01908) | 79.02th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.91% (0.01908) | 77.01th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.28% (0.00280) | 49.40th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.51% (0.00508) | 77.32th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.51% (0.00508) | 75.86th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.51% (0.00508) | 73.80th | v3 (v2023.03.01) |
| May 8, 2023 | 0.36% (0.00358) | 67.91th | v3 (v2023.03.01) |
| Apr 25, 2023 | 0.30% (0.00305) | 65.26th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.43% (0.00433) | 70.59th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
References (11)
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=b061fa909de77085d3822a89ab901b934d0362c4 x_refsource_CONFIRM
- http://openwall.com/lists/oss-security/2017/07/10/6 x_refsource_CONFIRMMailing ListPatchThird Party Advisory
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://php.net/ChangeLog-7.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://www.securityfocus.com/bid/99552 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2016-10397 Vendor Advisory
- https://bugs.php.net/bug.php?id=73192 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1471811 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2016-10397
- https://security.netapp.com/advisory/ntap-20180112-0001/ x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2016-10397
| Link | Providers | Tags |
|---|---|---|
| http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=b061fa909de77085d3822a89ab901b934d0362c4 | x_refsource_CONFIRM | |
| http://openwall.com/lists/oss-security/2017/07/10/6 | x_refsource_CONFIRMMailing ListPatchThird Party Advisory | |
| http://php.net/ChangeLog-5.php | x_refsource_CONFIRMRelease NotesVendor Advisory | |
| http://php.net/ChangeLog-7.php | x_refsource_CONFIRMRelease NotesVendor Advisory | |
| http://www.securityfocus.com/bid/99552 | vdb-entryx_refsource_BID | |
| https://access.redhat.com/security/cve/CVE-2016-10397 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=73192 | x_refsource_CONFIRMIssue TrackingThird Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1471811 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-10397 | ||
| https://security.netapp.com/advisory/ntap-20180112-0001/ | x_refsource_CONFIRM | |
| https://www.cve.org/CVERecord?id=CVE-2016-10397 |
Change history (0)
No recorded changes yet.