WaratekVRT Sign in

CVE-2008-2938 Apache Tomcat

Affected softwareApache Tomcat
Severity4.3 Medium CVSS 2.0
Fixed in4.1.39, 5.5.27, 6.0.18
WeaknessPath traversal (CWE-22)
Published13 Aug 2008
Updated16 Jun 2026

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.

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 3 indexed Published artifacts you can open, in Exploit-DB, GitHub PoC; first seen 2008-08-11.
  • EPSS 99.7% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99.9% of all scored CVEs.

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Reproducible exploits for: CVE-2016-1240 CVE-2008-2938 CVE-2014-2064 CVE-2014-1904 1 2016-10-13
Exploit-DB Apache Tomcat < 6.0.18 - 'utf8' Directory Traversal 2010-07-28
Exploit-DB Apache Tomcat < 6.0.18 - 'utf8' Directory Traversal (PoC) 2008-08-11

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.

How to mitigate CVE-2008-2938

Upgrade Apache Tomcat to a release that fixes it: 4.1.39, 5.5.27 or 6.0.18. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.tomcat:tomcat 4.1.0 4.1.39 unbounded
org.apache.tomcat:tomcat 5.5.0 5.5.27 unbounded
org.apache.tomcat:tomcat 6.0.0 6.0.18 unbounded

Products and versions

2 products, 6 version entries
SourceVendorProductSchemeAffected versions
nvd apache tomcat generic ≥ 4.0.0 and ≤ 4.1.37 · ≥ 5.0.0 and ≤ 5.5.26 · ≥ 6.0.0 and ≤ 6.0.16
osv org.apache.tomcat tomcat generic ≥ 4.1.0 and < 4.1.39 · ≥ 5.5.0 and < 5.5.27 · ≥ 6.0.0 and < 6.0.18

References

URLTags
https://github.com/apache/tomcat/commit/c55ad56ed72ee1dbfe790bc5492d4df74e3e754f WEB
https://web.archive.org/web/20090207111236/http://secunia.com/advisories/33797 WEB
https://web.archive.org/web/20090308065055/http://secunia.com/advisories/31865 WEB
https://web.archive.org/web/20100516085845/http://secunia.com/advisories/37297 WEB
https://web.archive.org/web/20110711210039/http://rhn.redhat.com/errata/RHSA-2008-0862.html WEB
https://web.archive.org/web/20110713233239/http://rhn.redhat.com/errata/RHSA-2008-0648.html WEB
https://web.archive.org/web/20110713234158/http://rhn.redhat.com/errata/RHSA-2008-0864.html WEB
https://web.archive.org/web/20140628064423/http://www.securityfocus.com/archive/1/495318/100/0/threaded WEB
https://web.archive.org/web/20140628064448/http://www.securityfocus.com/archive/1/507729/100/0/threaded WEB
https://web.archive.org/web/20140826163457/http://www.securityfocus.com/bid/30633 WEB

Timeline

Published2008-08-13By the CVE Program.
NVD record modified2026-06-16NVD's own last-modified date for this record.