# CVE-2016-5385: HTTP Proxy header vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 50.43% (percentile 99, 2026-11-26)
- **CWE:** CWE-601
- **Aliases:** GHSA-m6ch-gg5f-wxx3
- **Published:** 2016-07-19T01:00:00.000Z
- **Modified:** 2026-06-17T00:49:18.407Z

## 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)

## 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

- Packagist `guzzlehttp/guzzle`: affected \>= 6, \< 6.2.1; fixed 6.2.1, 4.2.4, 5.3.1 (osv)
- Packagist `drupal/core`: affected \>= 8.0, \< 8.1.7; fixed 8.1.7 (osv)
- Packagist `bugsnag/bugsnag-laravel`: affected \< 2.0.2; fixed 2.0.2 (osv)
- Packagist `amphp/artax`: affected \< 1.0.4; fixed 1.0.4, 2.0.4 (osv)
- Packagist `padraic/humbug_get_contents`: affected \< 1.1.2; fixed 1.1.2 (osv)
- n/a: see vendor advisory (nvd)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7RMYXAVNYL2MOBJTFATE73TOVOEZYC5R/>
- vendor: <https://security.gentoo.org/glsa/201611-22>
- vendor: <http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html>
- vendor: <http://rhn.redhat.com/errata/RHSA-2016-1613.html>
- vendor: <http://rhn.redhat.com/errata/RHSA-2016-1611.html>
- vendor: <http://rhn.redhat.com/errata/RHSA-2016-1610.html>
- vendor: <http://www.debian.org/security/2016/dsa-3631>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KZOIUYZDBWNDDHC6XTOLZYRMRXZWTJCP/>
- vendor: <http://rhn.redhat.com/errata/RHSA-2016-1609.html>
- vendor: <http://rhn.redhat.com/errata/RHSA-2016-1612.html>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GXFEIMZPSVGZQQAYIQ7U7DFVX3IBSDLF/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2016-5385>
- patch: <http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html>
- patch: <http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html>
- patch: <https://github.com/bugsnag/bugsnag-laravel/pull/143>
- patch: <https://github.com/bugsnag/bugsnag-laravel/pull/145>
- patch: <https://github.com/humbug/file_get_contents/pull/23>
- patch: <https://github.com/humbug/file_get_contents/pull/23/commits/848e8c282a863654e76bd958acfb57c81cb739b5>
- patch: <https://github.com/amphp/artax/commit/81254742812a5a9adf4b085f543f3f21daedcd97>
- patch: <https://github.com/amphp/artax/commit/b60cf493c9e577a3678865f620b1eb61ab3d7ca9>
- other: <https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149>
- other: <https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05333297>
- other: <http://www.kb.cert.org/vuls/id/797896>
- other: <https://www.drupal.org/SA-CORE-2016-003>
- other: <http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html>
- other: <http://www.securityfocus.com/bid/91821>
- other: <https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722>
- other: <https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03770en_us>
- other: <http://www.securitytracker.com/id/1036335>
- other: <https://httpoxy.org/>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=1353794>
- other: <https://github.com/guzzle/guzzle/releases/tag/6.2.1>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2016-5385.yaml>
- other: <https://github.com/bugsnag/bugsnag-laravel/releases/tag/v2.0.2>
- other: <https://github.com/guzzle/guzzle/blob/4.x/CHANGELOG.md#424-2016-07-18>
- other: <https://github.com/guzzle/guzzle/blob/5.3/CHANGELOG.md#531---2016-07-18>
- other: <https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md#622---2016-10-08>
- other: <https://github.com/humbug/file_get_contents/releases/tag/1.1.2>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7RMYXAVNYL2MOBJTFATE73TOVOEZYC5R/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GXFEIMZPSVGZQQAYIQ7U7DFVX3IBSDLF/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KZOIUYZDBWNDDHC6XTOLZYRMRXZWTJCP/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2016-5385>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m6ch-gg5f-wxx3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2016-5385> · JSON: <https://flawdb.com/api/v1/entries/CVE-2016-5385>
