CVE-2007-5461: Path Traversal
Absolute path traversal vulnerability in Apache Tomcat 4.0.0 through 4.0.6, 4.1.0, 5.0.0, 5.5.0 through 5.5.25, and 6.0.0 through 6.0.14, under certain configurations, allows remote authenticated users to read arbitrary files via a WebDAV write request that specifies an entity with a SYSTEM tag.
Other sources
Description:
Absolute path traversal vulnerability in Apache Tomcat, under certain configurations, allows remote authenticated users to read arbitrary files via a WebDAV write request that specifies an entity with a SYSTEM tag.
Mail from Mark Thomas (Apache.org):
A vulnerability in the Apache Tomcat webdav servlet was publicly disclosed on full disclosure yesterday, 14-Oct-2007.[1]
The Tomcat security team has evaluated this vulnerability and determined that default installations of Tomcat 6.0.x, 5.5.x and 4.1.x and not affected.
In order to be affected systems must have: - one or more contexts configured for webdav using Tomcat's built-in webdav implementation - enabled write capability via webdav
Note: - Tomcat 6.0.x has no webdav enabled contexts by default - Tomcat 5.5.x and 4.1.x have a read-only webdav enabled context (/webdav) by default
Systems with write-enabled webdav contexts are exposed to this vulnerability which, for such systems, is critical.
Mitigations available are: - Disable write access until a fixed version is available - Limit write access to trusted users - Apply the following patch which will be included in the next releases of 6.0.x, 5.5.x and 4.1.x
Index: src/share/org/apache/catalina/servlets/WebdavServlet.java =================================================================== --- src/share/org/apache/catalina/servlets/WebdavServlet.java (revision 584648) +++ src/share/org/apache/catalina/servlets/WebdavServlet.java (working copy) @@ -252,6 +252,7 @@ try { documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); + documentBuilderFactory.setExpandEntityReferences(false); documentBuilder = documentBuilderFactory.newDocumentBuilder(); } catch(ParserConfigurationException e) { throw new ServletException
[1] http://archives.neohapsis.com/archives/fulldisclosure/2007-10/0371.html
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/5.5.25to a version that resolves this vulnerability.Fixed in 1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch revision 584648 - Configuration
Disable write access until a fixed version is available
Tomcat WebDAV contexts write access = disabled - Compensating control
Limit WebDAV write access to trusted users
Event History
Frequently Asked Questions
What is the severity of CVE-2007-5461?
CVE-2007-5461 has been rated as a medium severity vulnerability.
How do I fix CVE-2007-5461?
To fix CVE-2007-5461, upgrade Apache Tomcat to version 6.0.15 or later.
Which versions of Apache Tomcat are affected by CVE-2007-5461?
CVE-2007-5461 affects Apache Tomcat versions 4.0.0 through 4.0.6, 4.1.0, 5.0.0, 5.5.0 through 5.5.25, and 6.0.0 through 6.0.14.
What types of users can exploit CVE-2007-5461?
CVE-2007-5461 can be exploited by remote authenticated users.
What is an absolute path traversal vulnerability in the context of CVE-2007-5461?
An absolute path traversal vulnerability allows an attacker to read arbitrary files from the server by using manipulated input.