CVE-2009-2693: Apache Tomcat Directory Traversal vulnerability
5.8
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.94301%
CWE
Published
5/2/2022
Updated
2/21/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
AV:N/AC:M/Au:N/C:N/I:P/A:P
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.tomcat:tomcat | maven | >= 5.5.0, <= 5.5.28 | 5.5.29 |
org.apache.tomcat:tomcat | maven | >= 6.0.0, < 6.0.24 | 6.0.24 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from insufficient path validation in three key areas: (1) WebappClassLoader
's resource extraction allowed JAR entries to escape the loader directory via path traversal, (2) ExpandWar
's WAR expansion did not enforce docBase boundaries, and (3) HostConfig
's WAR filename-to-context-path
mapping permitted directory traversal sequences. The commit explicitly adds canonical path checks (e.g., startsWith(canonicalLoaderDir)
) and filename
validation to address these flaws, confirming these functions were the vulnerable points.