CVE-2003-0042 Jakarta Tomcat Directory Listing vulnerability

Medium 5.0 Published Updated

Remote attackers can list directories or view unprocessed JSP source code via null character injection in URLs on vulnerable Tomcat versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2003-0042?

CVE-2003-0042 is a medium-severity vulnerability in Apache Tomcat, published on 29 Jan 2003. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Jakarta Tomcat before 3.3.1a, when used with JDK 1.3.1 or earlier, allows remote attackers to list directories even with an index.html or other file present, or obtain unprocessed source code for a JSP file, via a URL containing a null character.

Which versions are affected by CVE-2003-0042?

2 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenAll versions3.3.1a
org.apache.tomcat:tomcat MavenAll versions3.3.1a

Products include Apache Tomcat.

How do I fix CVE-2003-0042?

Upgrade org.apache.tomcat:tomcat to 3.3.1a or later.

Is CVE-2003-0042 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2003-0042 exists.

Public exploit code: 1 Exploit-DB entry.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-qfw2-wvrw-mvw4.

Is CVE-2003-0042 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free