CVE-2002-1394: Apache Tomcat Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-8v5p-2cpv-c2x6
CWE-200
Published
Advisory Summary

CVE-2002-1394 is a HIGH remote code execution vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves apache tomcat source code disclosure. Remediation is available by upgrading affected packages to version 4.0.6.

CVE-2002-1394 at a Glance

CVE Identifier CVE-2002-1394
GHSA Identifier GHSA-8v5p-2cpv-c2x6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Apache Tomcat
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2002-1394

To remediate this vulnerability, upgrade all affected Apache Tomcat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.tomcat:tomcat fixed: 4.0.6
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat</artifactId>
    <version>4.0.6</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.tomcat

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2002-1394, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.tomcat

Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.tomcat command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Apache Tomcat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Apache Tomcat 4.0.5 and earlier, when using both the invoker servlet and the default servlet, allows remote attackers to read source code for server files or bypass certain protections, a variant of CAN-2002-1148.

CVE-2002-1394 Affected Apache Tomcat Versions

1 component(s)
Fixed Versions:
4.0.6
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.tomcat:tomcat
Maven
< 4.0.6
4.0.6

References

NVD — CVE-2002-1394 NVD
https://nvd.nist.gov/vuln/detail/CVE-2002-1394
archive.apache.org/dist/tomcat/tomcat-... WEB
https://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.6/README.html
exchange.xforce.ibmcloud.com/vulnerabilities/103... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/10376
https://lists.apache.org/thread.html/29dc6c2b625789e70a9c4756b5a327e6547273ff8bde7e0327af48c5@<dev.tomcat.apache.org> WEB
https://lists.apache.org/thread.html/29dc6c2b625789e70a9c4756b5a327e6547273ff8bde7e0327af48c5@<dev.tomcat.apache.org>
https://lists.apache.org/thread.html/rb71997f506c6cc8b530dd845c084995a9878098846c7b4eacfae8db3@<dev.tomcat.apache.org> WEB
https://lists.apache.org/thread.html/rb71997f506c6cc8b530dd845c084995a9878098846c7b4eacfae8db3@<dev.tomcat.apache.org>
web.archive.org/web/20030412075128/... WEB
https://web.archive.org/web/20030412075128/http://rhn.redhat.com/errata/RHSA-2003-075.html
Apache Tomcat Security Information SECURITY
https://web.archive.org/web/20030705143220/http://www.securityfocus.com/bid/6562
web.archive.org/web/20041024213235/... WEB
https://web.archive.org/web/20041024213235/http://rhn.redhat.com/errata/RHSA-2003-082.html
Apache Tomcat Security Information SECURITY
https://web.archive.org/web/20070430073829/http://www.debian.org/security/2003/dsa-225
issues.apache.org/bugzilla/show_bug.c... WEB
http://issues.apache.org/bugzilla/show_bug.cgi?id=13365
marc.info/ WEB
http://marc.info/?l=bugtraq&m=103470282514938&w=2
marc.info/ WEB
http://marc.info/?l=tomcat-dev&m=103417249325526&w=2

Frequently Asked Questions

What is CVE-2002-1394?
CVE-2002-1394 is a security vulnerability in Apache Tomcat involving Apache Tomcat Source Code Disclosure under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Apache Tomcat versions are affected?
Affected versions include releases prior to 4.0.6 across affected packages: org.apache.tomcat:tomcat.
What version fixes CVE-2002-1394?
Upgrading to 4.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tomcat affected?
Yes, org.apache.tomcat:tomcat is affected in releases prior to 4.0.6. Upgrade your dependency to 4.0.6 or later.
What CWE is associated with CVE-2002-1394?
CVE-2002-1394 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Maven dependencies for CVE-2002-1394?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.tomcat'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8v5p-2cpv-c2x6",
  "modified" : "2024-02-12T19:58:01Z",
  "published" : "2022-04-30T18:21:05Z",
  "aliases" : [ "CVE-2002-1394" ],
  "summary" : "Apache Tomcat Source Code Disclosure",
  "details" : "Apache Tomcat 4.0.5 and earlier, when using both the invoker servlet and the default servlet, allows remote attackers to read source code for server files or bypass certain protections, a variant of CAN-2002-1148.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.5"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2002-1394"
  }, {
    "type" : "WEB",
    "url" : "https://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.6/README.html"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/10376"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/29dc6c2b625789e70a9c4756b5a327e6547273ff8bde7e0327af48c5@<dev.tomcat.apache.org>"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rb71997f506c6cc8b530dd845c084995a9878098846c7b4eacfae8db3@<dev.tomcat.apache.org>"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20030412075128/http://rhn.redhat.com/errata/RHSA-2003-075.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20030705143220/http://www.securityfocus.com/bid/6562"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20041024213235/http://rhn.redhat.com/errata/RHSA-2003-082.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20070430073829/http://www.debian.org/security/2003/dsa-225"
  }, {
    "type" : "WEB",
    "url" : "http://issues.apache.org/bugzilla/show_bug.cgi?id=13365"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=bugtraq&m=103470282514938&w=2"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=tomcat-dev&m=103417249325526&w=2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-12T19:58:01Z",
    "nvd_published_at" : "2003-01-17T05:00:00Z"
  }
}