Skip to content
OpenAdvisories
Unscored CVE-2016-10397 EUVD-2016-1579GHSA-25h5-rq96-q5mq

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 by…

Published Jul 10, 2017 · Updated Aug 6, 2024 · Assigned by mitre

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).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 7 php5 5.4.45-0+deb7u9 DLA-1034-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS php7.0 7.0.22-0ubuntu0.16.04.1 USN-3382-1
Ubuntu 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.22 USN-3382-1
ReleasePackageFixed inAdvisory
SLES 12 SP3 php5 5.5.14-109.5.1 SUSE-SU-2017:2317-1
SLES 12 SP3 php7 7.0.7-50.9.2 SUSE-SU-2017:2303-1
SLES 12 SP2 php5 5.5.14-109.5.1 SUSE-SU-2017:2317-1
SLES 12 SP2 php7 7.0.7-50.9.2 SUSE-SU-2017:2303-1
SLES 12 php5 5.5.14-109.5.1 SUSE-SU-2017:2317-1
SLES 12 php7 7.0.7-50.9.2 SUSE-SU-2017:2303-1
SLES 11 SP4 php53 5.3.17-112.5.1 SUSE-SU-2017:2522-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 11 SP4 php53 5.3.17-112.5.1 SUSE-SU-2017:2522-1

Advisories 5

References