CVE-2010-3718: Path Traversal
Apache Tomcat 5.5.30 and 6.0.30 were released [1],[2] to fix, among other things, a bypass of security manager file permissions. The work directory that web applications are granted read/write access is determined by a ServletContext attribute that is supposed to be a read-only attribute to web applications. Due to a coding error, a web application could modify the attribute before Tomcat applied file permissions, which could allow a malicious web application to set the work directory to any area of the file system, granting that web application read/write permissions to the specified directory.
This vulnerability is only applicable in environments that host web applications from untrusted sources, such as in shared hosting environments.
For Tomcat 5.5.x, this was fixed in upstream revision 1027610 [4] and for Tomcat 6.x it was fixed in upstream revision 1022560 [5].
[1] http://tomcat.apache.org/security-5.html#FixedinApacheTomcat5.5.30 [2] http://tomcat.apache.org/security-6.html#FixedinApacheTomcat6.0.30 [3] http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0074.html [4] http://svn.apache.org/viewvc?rev=1027610&view=rev [5] http://svn.apache.org/viewvc?rev=1022560&view=rev
Other sources
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.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 5.5.30 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 6.0.30 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 7.0.4 - Upgrade
Upgrade
Apache Tomcatto a version that resolves this vulnerability.Fixed in 5.5.30 - Upgrade
Upgrade
Apache Tomcatto a version that resolves this vulnerability.Fixed in 6.0.30
Event History
Frequently Asked Questions
What is the severity of CVE-2010-3718?
CVE-2010-3718 has a moderate severity level due to the risk of unauthorized file access and manipulation by local web applications.
How do I fix CVE-2010-3718?
To fix CVE-2010-3718, upgrade Apache Tomcat to version 5.5.30, 6.0.30, or 7.0.4 or later.
What versions of Apache Tomcat are affected by CVE-2010-3718?
CVE-2010-3718 affects Apache Tomcat versions 7.0.0 to 7.0.3, as well as all 6.0.x and 5.5.x versions.
What type of attack does CVE-2010-3718 facilitate?
CVE-2010-3718 facilitates local website applications to conduct directory traversal attacks.
Is it safe to use vulnerable versions of Apache Tomcat if patched?
Even if patched, it is advisable to use the latest versions of Apache Tomcat to avoid vulnerabilities like CVE-2010-3718.