Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.tomcat/tomcat
  4. ›
  5. CVE-2015-5345

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

May 14, 2022 (updated August 28, 2025)

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.

References

  • access.redhat.com/errata/RHSA-2016:1087
  • access.redhat.com/errata/RHSA-2016:1088
  • bto.bluecoat.com/security-advisory/sa118
  • bz.apache.org/bugzilla/show_bug.cgi?id=58765
  • github.com/advisories/GHSA-rh8q-vjgf-gf74
  • github.com/apache/tomcat
  • github.com/apache/tomcat/commit/127d8ea86d245846f0472865f0eb1eb111955e71
  • github.com/apache/tomcat/commit/58c09b6217c546e1a251a82da227018f05277228
  • github.com/apache/tomcat/commit/66daa4adc14b3e939659879153c0a579fdfcb099
  • github.com/apache/tomcat/commit/7288bc70a14edcfeff0a96e333a858be374cfc64
  • github.com/apache/tomcat/commit/816552abf6735fa37dfd37c8a7bfbdbd045477e0
  • github.com/apache/tomcat/commit/8437193708e4bf6b2861a7953dc472f9dad49111
  • github.com/apache/tomcat/commit/89cd0cf33a99dbbcf5c69050a83b6876e39269d7
  • github.com/apache/tomcat/commit/a273b5f45cb46a273d06510a689fc314155a952d
  • github.com/apache/tomcat/commit/c584c7c4ab0686e4125eefcd0afb32fb8269da3d
  • github.com/apache/tomcat80/commit/2b643a4e36d318d55ec57fee57610671656d23c0
  • github.com/apache/tomcat80/commit/c15c2aba8eb42425f9ebcfcaef579dada38ad3a2
  • h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05054964
  • h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05150442
  • h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05158626
  • kc.mcafee.com/corporate/index?page=content&id=SB10156
  • lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113%40%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113@%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b%40%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b@%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95%40%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95@%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb%40%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb@%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859c%40%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859c@%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9b%40%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9b@%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E
  • lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E
  • nvd.nist.gov/vuln/detail/CVE-2015-5345
  • security.gentoo.org/glsa/201705-09
  • security.netapp.com/advisory/ntap-20180531-0001
  • web.archive.org/web/20160321235514/http://www.securitytracker.com/id/1035071
  • web.archive.org/web/20160804024910/http://www.securityfocus.com/bid/83328

Code Behaviors & Features

Detect and mitigate CVE-2015-5345 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 9.0.0.M1 before 9.0.0.M2, version 9.0.0.M1, all versions starting from 6.0.0 before 6.0.45, all versions starting from 7.0.0 before 7.0.68, all versions starting from 8.0.0-RC1 before 8.0.30

Fixed versions

  • 9.0.0.M2
  • 8.0.30
  • 7.0.68
  • 6.0.45

Solution

Upgrade to versions 6.0.45, 7.0.68, 8.0.30, 9.0.0.M2 or above.

Impact 5.3 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.apache.tomcat/tomcat/CVE-2015-5345.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 24 Sep 2025 12:18:39 +0000.