ADVISORIES

GitHub Advisory Database

GHSA-fj6c-prgj-gr3r

Improper Limitation of a Pathname to a Restricted Directory in Apache 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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.apache.tomcat:tomcat
From 7.0.0 before 7.0.4 (fixed in 7.0.4)
Mavenorg.apache.tomcat:tomcat
From 6.0.0 before 6.0.30 (fixed in 6.0.30)
Mavenorg.apache.tomcat:tomcat
From 5.5.0 before 5.5.30 (fixed in 5.5.30)

References