VDB
Sign up
LOW

GHSA-fj6c-prgj-gr3r

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

Quick fix

GHSA-fj6c-prgj-gr3r — org.apache.tomcat:tomcat: upgrade to the fixed version with the command below.

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

Details

Apache Tomcat 7.0.0 through 7.0.3, 6.0.x, and 5.5.x, when running within a SecurityManager, does not make the ServletContext attribute read-only, which allows local web applications to read or write files outside of the intended working directory, as demonstrated using a directory traversal attack.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat:tomcat
Introduced in: 7.0.0Fixed in: 7.0.4
Fix# pom.xml: bump <version>7.0.4</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 6.0.0Fixed in: 6.0.30
Fix# pom.xml: bump <version>6.0.30</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 5.5.0Fixed in: 5.5.30
Fix# pom.xml: bump <version>5.5.30</version> for org.apache.tomcat:tomcat

References