Skip to content
OpenAdvisories
Medium · 4.3 CVE-2015-5174 EUVD-2022-2849GHSA-6qr6-x7jm-x2q6

Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat

Published Feb 25, 2016 · Updated Oct 14, 2026 · Assigned by redhat

Description

Directory traversal vulnerability in RequestUtil.java in Apache Tomcat 6.x before 6.0.45, 7.x before 7.0.65, and 8.x before 8.0.27 allows remote authenticated users to bypass intended SecurityManager restrictions and list a parent directory via a /.. (slash dot dot) in a pathname used by a web application in a getResource, getResourceAsStream, or getResourcePaths call, as demonstrated by the $CATALINA_BASE/webapps directory.

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 8 tomcat7 7.0.56-3+deb8u2 DSA-3552-1
Debian 8 tomcat8 8.0.14-1+deb8u2 DSA-3609-1
Debian 7 tomcat6 6.0.45+dfsg-1~deb7u1 DSA-3530-1
Debian 7 tomcat7 7.0.28-4+deb7u4 DSA-3552-1
Debian 6.0 tomcat6 6.0.45-1~deb6u1 DLA-435-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS tomcat7 7.0.68-1ubuntu0.1 USN-3024-1
Ubuntu 14.04 LTS tomcat6 6.0.39-1ubuntu0.1 —
Ubuntu 14.04 LTS tomcat7 7.0.52-1ubuntu0.6 USN-3024-1
ReleasePackageFixed inAdvisory
RHEL 7 tomcat +9 7.0.69-10.el7 RHSA-2016:2599
RHEL 6 tomcat6 +8 6.0.24-98.el6_8 RHSA-2016:2045
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 3 apache-commons-collections-eap6 +1 3.2.1-18.redhat_7.1.ep6.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 3 httpd24 +5 2.4.6-59.ep7.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 3 mod_bmx 0.9.5-7.GA.ep7.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 3 mod_cluster-native 1.3.1-6.Final_redhat_2.ep7.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 3 mod_ssl24 +1 1:2.4.6-59.ep7.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 3 tomcat-vault 1.0.8-4.Final_redhat_4.1.ep7.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 3 tomcat7 +9 7.0.59-42_patch_01.ep7.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 3 tomcat8 +9 8.0.18-52_patch_01.ep7.el6 RHSA-2015:2660, RHSA-2015:2659
Red Hat JBoss Web Server 2 tomcat7 +10 7.0.54-21_patch_05.ep6.el5 RHBA-2016:0090
Red Hat JBoss EAP 6 apache-cxf 2.7.18-2.SP1_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 glassfish-jsf-eap6 2.1.28-11.SP10_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 hibernate4-validator 4.3.3-1.Final_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 hornetq 2.3.25-13.SP11_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 jboss-as-ee +62 7.5.9-2.Final_redhat_2.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 jboss-ec2-eap +1 7.5.9-2.Final_redhat_2.ep6.el6 RHSA-2016:1432
Red Hat JBoss EAP 6 jboss-jsf-api_2.1_spec 2.1.28-6.SP2_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 jboss-msc 1.1.6-1.Final_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 jbossts 1:4.17.34-1.Final_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 jbossweb 7.5.17-1.Final_redhat_1.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 picketlink-bindings +1 2.5.4-11.SP9_redhat_2.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
Red Hat JBoss EAP 6 xalan-j2-eap6 2.7.1-11.redhat_11.1.ep6.el6 RHSA-2016:1434, RHSA-2016:1433
ReleasePackageFixed inAdvisory
SLES 12 SP1 tomcat 8.0.32-3.1 SUSE-SU-2016:0769-1
SLES 12 tomcat 7.0.68-7.6.1 SUSE-SU-2016:0822-1
SLES 11 SP4 tomcat6 6.0.45-0.50.1 SUSE-SU-2016:0839-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP1 tomcat 8.0.32-3.1 SUSE-SU-2016:0769-1
SLES for SAP 12 tomcat 7.0.68-7.6.1 SUSE-SU-2016:0822-1
SLES for SAP 11 SP4 tomcat6 6.0.45-0.50.1 SUSE-SU-2016:0839-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tomcat 8.0.36-3.3 openSUSE-SU-2024:10446-1
openSUSE Tumbleweed tomcat10 10.1.14-1.1 openSUSE-SU-2024:13441-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 tomcat +9 7.0.69-10.el7 ELSA-2016-2599

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat >= 8.0.0-RC1, < 8.0.27 8.0.27 GHSA-6qr6-x7jm-x2q6
Maven org.apache.tomcat:tomcat >= 7.0.0, < 7.0.65 7.0.65 GHSA-6qr6-x7jm-x2q6
Maven org.apache.tomcat:tomcat >= 6.0.0, < 6.0.45 6.0.45 GHSA-6qr6-x7jm-x2q6

Advisories 19

References