ADVISORIES

GitHub Advisory Database

GHSA-9737-qmgc-hfr9

Directory Traversal in Apache Tomcat

Moderate CVE-2008-5515

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.apache.tomcat:tomcat
From 4.1.0 before 4.1.40 (fixed in 4.1.40)
Mavenorg.apache.tomcat:tomcat
From 5.5.0 before 5.5.28 (fixed in 5.5.28)
Mavenorg.apache.tomcat:tomcat
From 6.0.0 before 6.0.20 (fixed in 6.0.20)

References