Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat
Published 14 May 2022 · Updated 28 Aug 2025
Is your project on an affected org.apache.tomcat:tomcat?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=9.0.0.M1 <9.0.0.M2
- Fixed in
- 9.0.0.M2
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=9.0.0.M2 -DforceVersion=true- Affected
- >=8.0.0-RC1 <8.0.30
- Fixed in
- 8.0.30
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=8.0.30 -DforceVersion=true- Affected
- >=7.0.0 <7.0.68
- Fixed in
- 7.0.68
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=7.0.68 -DforceVersion=true- Affected
- >=6.0.0 <6.0.45
- Fixed in
- 6.0.45
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=6.0.45 -DforceVersion=trueDetails
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.
Is GHSA-rh8q-vjgf-gf74 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.tomcat:tomcat, and gives you the command that fixes it.
More advisories for org.apache.tomcat:tomcat
- CriticalCVE-2026-65905Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability · 26 Aug 2026
- CriticalCVE-2026-65182Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability · 26 Aug 2026
- CriticalCVE-2026-68525Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability · 26 Aug 2026
- CriticalCVE-2026-55276Apache Tomcat has an Always-Incorrect Control Flow Implementation vulnerability · 29 Jun 2026
- HighCVE-2026-55957Apache Tomcat has a Missing Critical Step in Authentication vulnerability · 29 Jun 2026
- HighCVE-2026-53404Apache Tomcat's rewrite valve has an Always-Incorrect Control Flow Implementation vulnerability · 29 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-5345
- Linkgithub.com/apache/tomcat80/commit/c15c2aba8eb42425f9ebcfcaef579dada38ad3a2
- Linkgithub.com/apache/tomcat/commit/127d8ea86d245846f0472865f0eb1eb111955e71
- Linkgithub.com/apache/tomcat/commit/58c09b6217c546e1a251a82da227018f05277228
- Linkgithub.com/apache/tomcat/commit/66daa4adc14b3e939659879153c0a579fdfcb099
- Linkgithub.com/apache/tomcat/commit/7288bc70a14edcfeff0a96e333a858be374cfc64
- Linkgithub.com/apache/tomcat/commit/816552abf6735fa37dfd37c8a7bfbdbd045477e0
- Linkgithub.com/apache/tomcat/commit/8437193708e4bf6b2861a7953dc472f9dad49111
- Linkgithub.com/apache/tomcat/commit/89cd0cf33a99dbbcf5c69050a83b6876e39269d7
- Linkgithub.com/apache/tomcat/commit/a273b5f45cb46a273d06510a689fc314155a952d
- Linkgithub.com/apache/tomcat/commit/c584c7c4ab0686e4125eefcd0afb32fb8269da3d
- Linkgithub.com/apache/tomcat80/commit/2b643a4e36d318d55ec57fee57610671656d23c0
- Linklists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9b@%3Cdev.tomcat.apache.org%3E
- Linklists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9b%40%3Cdev.tomcat.apache.org%3E
- Linklists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859c@%3Cdev.tomcat.apache.org%3E
- Linklists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859c%40%3Cdev.tomcat.apache.org%3E
- Linklists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb@%3Cdev.tomcat.apache.org%3E
- Linklists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb%40%3Cdev.tomcat.apache.org%3E
- Linklists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95@%3Cdev.tomcat.apache.org%3E
- Linklists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.