Skip to content
OpenAdvisories
Medium Public exploit CVE-2008-2938 EUVD-2022-4516GHSA-m7xj-ccqc-p4g2

Apache Tomcat Directory Traversal vulnerability

Published Aug 13, 2008 · Updated Aug 7, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
RHEL 5 tomcat5 +10 5.5.23-0jpp.7.el5_2.1 RHSA-2008:0648
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Developer Suite 3 tomcat5 +5 5.5.23-0jpp_12rh RHSA-2008:0864
Red Hat Rhel Application Server 2 tomcat5 +10 5.5.23-0jpp_4rh.9 RHSA-2008:0862
Red Hat Network Satellite 5 tomcat5 5.0.30-0jpp_12rh RHSA-2008:1007
Red Hat JBoss EAP 4 jbossweb 2.0.0-5.CP07.0jpp.ep1.1.el4 RHSA-2008:0877

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 2 modules

Exploit-DB 2

GitHub 1 repository

  • Naramsim/Offensive ★ 1 · Oct 13, 2016

    Reproducible exploits for: CVE-2016-1240 CVE-2008-2938 CVE-2014-2064 CVE-2014-1904

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat >= 4.1.0, < 4.1.39 4.1.39 GHSA-m7xj-ccqc-p4g2
Maven org.apache.tomcat:tomcat >= 5.5.0, < 5.5.27 5.5.27 GHSA-m7xj-ccqc-p4g2
Maven org.apache.tomcat:tomcat >= 6.0.0, < 6.0.18 6.0.18 GHSA-m7xj-ccqc-p4g2

Advisories 5

References