VDB
Sign up
MEDIUM

GHSA-m8h8-6rvg-f4mg

Apache Tomcat Path Traversal Vulnerability

Quick fix

GHSA-m8h8-6rvg-f4mg — org.apache.tomcat:tomcat: upgrade to the fixed version with the command below.

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

Details

Apache Tomcat 4.1.0 through 4.1.37, 5.5.0 through 5.5.26, and 6.0.0 through 6.0.16, when a `RequestDispatcher` is used, performs path normalization before removing the query string from the URI, which allows remote attackers to conduct directory traversal attacks and read arbitrary files via a `..` (dot dot) in a request parameter.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat:tomcat
Introduced in: 4.1.0Fixed in: 4.1.38
Fix# pom.xml: bump <version>4.1.38</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 5.5.0Fixed in: 5.5.27
Fix# pom.xml: bump <version>5.5.27</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 6.0.0Fixed in: 6.0.18
Fix# pom.xml: bump <version>6.0.18</version> for org.apache.tomcat:tomcat

References