CVE-2014-0119: Missing XML Validation in Apache Tomcat

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
Not published

CVE-2014-0119: Missing XML Validation in Apache Tomcat. Affects org.apache.tomcat:tomcat across 3 version ranges.

< 6.0.40 >= 7.0.0, < 7.0.54 >= 8.0.0, < 8.0.6

Fixed in 6.0.40, 7.0.54 or 8.0.6, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache Tomcat is an open-source web server and servlet container that is used to deploy Java-based web applications. It provides a Java Servlet and JavaServer Pages (JSP) environment for running web applications. This vulnerability affects versions of Apache Tomcat before 6.0.40, 7.x before 7.0.54, and 8.x before 8.0.6. The vulnerability arises from a lack of proper constraint on the class loader that accesses the XML parser used with an XSLT stylesheet. This allows remote attackers to read arbitrary files or access files associated with different web applications on a single Tomcat instance.

Vulnerability Detail

The vulnerability in Apache Tomcat allows remote attackers to exploit two different scenarios. Firstly, by providing an XML external entity declaration in conjunction with an entity reference, an attacker can read arbitrary files via a crafted web application, resulting in an XML External Entity (XXE) issue. Secondly, an attacker can read files associated with different web applications on a single Tomcat instance by using a crafted web application. This vulnerability poses a moderate risk as it can lead to unauthorized access to sensitive information.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.0.40 6.0.40
  • >= 7.0.0, < 7.0.54 7.0.54
  • >= 8.0.0, < 8.0.6 8.0.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to a fixed version is not immediately feasible, a temporary workaround can be implemented by disabling external entity resolution in the XML parser configuration. This can be achieved by modifying the Tomcat configuration file to set the 'externalEntityResolving' attribute to 'false' in the 'org.apache.tomcat.util.digester.Digester' class.

Conclusion

The missing XML validation vulnerability in Apache Tomcat can allow remote attackers to read arbitrary files or access files associated with different web applications. It is crucial to upgrade to the fixed versions or apply the temporary workaround to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat:tomcat →

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container used to deploy Java-based web applications.

Versions of Apache Tomcat before 6.0.40, 7.x before 7.0.54, and 8.x before 8.0.6 are affected.

An XML External Entity (XXE) issue is a type of vulnerability that allows an attacker to read arbitrary files or execute remote requests.

This vulnerability poses a moderate risk as it can lead to unauthorized access to sensitive information.

To fix this vulnerability, it is recommended to upgrade to Apache Tomcat version 6.0.40, 7.0.54, or 8.0.6 or later.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat:tomcat.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.0.40 6.0.40
  • >= 7.0.0, < 7.0.54 7.0.54
  • >= 8.0.0, < 8.0.6 8.0.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback