CVE-2015-5174: Path Traversal
Directory traversal vulnerability in RequestUtil.java in Apache Tomcat 6.x before 6.0.45, 7.x before 7.0.65, and 8.x before 8.0.27 allows remote authenticated users to bypass intended SecurityManager restrictions and list a parent directory via a /.. (slash dot dot) in a pathname used by a web application in a getResource, getResourceAsStream, or getResourcePaths call, as demonstrated by the $CATALINABASE/webapps directory.
Other sources
URL Normalisation issue
A directory traversal vulnerability exists in RequestUtil.java in Apache Tomcat 6.x before 6.0.45, 7.x before 7.0.65, and 8.x before 8.0.27 that allows a remote authenticated users to bypass intended SecurityManager restrictions and list a parent directory via a /.. (slash dot dot) in a pathname used by a web application in a getResource, getResourceAsStream, or getResourcePaths call, as demonstrated by the $CATALINABASE/webapps directory.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/tomcatto a version that resolves this vulnerability.Fixed in 6.0.45 - Upgrade
Upgrade
redhat/tomcatto a version that resolves this vulnerability.Fixed in 7.0.65 - Upgrade
Upgrade
redhat/tomcatto a version that resolves this vulnerability.Fixed in 8.0.27 - Upgrade
Upgrade
Apache Tomcat 6.xto a version that resolves this vulnerability.Fixed in 6.0.45 - Upgrade
Upgrade
Apache Tomcat 7.xto a version that resolves this vulnerability.Fixed in 7.0.65 - Upgrade
Upgrade
Apache Tomcat 8.xto a version that resolves this vulnerability.Fixed in 8.0.27
Event History
Frequently Asked Questions
What is the severity of CVE-2015-5174?
CVE-2015-5174 has been classified as a medium severity vulnerability.
How do I fix CVE-2015-5174?
To fix CVE-2015-5174, upgrade Apache Tomcat to versions 6.0.45, 7.0.65, or 8.0.27 and above.
Who is affected by CVE-2015-5174?
CVE-2015-5174 affects Apache Tomcat versions prior to 6.0.45, 7.0.65, and 8.0.27.
What type of vulnerability is CVE-2015-5174?
CVE-2015-5174 is a directory traversal vulnerability that allows authenticated users to bypass security restrictions.
What are the consequences of CVE-2015-5174?
Exploiting CVE-2015-5174 could allow an attacker to list parent directories and access restricted files on the server.