CVE-2016-10397: PHP

High severity, CVSS 7.5. EPSS: 1.9% chance of exploitation in the next 30 days.

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

  • PHP PHP: up to and including 5.6.27; version 7.0.0 only; version 7.0.1 only; version 7.0.2 only; version 7.0.3 only; version 7.0.4 only; …

Published 2017-07-10. Last modified 2026-06-17.