CVE-2016-10397
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).
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | php7.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | php5 | Fixed | 5.5.9+dfsg-1ubuntu4.22 | UBUNTU-CVE-2016-10397 |
| Red Hat Enterprise Linux 7 | php | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-bcmath | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-cli | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-dba | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-embedded | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-enchant | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-fpm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-gd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-intl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-ldap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-mbstring | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-mysql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-mysqlnd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-odbc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-pdo | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-pgsql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-process | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-pspell | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-recode | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-snmp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-soap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-xml | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | php-xmlrpc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-cli | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-dba | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-embedded | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-enchant | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-fpm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-gd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-imap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-intl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-ldap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-mysql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-odbc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-pdo | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-process | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-pspell | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-recode | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-snmp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-soap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-tidy | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-xml | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | php-zts | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | php | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | php53 | Will not fix Will not fix |
References
- http://openwall.com/lists/oss-security/2017/07/10/6
- http://php.net/ChangeLog-5.php
- https://security.netapp.com/advisory/ntap-20180112-0001/
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=b061fa909de77085d3822a89ab901b934d0362c4
- http://www.securityfocus.com/bid/99552
- http://php.net/ChangeLog-7.php
- https://bugs.php.net/bug.php?id=73192
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.