← Vulnerability feed

Vulnerability record · CVE-2003-0042 · published 7 February 2003

CVE-2003-0042: Apache Tomcat null-byte URL exposes directory listings and JSP source

Apache · Tomcat

Jakarta Tomcat before 3.3.1a, when running on JDK 1.3.1 or earlier, mishandles URLs containing a null character. This lets a remote attacker bypass index file handling to list directories or retrieve unprocessed JSP source code instead of executing it.

5.0 CVSS 2.0 Medium EPSS 46% · top 1.2%
5.0CVSS 2.0 base score
46%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
20References
16 Jun 2026Last modified by NVD

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.

AV:N/AC:L/Au:N/C:P/I:N/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

medium priorityInformation disclosure only with no integrity or availability impact, but trivially reachable and high EPSS probability on unpatched legacy deployments.

What it is

Jakarta Tomcat before 3.3.1a, when running on JDK 1.3.1 or earlier, mishandles URLs containing a null character. This lets a remote attacker bypass index file handling to list directories or retrieve unprocessed JSP source code instead of executing it.

Impact

An attacker gains read access to directory contents and JSP source code, exposing application logic, credentials, and internal file paths that would normally be hidden or executed server-side.

Attack surface

Reachable over the network via HTTP requests to the Tomcat web server; no authentication or user interaction is required per the CVSS vector AV:N/AC:L/Au:N.

Exploitation

Not listed in CISA KEV and no public exploit references are tagged in the record, though EPSS shows a high 30-day probability of 0.46 (98.8th percentile).

What to do

  • Upgrade Tomcat to 3.3.1a or later, or apply the vendor/Debian DSA-246 patch.
  • Upgrade the JDK above 1.3.1, since the flaw depends on that runtime version.
  • Restrict network exposure of Tomcat instances that cannot be patched.
  • Review web content for sensitive data in JSP source and directory listings.

Detection

  • Search HTTP access logs for requests containing encoded or raw null bytes (%00) in the URL path.
  • Alert on requests for .jsp files that return source-like content rather than rendered output.
  • Monitor for directory listing responses where an index file is expected.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2003-0042 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2020-1938Apache Tomcat AJP connector file read and JSP execution flawApache Tomcat shipped an AJP Connector enabled by default that listened on all configured IP addresses, and Tomcat treats AJP connections as more tru…KEVEPSS 99%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed8.1CVE-2017-12617Apache Tomcat Default Servlet JSP upload leads to remote code executionApache Tomcat with HTTP PUT enabled (for example, the Default servlet readonly parameter set to false) allows an attacker to upload a JSP file throug…KEVEPSS 100%analysed8.1CVE-2017-12615Apache Tomcat on Windows unrestricted JSP upload via HTTP PUTApache Tomcat 7.0.0 through 7.0.79 on Windows with HTTP PUT enabled (for example, Default servlet readonly set to false) allows an attacker to upload…KEVEPSS 100%analysed7.5CVE-2026-34486Apache Tomcat EncryptInterceptor bypass exposes sensitive dataApache Tomcat contains a missing encryption of sensitive data flaw: the fix for CVE-2026-29146 can be bypassed, allowing the EncryptInterceptor to be…KEVEPSS 6.6%analysed7.5CVE-2023-44487HTTP/2 Rapid Reset stream cancellation denial of serviceThe HTTP/2 protocol permits a client to cancel many streams quickly, and the server's handling of those resets consumes disproportionate resources. T…KEVEPSS 100%analysed9.8CVE-2026-65637Apache tomcat improper input validation vulnerabilityImproper Input Validation vulnerability in Apache Tomcat due to incomplete fix for CVE-2026-32990. This issue affects Apache Tomcat: from 11.0.20 thr…EPSS 0.74%

Source: NIST National Vulnerability Database (record CVE-2003-0042), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.