CVEfocus › CVE database › CVE-2017-7189

CVE-2017-7189

CVSS 7.5 HighEPSS 2.4% (higher than 85% of CVEs)Published 2019-07-10Updated 2024-08-05Assigner: mitre

main/streams/xp_socket.c in PHP 7.x before 2017-03-07 misparses fsockopen calls, such as by interpreting fsockopen('127.0.0.1:80', 443) as if the address/port were 127.0.0.1:80:443, which is later truncated to 127.0.0.1:80. This behavior has a security risk if the explicitly provided port number (i.e., 443 in this example) is hardcoded into an application as a security policy, but the hostname argument (i.e., 127.0.0.1:80 in this example) is obtained from untrusted input.

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

4Fix pending
1Under investigation
93Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04php8.1Under investigationUBUNTU-CVE-2017-7189
Ubuntu 20.04php7.4Fix pendingUBUNTU-CVE-2017-7189
Ubuntu 18.04php7.2Fix pendingUBUNTU-CVE-2017-7189
Ubuntu 16.04php7.0Fix pendingUBUNTU-CVE-2017-7189
Ubuntu 14.04php5Fix pendingUBUNTU-CVE-2017-7189
Red Hat Enterprise Linux 8apcu-panelWill not fix
Will not fix
Red Hat Enterprise Linux 8libzipWill not fix
Will not fix
Red Hat Enterprise Linux 8libzip-develWill not fix
Will not fix
Red Hat Enterprise Linux 8libzip-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 8phpWill not fix
Will not fix
Red Hat Enterprise Linux 8php-bcmathWill not fix
Will not fix
Red Hat Enterprise Linux 8php-cliWill not fix
Will not fix
Red Hat Enterprise Linux 8php-commonWill not fix
Will not fix
Red Hat Enterprise Linux 8php-dbaWill not fix
Will not fix
Red Hat Enterprise Linux 8php-dbgWill not fix
Will not fix
Red Hat Enterprise Linux 8php-develWill not fix
Will not fix
Red Hat Enterprise Linux 8php-embeddedWill not fix
Will not fix
Red Hat Enterprise Linux 8php-enchantWill not fix
Will not fix
Red Hat Enterprise Linux 8php-ffiWill not fix
Will not fix
Red Hat Enterprise Linux 8php-fpmWill not fix
Will not fix
Red Hat Enterprise Linux 8php-gdWill not fix
Will not fix
Red Hat Enterprise Linux 8php-gmpWill not fix
Will not fix
Red Hat Enterprise Linux 8php-intlWill not fix
Will not fix
Red Hat Enterprise Linux 8php-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 8php-ldapWill not fix
Will not fix
Red Hat Enterprise Linux 8php-mbstringWill not fix
Will not fix
Red Hat Enterprise Linux 8php-mysqlndWill not fix
Will not fix
Red Hat Enterprise Linux 8php-odbcWill not fix
Will not fix
Red Hat Enterprise Linux 8php-opcacheWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pdoWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pearWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pecl-apcuWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pecl-apcu-develWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pecl-rrdWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pecl-xdebugWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pecl-xdebug3Will not fix
Will not fix
Red Hat Enterprise Linux 8php-pecl-zipWill not fix
Will not fix
Red Hat Enterprise Linux 8php-pgsqlWill not fix
Will not fix
Red Hat Enterprise Linux 8php-processWill not fix
Will not fix
Red Hat Enterprise Linux 8php-recodeWill not fix
Will not fix
Red Hat Enterprise Linux 8php-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 8php-soapWill not fix
Will not fix
Red Hat Enterprise Linux 8php-xmlWill not fix
Will not fix
Red Hat Enterprise Linux 8php-xmlrpcWill not fix
Will not fix
Red Hat Enterprise Linux 7phpWill not fix
Will not fix
Red Hat Enterprise Linux 7php-bcmathWill not fix
Will not fix
Red Hat Enterprise Linux 7php-cliWill not fix
Will not fix
Red Hat Enterprise Linux 7php-commonWill not fix
Will not fix
Red Hat Enterprise Linux 7php-dbaWill not fix
Will not fix
Red Hat Enterprise Linux 7php-develWill not fix
Will not fix
Red Hat Enterprise Linux 7php-embeddedWill not fix
Will not fix
Red Hat Enterprise Linux 7php-enchantWill not fix
Will not fix
Red Hat Enterprise Linux 7php-fpmWill not fix
Will not fix
Red Hat Enterprise Linux 7php-gdWill not fix
Will not fix
Red Hat Enterprise Linux 7php-intlWill not fix
Will not fix
Red Hat Enterprise Linux 7php-ldapWill not fix
Will not fix
Red Hat Enterprise Linux 7php-mbstringWill not fix
Will not fix
Red Hat Enterprise Linux 7php-mysqlWill not fix
Will not fix
Red Hat Enterprise Linux 7php-mysqlndWill not fix
Will not fix
Red Hat Enterprise Linux 7php-odbcWill not fix
Will not fix
Red Hat Enterprise Linux 7php-pdoWill not fix
Will not fix
Red Hat Enterprise Linux 7php-pgsqlWill not fix
Will not fix
Red Hat Enterprise Linux 7php-processWill not fix
Will not fix
Red Hat Enterprise Linux 7php-pspellWill not fix
Will not fix
Red Hat Enterprise Linux 7php-recodeWill not fix
Will not fix
Red Hat Enterprise Linux 7php-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 7php-soapWill not fix
Will not fix
Red Hat Enterprise Linux 7php-xmlWill not fix
Will not fix
Red Hat Enterprise Linux 7php-xmlrpcWill not fix
Will not fix
Red Hat Enterprise Linux 6phpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-imapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-tidyWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ztsWill not fix
Out of support scope
Red Hat Enterprise Linux 5phpWill not fix
Out of support scope
Red Hat Enterprise Linux 5php53Will not fix
Out of support scope

References

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.