Skip to content
OpenAdvisories
Medium CVE-2014-0096 EUVD-2022-5013GHSA-qprx-q2r7-3rx6

Improper Input Validation in Apache Tomcat

Published May 31, 2014 · Updated Oct 14, 2026 · Assigned by redhat

Description

java/org/apache/catalina/servlets/DefaultServlet.java in the default servlet in Apache Tomcat before 6.0.40, 7.x before 7.0.53, and 8.x before 8.0.4 does not properly restrict XSLT stylesheets, which allows remote attackers to bypass security-manager restrictions and 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 7 tomcat6 6.0.45+dfsg-1~deb7u1 DSA-3530-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS tomcat6 6.0.39-1ubuntu0.1 —
Ubuntu 14.04 LTS tomcat7 7.0.52-1ubuntu0.1 USN-2302-1
ReleasePackageFixed inAdvisory
RHEL 7 tomcat +9 7.0.42-6.el7_0 RHSA-2014:0827
RHEL 6 tomcat6 +8 6.0.24-72.el6_5 RHSA-2014:0865
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 2 tomcat6 +9 6.0.37-20_patch_04.ep6.el5 RHSA-2014:0834
Red Hat JBoss Web Server 2 tomcat7 +9 7.0.40-11_patch_03.ep6.el6 RHSA-2014:0835
Red Hat JBoss EAP 6 jbossweb 7.3.2-4.Final_redhat_3.1.ep6.el5 RHSA-2014:0843

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 tomcat +9 7.0.42-6.el7_0 ELSA-2014-0827

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat < 6.0.40 6.0.40 GHSA-qprx-q2r7-3rx6
Maven org.apache.tomcat:tomcat >= 7.0.0, < 7.0.54 7.0.54 GHSA-qprx-q2r7-3rx6
Maven org.apache.tomcat:tomcat >= 8.0.0, < 8.0.6 8.0.6 GHSA-qprx-q2r7-3rx6
Maven org.apache.tomcat:tomcat-catalina < 6.0.40 6.0.40 GHSA-qprx-q2r7-3rx6
Maven org.apache.tomcat:tomcat-catalina >= 7.0.0, < 7.0.54 7.0.54 GHSA-qprx-q2r7-3rx6
Maven org.apache.tomcat:tomcat-catalina >= 8.0.0, < 8.0.6 8.0.6 GHSA-qprx-q2r7-3rx6

Advisories 8

References