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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | tomcat6 | 6.0.45+dfsg-1~deb7u1 | DSA-3530-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | tomcat6 | 6.0.39-1ubuntu0.1 | — |
| Ubuntu 14.04 LTS | tomcat7 | 7.0.52-1ubuntu0.1 | USN-2302-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | tomcat +9 | 7.0.42-6.el7_0 | ELSA-2014-0827 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- RHSA-2014:0843 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 6.2.4 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2014:0865 Red Hat Security Advisory: tomcat6 security and bug fix update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2014:0835 Red Hat Security Advisory: Red Hat JBoss Web Server 2.0.1 tomcat7 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2014:0827 Red Hat Security Advisory: tomcat security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2014:0834 Red Hat Security Advisory: Red Hat JBoss Web Server 2.0.1 tomcat6 security and bug fix update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- DSA-3530-1 tomcat6 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2302-1 tomcat6, tomcat7 vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- ELSA-2014-0827 Moderate: tomcat security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jul 23, 2014
References
- http://advisories.mageia.org/MGASA-2014-0268.html
- http://www.novell.com/support/kb/doc.php?id=7010166
- 67667 vdb-entry
- 59121 third-party-advisory
- RHSA-2015:0765 vendor-advisory
- 59732 third-party-advisory
- 59835 third-party-advisory
- RHSA-2015:0675 vendor-advisory
- http://www.vmware.com/security/advisories/VMSA-2014-0012.html
- http://www-01.ibm.com/support/docview.wss?uid=swg21681528
- MDVSA-2015:052 vendor-advisory
- RHSA-2015:0720 vendor-advisory
- 59849 third-party-advisory
- http://linux.oracle.com/errata/ELSA-2014-0865.html
- http://svn.apache.org/viewvc?view=revision&revision=1578637
- MDVSA-2015:084 vendor-advisory
- 1030301 vdb-entry
- DSA-3530 vendor-advisory
- 59678 third-party-advisory
- HPSBUX03102 vendor-advisory
- http://tomcat.apache.org/security-7.html
- 20141205 NEW: VMSA-2014-0012 - VMware vSphere product updates address security vulnerabilities mailing-list
- MDVSA-2015:053 vendor-advisory
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- FEDORA-2015-2109 vendor-advisory
- http://tomcat.apache.org/security-8.html
- http://www-01.ibm.com/support/docview.wss?uid=swg21678231
- http://svn.apache.org/viewvc?view=revision&revision=1585853
- 59616 third-party-advisory
- 20140527 [SECURITY] CVE-2014-0096 Apache Tomcat information disclosure mailing-list
- http://tomcat.apache.org/security-6.html
- https://h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04851013
- http://www.oracle.com/technetwork/topics/security/cpujul2014-1972956.html
- http://svn.apache.org/viewvc?view=revision&revision=1578655
- 59873 third-party-advisory
- 20141205 NEW: VMSA-2014-0012 - VMware vSphere product updates address security vulnerabilities mailing-list
- HPSBOV03503 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/cpuoct2014-1972960.html
- http://svn.apache.org/viewvc?view=revision&revision=1578610
- http://svn.apache.org/viewvc?view=revision&revision=1578611
- DSA-3552 vendor-advisory
- 60729 third-party-advisory
- [tomcat-dev] 20190319 svn commit: r1855831 [23/30] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190325 svn commit: r1856174 [21/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20190413 svn commit: r1857494 [15/20] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190415 svn commit: r1857582 [16/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20200203 svn commit: r1873527 [23/30] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [26/34] - /tomcat/site/trunk/docs/ mailing-list