CVE-2009-2902 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Apache Tomcat
Remote attackers can delete work-directory files in Apache Tomcat via directory traversal sequences in WAR filenames.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2009-2902?
CVE-2009-2902 is a medium-severity path traversal vulnerability in Apache Tomcat, published on 28 Jan 2010. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Directory traversal vulnerability in Apache Tomcat 5.5.0 through 5.5.28 and 6.0.0 through 6.0.20 allows remote attackers to delete work-directory files via directory traversal sequences in a WAR filename, as demonstrated by the ...war filename.
Weakness: CWE-22
Which versions are affected by CVE-2009-2902?
4 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat:tomcat Maven | From 5.5.0 | 5.5.29 |
org.apache.tomcat:tomcat Maven | From 5.5.0 | 5.5.29 |
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.24 |
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.24 |
Products include Apache Tomcat.
How do I fix CVE-2009-2902?
Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 5.5.29 or 6.0.24.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2009-2902 being exploited?
There is no known exploitation of CVE-2009-2902 in the wild and no public exploit code.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-8wch-9gcg-v2pr.