CVE-2015-5345 Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat

Medium 5.3 Published Updated

Remote attackers can determine the existence of directories by exploiting a flaw in Apache Tomcat's redirect processing that bypasses security constraints.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2015-5345?

CVE-2015-5345 is a medium-severity vulnerability in Apache Tomcat, published on 25 Feb 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2015-5345?

8 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 3 products.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.45
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.45
org.apache.tomcat:tomcat MavenFrom 7.0.07.0.68
org.apache.tomcat:tomcat MavenFrom 7.0.07.0.68
org.apache.tomcat:tomcat MavenFrom 8.0.0-RC18.0.30
org.apache.tomcat:tomcat MavenFrom 8.0.0-RC18.0.30
2 more packages
org.apache.tomcat:tomcat MavenFrom 9.0.0.M19.0.0.M2
org.apache.tomcat:tomcat MavenFrom 9.0.0.M19.0.0.M2

Products include Apache Tomcat, Canonical Ubuntu Linux, Debian Debian Linux.

How do I fix CVE-2015-5345?

Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 6.0.45, 7.0.68, 8.0.30 or 9.0.0.M2.

Is CVE-2015-5345 being exploited?

There is no known exploitation of CVE-2015-5345 in the wild and no public exploit code.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-rh8q-vjgf-gf74, UBUNTU-CVE-2015-5345.

Is CVE-2015-5345 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free