# CVE-2016-5385: Server-side request forgery in n/a

> Remote attackers can redirect outbound HTTP traffic to arbitrary proxies via crafted headers, potentially exposing internal data or bypassing security controls.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Jul 2016
- **Updated:** 6 Aug 2024
- **Also known as:** CVE-2016-1000100, GHSA-m6ch-gg5f-wxx3, RHSA-2016:1609, RHSA-2016:1610, RHSA-2016:1611, RHSA-2016:1612, RHSA-2016:1613, UBUNTU-CVE-2016-5385, openSUSE-SU-2024:11175-1

## What is CVE-2016-5385?

CVE-2016-5385 is a high-severity server-side request forgery vulnerability in Debian Debian Linux, published on 19 Jul 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-601 (URL Redirection to Untrusted Site)

## Which versions are affected by CVE-2016-5385?

8 open source packages ship an affected version, including guzzlehttp/guzzle, amphp/artax and bugsnag/bugsnag-laravel. It affects 13 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `guzzlehttp/guzzle` | Packagist | From 4.0.0-rc2 | 4.2.4 |
| `guzzlehttp/guzzle` | Packagist | From 5 | 5.3.1 |
| `guzzlehttp/guzzle` | Packagist | From 6 | 6.2.1 |
| `amphp/artax` | Packagist | All versions | 1.0.4 |
| `amphp/artax` | Packagist | From 2.0.0 | 2.0.4 |
| `bugsnag/bugsnag-laravel` | Packagist | All versions | 2.0.2 |
| `drupal/core` | Packagist | From 8.0 | 8.1.7 |
| `padraic/humbug_get_contents` | Packagist | All versions | 1.1.2 |
| `php` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-bcmath` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-cli` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-common` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-dba` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-debuginfo` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-devel` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-embedded` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-enchant` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-fpm` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-gd` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-imap` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-intl` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-ldap` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-mbstring` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-mysql` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-odbc` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-pdo` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-pgsql` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-process` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-pspell` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-recode` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-snmp` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-soap` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-tidy` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-xml` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-xmlrpc` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php-zts` | Red Hat:enterprise_linux:6::client | All versions | 0:5.3.3-48.el6_8 |
| `php` | Red Hat:enterprise_linux:6::computenode | All versions | 0:5.3.3-48.el6_8 |
| `php-bcmath` | Red Hat:enterprise_linux:6::computenode | All versions | 0:5.3.3-48.el6_8 |
| `php-cli` | Red Hat:enterprise_linux:6::computenode | All versions | 0:5.3.3-48.el6_8 |
| `php-common` | Red Hat:enterprise_linux:6::computenode | All versions | 0:5.3.3-48.el6_8 |

Products: Debian Debian Linux, Drupal Drupal, Fedoraproject Fedora, Hp Storeever Msl6480 Tape Library Firmware, Hp System Management Homepage, Opensuse Leap, Oracle Communications User Data Repository, Oracle Enterprise Manager Ops Center, Oracle Linux, Php Php, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Workstation.

## How do I fix CVE-2016-5385?

Upgrade guzzlehttp/guzzle to a fixed version for your release line: 4.2.4, 5.3.1 or 6.2.1.

## Is CVE-2016-5385 being exploited?

There is no known exploitation of CVE-2016-5385 in the wild and no public exploit code.

## Other vulnerabilities in Debian Debian Linux

- [CVE-2015-3306](https://insights.sbomify.com/CVE-2015-3306/): ProFTPD Improper Access Control (critical 10.0, exploited in the wild)
- [CVE-2025-49113](https://insights.sbomify.com/CVE-2025-49113/): RoundCube Webmail Deserialization of Untrusted Data (critical 9.9, exploited in the wild)
- [CVE-2026-24061](https://insights.sbomify.com/CVE-2026-24061/): GNU InetUtils Argument Injection (critical 9.8, exploited in the wild)
- [CVE-2025-39682](https://insights.sbomify.com/CVE-2025-39682/): Linux Kernel Improper Check for Unusual or Exceptional Conditions (critical 9.8, exploited in the wild)
- [CVE-2024-9680](https://insights.sbomify.com/CVE-2024-9680/): Mozilla Firefox Use-After-Free (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2016-5385 and fix it if it is affected.

What it is: CVE-2016-5385 is a high-severity server-side request forgery vulnerability in Debian Debian Linux, published on 19 Jul 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2016-5385 in the wild and no public exploit code.

Affected packages and fixed versions:
- guzzlehttp/guzzle (Packagist): affected from 4.0.0-rc2; fixed in 4.2.4
- guzzlehttp/guzzle (Packagist): affected from 5; fixed in 5.3.1
- guzzlehttp/guzzle (Packagist): affected from 6; fixed in 6.2.1
- amphp/artax (Packagist): affected all versions; fixed in 1.0.4
- amphp/artax (Packagist): affected from 2.0.0; fixed in 2.0.4
- bugsnag/bugsnag-laravel (Packagist): affected all versions; fixed in 2.0.2
- drupal/core (Packagist): affected from 8.0; fixed in 8.1.7
- padraic/humbug_get_contents (Packagist): affected all versions; fixed in 1.1.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2016-5385/ (Markdown: https://insights.sbomify.com/CVE-2016-5385/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2016-5385
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2016-5385
- OSV: https://osv.dev/vulnerability/CVE-2016-5385

---
From sbomify Insights: https://insights.sbomify.com/CVE-2016-5385/
Summaries are generated and may contain mistakes; the official description above is the record.
