Limited directory traversal in Apache Tomcat and Oracle Linux - CVE-2015-5174

 

Limited directory traversal in Apache Tomcat and Oracle Linux - CVE-2015-5174

Published: August 5, 2016 / Updated: January 11, 2017


Vulnerability identifier: #VU261
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2015-5174
CWE-ID: CWE-22
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Apache Foundation

Oracle
Affected software:
Apache Tomcat

Oracle Linux

Detailed vulnerability description

The vulnerability allows a local attacker to obtain potentially sensitive information.

The vulnerability exists due to incorrect validation of paths in getResource(), getResourceAsStream() and getResourcePaths() methods within ServletContext. A local attacker can bypass security manager restrictions using directory traversal sequences and view directory listing outside the $CATALINA_BASE/webapps folder.

Successful exploitation of the vulnerability may allow a local attacker to obtain names of files and folder on vulnerable system.


How to mitigate CVE-2015-5174

Install the latest version Apache Tomcat 6.0.45, 7.0.65, 8.0.27

Sources