← back
CVE-2020-27216

CVE-2020-27216

In short

Eclipse Jetty creates temporary directories in a shared system folder that any user can access. An attacker on the same computer can race to take control of these folders before Jetty finishes setting them up, potentially gaining access to sensitive application files and executing malicious code with elevated privileges.

Technical detail

CWE-378/379 race condition in temporary directory creation on Unix systems. An unprivileged local user can exploit a time-of-check-time-of-use (TOCTOU) vulnerability during the unpacking of web applications to the shared /tmp directory, gaining read/write access to WEB-INF/lib and JSP files. Successful exploitation enables local privilege escalation if code execution occurs from the compromised temporary location.

Summary generated and translated by AI from the official description.
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.

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →