CVE-2008-2938 Apache Tomcat Directory Traversal vulnerability
Remote attackers can read arbitrary files via encoded directory traversal sequences in the URI when specific configurations are enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2008-2938?
CVE-2008-2938 is a medium-severity path traversal vulnerability in Apache Tomcat, published on 13 Aug 2008. 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 4.1.0 through 4.1.37, 5.5.0 through 5.5.26, and 6.0.0 through 6.0.16, when allowLinking and UTF-8 are enabled, allows remote attackers to read arbitrary files via encoded directory traversal sequences in the URI, a different vulnerability than CVE-2008-2370. NOTE: versions earlier than 6.0.18 were reported affected, but the vendor advisory lists 6.0.16 as the last affected version.
Weakness: CWE-22
Which versions are affected by CVE-2008-2938?
6 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 4.1.0 | 4.1.39 |
org.apache.tomcat:tomcat Maven | From 4.1.0 | 4.1.39 |
org.apache.tomcat:tomcat Maven | From 5.5.0 | 5.5.27 |
org.apache.tomcat:tomcat Maven | From 5.5.0 | 5.5.27 |
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.18 |
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.18 |
Products include Apache Tomcat.
How do I fix CVE-2008-2938?
Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 4.1.39, 5.5.27 or 6.0.18.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2008-2938 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-2938 exists.
Public exploit code: 2 Metasploit modules, 2 Exploit-DB entries and 1 proofs of concept on GitHub.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-m7xj-ccqc-p4g2.