CVE-2016-5388: HTTPoxy in Apache Tomcat CGI Servlet
- Vendors
- Red HatOracle CorporationHewlett Packard EnterpriseApache Software Foundation
CVE-2016-5388 is an HTTPoxy vulnerability in Apache Tomcat CGI processing. When the optional CGI Servlet is enabled, Tomcat can propagate an attacker-controlled HTTP Proxy request-header value to a CGI script as the HTTP_PROXY environment variable. CGI applications using HTTP client implementations that honor this variable for proxy configuration can consequently route their outbound HTTP requests through an attacker-selected proxy. Affected upstream versions include Tomcat 7.0.70 and earlier in the 7.x line and Tomcat 8.5.4 and earlier in the 8.x line.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An unauthenticated remote attacker may redirect outbound HTTP traffic issued by an affected CGI application through an attacker-controlled proxy. This can enable interception of data transmitted by the CGI application, modification or injection of proxied HTTP responses, and denial of service by delaying or holding proxied connections open. Impact depends on the CGI application's outbound HTTP behavior and whether its HTTP client honors HTTP_PROXY.
Mitigation
If you can’t patch tonight, do this now.
Disable the CGI Servlet where CGI execution is not required. Until updates are installed, reject inbound requests containing a Proxy header before CGI processing, using a web-application filter or a global Tomcat valve. A source-level mitigation is to modify CGI handling to exclude the Proxy header from the CGI environment.
Remediation
Patch, then assume compromise.
Upgrade to a fixed Tomcat release. Fixed versions include Tomcat 7.0.72 or later and Tomcat 8.5.5 or later; Tomcat 8.0.37 also includes the upstream fix. For vendor-packaged deployments, install the applicable vendor security update. The correction prevents the inbound Proxy header from being propagated to CGI applications as HTTP_PROXY.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2016-5388 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2016-5388 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2016-5388?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2016-5388.
- Is there a patch for CVE-2016-5388?
- Upgrade to a fixed Tomcat release. Fixed versions include Tomcat 7.0.72 or later and Tomcat 8.5.5 or later; Tomcat 8.0.37 also includes the upstream fix.
- What products are affected by CVE-2016-5388?
- Apache Software Foundation Tomcat, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Hpc Node, Red Hat Enterprise Linux Hpc Node Eus, Red Hat Enterprise Linux Server, and 6 more.
- How severe is CVE-2016-5388?
- CVE-2016-5388 has a CVSS v3 score of 8.1 (High) and an EPSS score of 50.9% (99th percentile) as of Oct 16, 2026.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.