VDB
Sign up
MEDIUM5.3

GHSA-rh8q-vjgf-gf74

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

Quick fix

GHSA-rh8q-vjgf-gf74 — org.apache.tomcat:tomcat: upgrade to the fixed version with the command below.

# pom.xml: bump <version>9.0.0.M2</version> for org.apache.tomcat:tomcat

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat:tomcat
Introduced in: 9.0.0.M1Fixed in: 9.0.0.M2
Fix# pom.xml: bump <version>9.0.0.M2</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 8.0.0-RC1Fixed in: 8.0.30
Fix# pom.xml: bump <version>8.0.30</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 7.0.0Fixed in: 7.0.68
Fix# pom.xml: bump <version>7.0.68</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 6.0.0Fixed in: 6.0.45
Fix# pom.xml: bump <version>6.0.45</version> for org.apache.tomcat:tomcat

References