Apache Tomcat: Directory traversal via rewrite with possible RCE if PUT is enabled
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 11.0.11, 10.1.45, 9.0.109
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 5 proofs of concept on GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
Relative Path Traversal vulnerability in Apache Tomcat. The fix for bug 60013 introduced a regression where the rewritten URL was normalized before it was decoded. This introduced the possibility that, for rewrite rules that rewrite query parameters to the URL, an attacker could manipulate the request URI to bypass security constraints including the protection for /WEB-INF/ and /META-INF/. If PUT requests were also enabled then malicious files could be uploaded leading to remote code execution. PUT requests are normally limited to trusted users and it is considered unlikely that PUT requests would be enabled in conjunction with a rewrite that manipulated the URI. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.10, from 10.1.0-M1 through 10.1.44, from 9.0.0.M11 through 9.0.108. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.6 though 8.5.100. Other, older, EOL versions may also be affected. Users are recommended to upgrade to version 11.0.11 or later, 10.1.45 or later or 9.0.109 or later, which fix the issue.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
- EPSS reached 10%
FIRST estimates at least a 10% chance of exploitation in the next 30 days
Affected versions
- Apache Software Foundation Apache Tomcat
From 11.0.0-M1 · through 11.0.10; From 10.1.0-M1 · through 10.1.44; From 9.0.0.M11 · through 9.0.108; From 8.5.6 · through 8.5.100
- org.apache.tomcat:tomcatMaven
From 11.0.0-M1 · fixed in 11.0.11
- org.apache.tomcat:tomcatMaven
From 10.1.0-M1 · fixed in 10.1.45
- org.apache.tomcat:tomcatMaven
From 9.0.0-M11 · fixed in 9.0.109
- org.apache.tomcat:tomcatMaven
From 8.5.6 · through 8.5.100
- org.apache.tomcat:tomcat-catalinaMaven
From 11.0.0-M1 · fixed in 11.0.11
- org.apache.tomcat:tomcat-catalinaMaven
From 10.1.0-M1 · fixed in 10.1.45
- org.apache.tomcat:tomcat-catalinaMaven
From 9.0.0-M11 · fixed in 9.0.109
- org.apache.tomcat:tomcat-catalinaMaven
From 8.5.6 · through 8.5.100
- org.apache.tomcat.embed:tomcat-embed-coreMaven
From 11.0.0-M1 · fixed in 11.0.11
- org.apache.tomcat.embed:tomcat-embed-coreMaven
From 10.1.0-M1 · fixed in 10.1.45
- org.apache.tomcat.embed:tomcat-embed-coreMaven
From 9.0.0-M11 · fixed in 9.0.109
- org.apache.tomcat.embed:tomcat-embed-coreMaven
From 8.5.6 · through 8.5.100