GHSA-prc3-7f44-w48j CVE-2014-0119
Missing XML Validation in Apache Tomcat
- 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
| Package | Vulnerable | Fixed 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
- github.com/apache/tomcat80/commit/d59fd4398c8ae6361e0b13c491f66b51e49a7441
- github.com/apache/tomcat80/commit/7d33457de5fc5a652a88fb9bbc9ba4cbbda58f04
- github.com/apache/tomcat80/commit/77e014cef5d5af619bcf77eaebf22c284d420802
- github.com/apache/tomcat80/commit/69a8a72283c3395ece8b899cf8562e126de97a27
- github.com/apache/tomcat80/commit/51e59532ad4c604f55575963dc7a7f0250cb420f
- github.com/apache/tomcat80/commit/4d90e355dc5ced4c53585c2b4700f71a52d8f447
- github.com/apache/tomcat80/commit/25251de791a6a7be13f2f3d3a66119a77025272d
- github.com/apache/tomcat/commit/f8b316acbbf9fabf87cc137e9777e912eda0d834
- github.com/apache/tomcat/commit/ebe5c16f18ce1559e8462a94b3876a98525980d2
- github.com/apache/tomcat/commit/080878ea519d8c74c53721a9ebf7be6fcf6f1f2f
- github.com/apache/tomcat/commit/50311bed8d87e452ff0e69838ba312c4fe899b2d
- github.com/apache/tomcat/commit/5517c5517e8a7ddb994504f0c5c05001a376b10c
- github.com/apache/tomcat/commit/5aae1323c31d643afa9f2db80713b8e97b5123af
- github.com/apache/tomcat/commit/6246d8307fb5f2b4ff0b0f4d6d1b0250dff01a81
- github.com/apache/tomcat/commit/769477b9bc8442db3f571385fa0c3e206242cbf1
- github.com/apache/tomcat/commit/934f884f330dad192d2c5dc950e28f4cd281461b
- github.com/apache/tomcat/commit/ad3b34a290a0255d2a4c356a3611ab41ed9d04f5
- github.com/apache/tomcat/commit/ce70ee6b8fe437a498a375215011056702b0c481
- lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19…
- lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19…
- lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9…
- lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9…
- lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859…
- lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859…
- lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb…
- lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb…
- lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95…
- lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95…
- lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b…
- lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b…
- lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113…
- lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113…
- h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay
- advisories.mageia.org/MGASA-2014-0268.html
- marc.info
- marc.info
- rhn.redhat.com/errata/RHSA-2015-0675.html
- rhn.redhat.com/errata/RHSA-2015-0720.html
- rhn.redhat.com/errata/RHSA-2015-0765.html
- seclists.org/fulldisclosure/2014/Dec/23
- seclists.org/fulldisclosure/2014/May/141
- secunia.com/advisories/59732
- secunia.com/advisories/59873
- secunia.com/advisories/60729
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- tomcat.apache.org/security-6.html
- tomcat.apache.org/security-7.html
- tomcat.apache.org/security-8.html
- www-01.ibm.com/support/docview.wss
- www-01.ibm.com/support/docview.wss
- debian.org/security/2016/dsa-3530
- debian.org/security/2016/dsa-3552
- mandriva.com/security/advisories
- mandriva.com/security/advisories
- mandriva.com/security/advisories
- oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- oracle.com/technetwork/topics/security/cpujul2014-1972956.html
- oracle.com/technetwork/topics/security/cpuoct2014-1972960.html
- securityfocus.com/archive/1/534161/100/0/threaded
- securityfocus.com/bid/67669
- securitytracker.com/id/1030298
- ubuntu.com/usn/USN-2654-1
- vmware.com/security/advisories/VMSA-2014-0012.html
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why 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 |
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