VDB
Sign up
MEDIUM5.3

GHSA-9737-qmgc-hfr9

Directory Traversal in Apache Tomcat

Quick fix

GHSA-9737-qmgc-hfr9 — org.apache.tomcat:tomcat: upgrade to the fixed version with the command below.

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

Details

Apache Tomcat 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, 6.0.0 through 6.0.18, and possibly earlier versions normalizes the target pathname before filtering the query string when using the RequestDispatcher method, which allows remote attackers to bypass intended access restrictions and conduct directory traversal attacks via .. (dot dot) sequences and the WEB-INF directory in a Request.

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.40
Fix# pom.xml: bump <version>4.1.40</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 5.5.0Fixed in: 5.5.28
Fix# pom.xml: bump <version>5.5.28</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 6.0.0Fixed in: 6.0.20
Fix# pom.xml: bump <version>6.0.20</version> for org.apache.tomcat:tomcat

References