CVE-2016-5385
HTTP Proxy header vulnerability
Also known as GHSA-m6ch-gg5f-wxx3
Mitigation
- Upgrade guzzlehttp/guzzle to one of 6.2.1, 4.2.4, 5.3.1 (or later in the same release line).
- Upgrade drupal/core to 8.1.7 or later.
- Upgrade bugsnag/bugsnag-laravel to 2.0.2 or later.
- Upgrade amphp/artax to one of 1.0.4, 2.0.4 (or later in the same release line).
- Upgrade padraic/humbug_get_contents to 1.1.2 or later.
Who should check
- Projects that depend on Packagist package guzzlehttp/guzzle (>= 6, < 6.2.1)
- Projects that depend on Packagist package drupal/core (>= 8.0, < 8.1.7)
- Projects that depend on Packagist package bugsnag/bugsnag-laravel (< 2.0.2)
- Projects that depend on Packagist package amphp/artax (< 1.0.4)
- Projects that depend on Packagist package padraic/humbug_get_contents (< 1.1.2)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- guzzlehttp/guzzle >= 6, < 6.2.1; drupal/core >= 8.0, < 8.1.7; bugsnag/bugsnag-laravel < 2.0.2; amphp/artax < 1.0.4; padraic/humbug_get_contents < 1.1.2
- Fixed in
- 6.2.1, 4.2.4, 5.3.1, 8.1.7, 2.0.2, 1.0.4, 2.0.4, 1.1.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.1, NVD)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 50.43% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-601
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist guzzlehttp/guzzle | >= 6, < 6.2.1 | 6.2.1, 4.2.4, 5.3.1 | osv |
| Packagist drupal/core | >= 8.0, < 8.1.7 | 8.1.7 | osv |
| Packagist bugsnag/bugsnag-laravel | < 2.0.2 | 2.0.2 | osv |
| Packagist amphp/artax | < 1.0.4 | 1.0.4, 2.0.4 | osv |
| Packagist padraic/humbug_get_contents | < 1.1.2 | 1.1.2 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2016-5385. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2016-5385.md Affected: guzzlehttp/guzzle >= 6, < 6.2.1; drupal/core >= 8.0, < 8.1.7; bugsnag/bugsnag-laravel < 2.0.2; amphp/artax < 1.0.4; padraic/humbug_get_contents < 1.1.2 Fixed in: 6.2.1, 4.2.4, 5.3.1, 8.1.7, 2.0.2, 1.0.4, 2.0.4, 1.1.2 Steps: 1. Search this machine and project for guzzlehttp/guzzle (Packagist), drupal/core (Packagist), bugsnag/bugsnag-laravel (Packagist), amphp/artax (Packagist), padraic/humbug_get_contents (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7RMYXAVNYL2MOBJTFATE73TOVOEZYC5R/
- https://security.gentoo.org/glsa/201611-22
- http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.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
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KZOIUYZDBWNDDHC6XTOLZYRMRXZWTJCP/
- http://rhn.redhat.com/errata/RHSA-2016-1609.html
- http://rhn.redhat.com/errata/RHSA-2016-1612.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GXFEIMZPSVGZQQAYIQ7U7DFVX3IBSDLF/
- https://nvd.nist.gov/vuln/detail/CVE-2016-5385
Patches
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- https://github.com/bugsnag/bugsnag-laravel/pull/143
- https://github.com/bugsnag/bugsnag-laravel/pull/145
- https://github.com/humbug/file_get_contents/pull/23
- https://github.com/humbug/file_get_contents/pull/23/commits/848e8c282a863654e76bd958acfb57c81cb739b5
- https://github.com/amphp/artax/commit/81254742812a5a9adf4b085f543f3f21daedcd97
- https://github.com/amphp/artax/commit/b60cf493c9e577a3678865f620b1eb61ab3d7ca9
Other
- 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
- https://www.drupal.org/SA-CORE-2016-003
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
- http://www.securityfocus.com/bid/91821
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03770en_us
- http://www.securitytracker.com/id/1036335
- https://httpoxy.org/
- https://bugzilla.redhat.com/show_bug.cgi?id=1353794
- https://github.com/guzzle/guzzle/releases/tag/6.2.1
- https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2016-5385.yaml
- https://github.com/bugsnag/bugsnag-laravel/releases/tag/v2.0.2
- https://github.com/guzzle/guzzle/blob/4.x/CHANGELOG.md#424-2016-07-18
- https://github.com/guzzle/guzzle/blob/5.3/CHANGELOG.md#531---2016-07-18
- https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md#622---2016-10-08
- https://github.com/humbug/file_get_contents/releases/tag/1.1.2
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7RMYXAVNYL2MOBJTFATE73TOVOEZYC5R/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GXFEIMZPSVGZQQAYIQ7U7DFVX3IBSDLF/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KZOIUYZDBWNDDHC6XTOLZYRMRXZWTJCP/
FAQ
Is CVE-2016-5385 being exploited?
There is no confirmed exploitation: CVE-2016-5385 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 50.43% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2016-5385?
High: CVSS 8.1 (v3.1, scored by NVD). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2016-5385?
guzzlehttp/guzzle >= 6, < 6.2.1; drupal/core >= 8.0, < 8.1.7; bugsnag/bugsnag-laravel < 2.0.2; amphp/artax < 1.0.4; padraic/humbug_get_contents < 1.1.2.
Is there a fix for CVE-2016-5385?
Yes. Fixed in 6.2.1, 4.2.4, 5.3.1, 8.1.7, 2.0.2, 1.0.4, 2.0.4, 1.1.2. Upgrade guzzlehttp/guzzle to one of 6.2.1, 4.2.4, 5.3.1 (or later in the same release line). Upgrade drupal/core to 8.1.7 or later. Upgrade bugsnag/bugsnag-laravel to 2.0.2 or later. Upgrade amphp/artax to one of 1.0.4, 2.0.4 (or later in the same release line). Upgrade padraic/humbug_get_contents to 1.1.2 or later.
How do I check if I'm affected by CVE-2016-5385?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.