CVE-2017-7272
PHP through 7.1.11 enables potential SSRF in applications that accept an fsockopen or pfsockopen hostname argument with an expectation that the port number is constrained. Because a :port syntax is recognized, fsockopen will use the port number that is specified in the hostname argument, instead of the port number in the second argument of the function.
What to do
Ubuntu has not shipped a fix for every release yet.
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 | Will not fix the change in behaviour broke applications relying on undocumented behaviour so was reverted in subsequent releases We will not be fixing this in stable… | UBUNTU-CVE-2017-7272 | |
| Ubuntu 14.04 | php5 | Fix pending | UBUNTU-CVE-2017-7272 | |
| 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://www.securityfocus.com/bid/97178
- http://www.securitytracker.com/id/1038158
- https://bugs.php.net/bug.php?id=75505
- https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a
- https://security.netapp.com/advisory/ntap-20180112-0001/
- https://www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20170403-0_PHP_Misbehavior_of_fsockopen_function_v10.txt
- https://bugs.php.net/bug.php?id=74216
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.