VDB
Sign up
MEDIUM4.3

GHSA-6qr6-x7jm-x2q6

Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat

Quick fix

GHSA-6qr6-x7jm-x2q6 — org.apache.tomcat:tomcat: upgrade to the fixed version with the command below.

# pom.xml: bump <version>8.0.27</version> for org.apache.tomcat:tomcat

Details

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 $CATALINA_BASE/webapps directory.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat:tomcat
Introduced in: 8.0.0-RC1Fixed in: 8.0.27
Fix# pom.xml: bump <version>8.0.27</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 7.0.0Fixed in: 7.0.65
Fix# pom.xml: bump <version>7.0.65</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 6.0.0Fixed in: 6.0.45
Fix# pom.xml: bump <version>6.0.45</version> for org.apache.tomcat:tomcat

References