Skip to content

GHSA-prc3-7f44-w48j CVE-2014-0119

Missing XML Validation in Apache Tomcat

Medium Maven
Severity
Medium
The publisher's own rating, not a CVSS score
Exploit chance (EPSS)
7.62%
Chance of exploitation in the next 30 days. Higher than 94.56% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-112 Missing XML Validation
Fix
Available
3 packages have a fixed version

Description

Apache Tomcat before 6.0.40, 7.x before 7.0.54, and 8.x before 8.0.6 does not properly constrain the class loader that accesses the XML parser used with an XSLT stylesheet, which allows remote attackers to (1) read arbitrary files via a crafted web application that provides an XML external entity declaration in conjunction with an entity reference, related to an XML External Entity (XXE) issue, or (2) read files associated with different web applications on a single Tomcat instance via a crafted web application.

Affected versions

Maven

PackageVulnerableFixed in
org.apache.tomcat:tomcat
< 6.0.40
6.0.40
org.apache.tomcat:tomcat
>= 7.0.0, < 7.0.54
7.0.54
org.apache.tomcat:tomcat
>= 8.0.0, < 8.0.6
8.0.6
org.apache.tomcat:tomcat-catalina
< 6.0.40
6.0.40
org.apache.tomcat:tomcat-catalina
>= 7.0.0, < 7.0.54
7.0.54
org.apache.tomcat:tomcat-catalina
>= 8.0.0, < 8.0.6
8.0.6
org.apache.tomcat:tomcat-jasper
< 6.0.40
6.0.40
org.apache.tomcat:tomcat-jasper
>= 7.0.0, < 7.0.54
7.0.54
org.apache.tomcat:tomcat-jasper
>= 8.0.0, < 8.0.6
8.0.6

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

org.apache.tomcat:tomcat Maven → 6.0.40

maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat</artifactId><version>6.0.40</version></dependency>
gradle
implementation("org.apache.tomcat:tomcat:6.0.40")

org.apache.tomcat:tomcat-catalina Maven → 6.0.40

maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat-catalina</artifactId><version>6.0.40</version></dependency>
gradle
implementation("org.apache.tomcat:tomcat-catalina:6.0.40")

org.apache.tomcat:tomcat-jasper Maven → 6.0.40

maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat-jasper</artifactId><version>6.0.40</version></dependency>
gradle
implementation("org.apache.tomcat:tomcat-jasper:6.0.40")

Weakness

CWE-112: Missing XML Validation

The product accepts XML from an untrusted source but does not validate the XML against the proper schema.

How to prevent it
  • Architecture and Design: Always validate XML input against a known XML Schema or DTD. It is not possible for an XML parser to validate all aspects of a document's content because a parser cannot understand the complete semantics of the data. However, a parser can do a complete and thorough job of checking the document's structure and therefore guarantee to the code that processes the document that the content is well-formed.

References

Advisories

Packages

Other links

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-69r9-qgr7-g2wj
Apache Tomcat Missing Encryption of Sensitive Data vulnerability
High Known exploited Also affects org.apache.tomcat:tomcat
GHSA-83qj-6fr2-vhqg
Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT
Critical Known exploited Also affects org.apache.tomcat:tomcat-catalina
GHSA-xjgh-84hx-56c5
Unrestricted Upload of File with Dangerous Type Apache Tomcat
High Known exploited Also affects org.apache.tomcat:tomcat-catalina
GHSA-cw54-59pw-4g8c
Apache Tomcat Improper Access Control vulnerability
Critical Known exploited Also affects org.apache.tomcat:tomcat-catalina
GHSA-h3x4-894j-xpx5
Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability
Critical Also affects org.apache.tomcat:tomcat
GHSA-9xv2-5v5q-p794
Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability
Critical Also affects org.apache.tomcat:tomcat
GHSA-gcx9-497g-6cp6
Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability
Critical Also affects org.apache.tomcat:tomcat
GHSA-5m62-pw8w-7w9f
Apache Tomcat - Security constraints not correctly applied
Critical Also affects org.apache.tomcat:tomcat
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor