CVE-2015-5345 Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.45 |
org.apache.tomcat:tomcat Maven | From 6.0.0 | 6.0.45 |
org.apache.tomcat:tomcat Maven | From 7.0.0 | 7.0.68 |
org.apache.tomcat:tomcat Maven | From 7.0.0 | 7.0.68 |
org.apache.tomcat:tomcat Maven | From 8.0.0-RC1 | 8.0.30 |
org.apache.tomcat:tomcat Maven | From 8.0.0-RC1 | 8.0.30 |
2 more packages
org.apache.tomcat:tomcat Maven | From 9.0.0.M1 | 9.0.0.M2 |
org.apache.tomcat:tomcat Maven | From 9.0.0.M1 | 9.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.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-rh8q-vjgf-gf74, UBUNTU-CVE-2015-5345.