Skip to content
OpenAdvisories
Medium · 5.3 CVE-2015-5345 EUVD-2022-5174GHSA-rh8q-vjgf-gf74

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

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

Description

The Mapper component in Apache Tomcat 6.x before 6.0.45, 7.x before 7.0.68, 8.x before 8.0.30, and 9.x before 9.0.0.M2 processes redirects before considering security constraints and Filters, which allows remote attackers to determine the existence of a directory via a URL that lacks a trailing / (slash) character.

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 18.04 LTS tomcat9 9.0.16-3~18.04.1 —
Ubuntu 16.04 LTS tomcat6 6.0.45+dfsg-1 —
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 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 3 httpd24 +5 2.4.6-61.ep7.el6 RHSA-2016:1088, RHSA-2016:1087
Red Hat JBoss Web Server 3 mod_security-jws3 2.8.0-7.GA.ep7.el6 RHSA-2016:1088, RHSA-2016:1087
Red Hat JBoss Web Server 3 mod_ssl24 +1 1:2.4.6-61.ep7.el6 RHSA-2016:1088, RHSA-2016:1087
Red Hat JBoss Web Server 3 tomcat7 +9 7.0.59-50_patch_01.ep7.el6 RHSA-2016:1088, RHSA-2016:1087
Red Hat JBoss Web Server 3 tomcat8 +9 8.0.18-61_patch_01.ep7.el6 RHSA-2016:1088, RHSA-2016:1087
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 >= 9.0.0.M1, < 9.0.0.M2 9.0.0.M2 GHSA-rh8q-vjgf-gf74
Maven org.apache.tomcat:tomcat >= 8.0.0-RC1, < 8.0.30 8.0.30 GHSA-rh8q-vjgf-gf74
Maven org.apache.tomcat:tomcat >= 7.0.0, < 7.0.68 7.0.68 GHSA-rh8q-vjgf-gf74
Maven org.apache.tomcat:tomcat >= 6.0.0, < 6.0.45 6.0.45 GHSA-rh8q-vjgf-gf74

Advisories 15

References