Local Temp Directory Hijacking Vulnerability
The Eclipse Foundation Eclipse Jetty
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.eclipse.jetty:jetty-webapp Maven |
|
|
| org.mortbay.jetty:jetty-webapp |
The Eclipse Foundation Eclipse Jetty
| Product | Affected | Fixed in |
|---|---|---|
| org.eclipse.jetty:jetty-webapp Maven |
|
|
| org.mortbay.jetty:jetty-webapp |
|
|
In Eclipse Jetty versions 1.0 thru 9.4.32.v20200930, 10.0.0.alpha1 thru 10.0.0.beta2, and 11.0.0.alpha1 thru 11.0.0.beta2O, 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.
From the CVE record · eclipse
On Unix-like systems, Jetty unpacks web applications into a subdirectory of a shared temporary directory. A local user can race to create that subdirectory and gain read and write access to its contents, including JAR and JSP files. This can lead to privilege escalation if code is executed from the directory.
Check Unix-like systems running affected Eclipse Jetty versions, including Maven jetty-webapp versions below 9.4.33.v20201020 (org.eclipse.jetty) or 9.4.33 (org.mortbay.jetty), and 10.0.0 or 11.0.0 prereleases before beta3.