CVE-2016-5388: Apache Tomcat Improper Access Control Vulnerability
HIGHCVE-2016-5388 is a HIGH (CVSS 8.1) improper access control vulnerability (CWE-284: Improper Access Control) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves improper access control in apache tomcat. Remediation is available by upgrading affected packages to version 7.0.72, 8.5.5.
CVE-2016-5388 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-5388
To remediate this vulnerability, upgrade all affected Apache Tomcat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>7.0.72</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>8.5.5</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.tomcat
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2016-5388, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.tomcat
Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.72), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.tomcat command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Apache Tomcat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-5388 Affected Apache Tomcat Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 7.0.0
< 7.0.72
|
7.0.72
|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 8.0.0
< 8.5.5
|
8.5.5
|
References
Frequently Asked Questions
What is CVE-2016-5388?
Which Apache Tomcat versions are affected?
What version fixes CVE-2016-5388?
Is tomcat-catalina affected?
What is the CVSS score of CVE-2016-5388?
What CWE is associated with CVE-2016-5388?
How can I check Maven dependencies for CVE-2016-5388?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v646-rx6w-r3qq",
"modified" : "2024-02-22T19:57:05Z",
"published" : "2022-05-13T01:23:38Z",
"aliases" : [ "CVE-2016-5388" ],
"summary" : "Improper Access Control in Apache Tomcat",
"details" : "Apache Tomcat 7.x through 7.0.70 and 8.x through 8.5.4, when the CGI Servlet is enabled, follows RFC 3875 section 4.1.18 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, aka an \"httpoxy\" issue. NOTE: the vendor states \"A mitigation is planned for future releases of Tomcat, tracked as CVE-2016-5388\"; in other words, this is not a CVE ID for a vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.72"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.5.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-5388"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/1b91e91194a095ea922f96d1dccddf6fbc446e54"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/880250877b0643956435282afb9c111450cfff4c"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/fb3569fbb9a2f55459aa8e1e22bc35a737e66329"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2016:1624"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/6d3d34adcf3dfc48e36342aa1f18ce3c20bb8e4c458a97508d5bfed1@%3Cissues.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r2853582063cfd9e7fbae1e029ae004e6a83482ae9b70a698996353dd%40%3Cusers.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r2853582063cfd9e7fbae1e029ae004e6a83482ae9b70a698996353dd@%3Cusers.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rc6b2147532416cc736e68a32678d3947b7053c3085cf43a9874fd102%40%3Cusers.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rc6b2147532416cc736e68a32678d3947b7053c3085cf43a9874fd102@%3Cusers.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rf21b368769ae70de4dee840a3228721ae442f1d51ad8742003aefe39%40%3Cusers.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rf21b368769ae70de4dee840a3228721ae442f1d51ad8742003aefe39@%3Cusers.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2019/08/msg00015.html"
}, {
"type" : "WEB",
"url" : "https://lists.opensuse.org/opensuse-updates/2016-09/msg00025.html"
}, {
"type" : "WEB",
"url" : "https://rhn.redhat.com/errata/RHSA-2016-1624.html"
}, {
"type" : "WEB",
"url" : "https://rhn.redhat.com/errata/RHSA-2016-2045.html"
}, {
"type" : "WEB",
"url" : "https://rhn.redhat.com/errata/RHSA-2016-2046.html"
}, {
"type" : "WEB",
"url" : "https://tomcat.apache.org/tomcat-7.0-doc/changelog.html"
}, {
"type" : "WEB",
"url" : "https://www.apache.org/security/asf-httpoxy-response.txt"
}, {
"type" : "WEB",
"url" : "https://www.kb.cert.org/vuls/id/797896"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2016:1635"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2016:1636"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2016:2045"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2016:2046"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2016-5388"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1353809"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/tomcat"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03770en_us"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05324759"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/053d9ce4d579b02203db18545fee5e33f35f2932885459b74d1e4272%40%3Cissues.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/053d9ce4d579b02203db18545fee5e33f35f2932885459b74d1e4272@%3Cissues.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/6b414817c2b0bf351138911c8c922ec5dd577ebc0b9a7f42d705752d%40%3Cissues.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/6b414817c2b0bf351138911c8c922ec5dd577ebc0b9a7f42d705752d@%3Cissues.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/6d3d34adcf3dfc48e36342aa1f18ce3c20bb8e4c458a97508d5bfed1%40%3Cissues.activemq.apache.org%3E"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T19:44:02Z",
"nvd_published_at" : "2016-07-19T02:00:00Z"
}
}