Directory Traversal in Apache Tomcat
Summary
CVE-2008-5515: Directory Traversal in Apache Tomcat. Affects org.apache.tomcat:tomcat across 3 version ranges.
>= 4.1.0, < 4.1.40
>= 5.5.0, < 5.5.28
>= 6.0.0, < 6.0.20
Fixed in 4.1.40, 5.5.28 or 6.0.20, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
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.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 4.1.0, < 4.1.404.1.40 -
>= 5.5.0, < 5.5.285.5.28 -
>= 6.0.0, < 6.0.206.0.20
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.tomcat:tomcat.