CVE-2016-10397

HIGH

PHP < 5.6.28 and 7.x < 7.0.13 - URL Parsing Bypass via Incorrect Hostname Validation

Title source: llm
STIX 2.1

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:[email protected]/ inputs to the parse_url function (implemented in the php_url_parse_ex function in ext/standard/url.c).

References (7)

Core 7
Core References
Mailing List, Patch, Third Party Advisory x_refsource_confirm
http://openwall.com/lists/oss-security/2017/07/10/6
Release Notes, Vendor Advisory x_refsource_confirm
http://php.net/ChangeLog-5.php
Vendor Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20180112-0001/
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/99552
Release Notes, Vendor Advisory x_refsource_confirm
http://php.net/ChangeLog-7.php
Issue Tracking, Third Party Advisory x_refsource_confirm
https://bugs.php.net/bug.php?id=73192

Scores

CVSS v3 7.5
EPSS 0.0040
EPSS Percentile 60.9%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Details

CWE
CWE-20
Status published
Products (14)
php/php 7.0.0
php/php 7.0.1
php/php 7.0.2
php/php 7.0.3
php/php 7.0.4
php/php 7.0.5
php/php 7.0.6
php/php 7.0.7
php/php 7.0.8
php/php 7.0.9
... and 4 more
Published Jul 10, 2017
Tracked Since Feb 18, 2026