httpoxy: the Proxy header becomes HTTP_PROXY
CGI maps an inbound `Proxy` header to `HTTP_PROXY`, colliding with the conventional environment variable for an outbound HTTP proxy. PHP applications and libraries that trusted `getenv('HTTP_PROXY')` could route server-side requests through an attacker-selected proxy.
- Product
- PHP CGI/FastCGI environment handling and applications trusting HTTP_PROXY
- Vendor
- PHP Group
- Affected
- PHP through 7.0.8 in CGI or FastCGI-style deployments where application or library code uses the request-derived `HTTP_PROXY` environment variable as outbound proxy configuration
- Fixed in
- PHP 5.5.38, 5.6.24, and 7.0.9 or later in their branches, plus web-server or application defenses that reject the `Proxy` request header and never trust CGI `HTTP_PROXY`
- Weakness
- CWE-601
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 18 Jul 2016
Classified as
References
Related CVEs
- CVE-2019-11043high 8.72019
PHP-FPM PATH_INFO pointer underflow
A malformed FastCGI path can make PATH_INFO shorter than the script-path adjustment, moving a derived pointer before its buffer and enabling an out-of-bounds write.
- CVE-2026-61511critical 9.82026
vBulletin runMaths pre-auth eval injection RCE
An unauthenticated template value reaches a character-filtered PHP expression evaluator whose permitted operators can still synthesize a callable function expression before eval executes it.
- CVE-2026-35178critical 9.32026
Workbench malicious timezone cookie dynamic PHP code injection
An overrideable cookie value is loaded without picklist validation and concatenated into a create_function body, so timestamp formatting compiles attacker-controlled PHP syntax.
- CVE-2024-4577critical 9.82024
PHP-CGI Windows Best-Fit argument injection
PHP-CGI checked one byte representation for an option prefix, while Windows later converted a soft hyphen into an ASCII hyphen before option parsing.