Medium

Missing XML Validation in Apache Tomcat

  • Disclosed: 14.05.2022
  • Updated: 11.10.2026 12:21

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.tomcat:tomcat < 6.0.40, >= 7.0.0, < 7.0.54, >= 8.0.0, < 8.0.6 6.0.40, 7.0.54, 8.0.6
Java / Kotlin (Maven) org.apache.tomcat:tomcat-catalina < 6.0.40, >= 7.0.0, < 7.0.54, >= 8.0.0, < 8.0.6 6.0.40, 7.0.54, 8.0.6
Java / Kotlin (Maven) org.apache.tomcat:tomcat-jasper < 6.0.40, >= 7.0.0, < 7.0.54, >= 8.0.0, < 8.0.6 6.0.40, 7.0.54, 8.0.6

References

CVSS score -
Weakness (CWE)
CWE-112
Platform
Java / Kotlin (Maven)
Package
org.apache.tomcat:tomcat, org.apache.tomcat:tomcat-catalina, org.apache.tomcat:tomcat-jasper
Disclosed
14.05.2022
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-prc3-7f44-w48j - CC BY 4.0

Vulnerability history: org.apache.tomcat:tomcat-jasper

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
05.2022 11.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • Medium 2

Disclosures per year

  1. 2022: 2
  2. 2023: 0
  3. 2024: 1
  4. 2025: 0
  5. 2026: 0
  1. Medium · 6.1 CVE-2024-52318 >= 11.0.0, < 11.0.1, >= 10.1.31, < 10.1.32, >= 9.0.96, < 9.0.97 11.0.1, 10.1.32, 9.0.97
  2. Missing XML Validation in Apache Tomcat this entry
    Medium CVE-2014-0119 < 6.0.40, >= 7.0.0, < 7.0.54, >= 8.0.0, < 8.0.6 6.0.40, 7.0.54, 8.0.6
  3. Critical · 9.1 CVE-2016-5018 >= 9.0.0.M1, < 9.0.0.M10, >= 8.5.0, < 8.5.5, >= 8.0.0RC1, < 8.0.37, >= 7.0.0, < 7.0.72 9.0.0.M10, 8.5.5, 8.0.37, 7.0.72

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.