CVE-2016-5385
PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect an application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, as demonstrated by (1) an application that makes a getenv('HTTP_PROXY') call or (2) a CGI configuration of PHP, aka an "httpoxy" issue.
What to do
Likely to be exploited: EPSS gives a 50% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Packagist, Red Hat, 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 | Fixed | 7.0.8-0ubuntu0.16.04.2 | UBUNTU-CVE-2016-5385 |
| Ubuntu 14.04 | php5 | Fixed | 5.5.9+dfsg-1ubuntu4.19 | UBUNTU-CVE-2016-5385 |
| Red Hat Enterprise Linux 7 | php | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-bcmath | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-cli | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-common | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-dba | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-devel | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-embedded | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-enchant | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-fpm | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-gd | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-intl | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-ldap | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-mbstring | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-mysql | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-mysqlnd | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-odbc | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-pdo | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-pgsql | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-process | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-pspell | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-recode | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-snmp | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-soap | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-xml | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 7 | php-xmlrpc | Fixed | 0:5.4.16-36.3.el7_2 | RHSA-2016:1613 |
| Red Hat Enterprise Linux 6 | php | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-bcmath | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-cli | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-common | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-dba | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-devel | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-embedded | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-enchant | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-fpm | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-gd | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-imap | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-intl | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-ldap | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-mbstring | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-mysql | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-odbc | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-pdo | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-pgsql | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-process | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-pspell | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-recode | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-snmp | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-soap | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-tidy | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-xml | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-xmlrpc | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 6 | php-zts | Fixed | 0:5.3.3-48.el6_8 | RHSA-2016:1609 |
| Red Hat Enterprise Linux 5 | php | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | php53 | Will not fix Will not fix | ||
| Packagist library | amphp/artax | Fixed | 1.0.4 | GHSA-m6ch-gg5f-wxx3 |
| Packagist library | bugsnag/bugsnag-laravel | Fixed | 2.0.2 | GHSA-m6ch-gg5f-wxx3 |
| Packagist library | drupal/core | Fixed | 8.1.7 | GHSA-m6ch-gg5f-wxx3 |
| Packagist library | guzzlehttp/guzzle | Fixed | 5.3.1 | GHSA-m6ch-gg5f-wxx3 |
| Packagist library | padraic/humbug_get_contents | Fixed | 1.1.2 | GHSA-m6ch-gg5f-wxx3 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/201611-22 (vendor-advisory)
- http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-1613.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-1611.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-1610.html (vendor-advisory)
References
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7RMYXAVNYL2MOBJTFATE73TOVOEZYC5R/
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05333297
- http://www.kb.cert.org/vuls/id/797896
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
- https://security.gentoo.org/glsa/201611-22
- http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html
- https://www.drupal.org/SA-CORE-2016-003
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
- http://rhn.redhat.com/errata/RHSA-2016-1613.html
- http://rhn.redhat.com/errata/RHSA-2016-1611.html
- http://rhn.redhat.com/errata/RHSA-2016-1610.html
- http://www.debian.org/security/2016/dsa-3631
- http://www.securityfocus.com/bid/91821
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722
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.