High, CVSS 7.0MavenPublished
Local Temp Directory Hijacking Vulnerability
CVE-2020-27216 · GHSA-g3wg-6mcf-8jj6
- Affected
- Maven org.mortbay.jetty:jetty-webapp < 9.4.33; >= 10.0.0.beta1, <= 10.0.0.beta2; >= 11.0.0.beta1, <= 11.0.0.beta2
- Fixed in
- 11.0.0.beta310.0.0.beta39.4.33· Vendor fix available
- Issue
- Impact On Unix like systems, the system's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory. If the attacker wins the race then they will have read and write permission to the subdirectory used to unpack web applications, including their WEB-INF/lib jar files and JSP files. If any code is ever executed out of this temporary directory, this can lead to a local privilege escalation vulnerability. Additionally, any user code uses of WebAppContext::getTempDirectory) would similarly be vulnerable. Additionally, any user application code using the ServletContext attribute for the tempdir will also be impacted. See: https://javaee.github.io/javaee-spec/javadocs/javax/servlet/ServletContext.html#TEMPDIR For example: Example: The JSP library itself will use the container temp directory for compiling the…
Recommended action: Upgrade to 11.0.0.beta3, 10.0.0.beta3 or 9.4.33 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.