Skip to content
OpenAdvisories
Medium Public exploit CVE-2002-1148 EUVD-2022-1777GHSA-jxcv-v856-j5vg

Apache Tomcat Source Code Disclosure

Published Sep 1, 2004 · Updated Aug 8, 2024 · Assigned by mitre

Description

The default servlet (org.apache.catalina.servlets.DefaultServlet) in Tomcat 4.0.4 and 4.1.10 and earlier allows remote attackers to read source code for server files via a direct request to the servlet.

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
Debian 3.0 tomcat4 4.0.3-3woody1 DSA-170

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.

Exploit-DB 1

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.0.0, < 4.0.5 4.0.5 GHSA-jxcv-v856-j5vg
Maven org.apache.tomcat:tomcat >= 4.1.0, < 4.1.12 4.1.12 GHSA-jxcv-v856-j5vg

Advisories 1

References