HOL LogoGuard

Explore HOL

  • HOL home
  • AI agent registry
  • AI plugins
  • Open standards
  • HOL members
  • Sponsor HOL
  • Advertise with HOL

Guard product

  • Guard overviewLocal security and control for AI agents and the tools they use.
  • FeaturesRuntime protection, policy routing, review, and evidence.

Explore Guard

  • Product previewWalk through Guard surfaces in read-only demo mode.
  • ComparisonCompare Guard with native controls and AI security vendors.

AI tools

  • All AI toolsEvery supported AI tool and how Guard applies policy to it.
  • Codex
  • Claude Code
  • Cursor
  • Antigravity CLI
  • OpenCode
  • Hermes
  • OpenClaw
  • GitHub Copilot CLI
  • Antigravity
  • Kimi
  • Grok
  • Pi / Oh My Pi
  • Zcode

Extensions

  • All extensionsBrowse command and MCP coverage with owners and stated limits.
  • Command coverageShell command protection across clouds, databases, backups, and packages.
  • MCP server coverageSee how Guard maps risk state across MCP tools and servers.
  • Core safetyThe safety floor listings that ship with Guard.
  • Data and resilienceBackup and storage command protection.
  • Cloud and infrastructureAWS, Azure, GCP, Kubernetes, and more.

Security

  • AI security hubSecurity research, advisories, and agent safety coverage.
  • AI tool securitySecurity profiles for each supported coding agent.
  • Safe labsHands-on attack simulations with safe boundaries.
  • Redacted warningsReal blocked actions with sensitive details removed.
  • AdvisoriesCoordinated disclosure reports for AI tooling.
  • Active CVEsSearch active CVEs affecting AI tooling.

Learn

  • Security guidesPractical guides for securing AI agent workflows.
  • DocsInstall, configure, and operate Guard with confidence.
  • ResearchPublished security research, benchmarks, and methodology.

Community

  • ReleasesVersion history, shipped changes and upgrade notes.
  • ContributorsThe people and contributions behind HOL Guard.
  • AffiliatesShare Guard with your audience and earn from referrals.
  • SponsorFund agreed research, implementation and shared testing through the HOL Partner Program.
  • AdvertiseCompare README logo placements, previews and monthly prices, or promote a plugin or extension.
PricingEnterpriseOpen AppInstall Guard
  1. Guard
  2. Security
  3. CVEs
  4. CVE 2020 27216 local temp directory hijacking vulnerability
HOL Guard

Public security guidance for teams protecting AI harnesses, MCP servers, skills, prompts, and local tool execution.

Install Guard

AI Security

  • Prompt injection
  • MCP security
  • OWASP MCP mapping
  • Supply chain

Resources

  • Trust packet
  • Harness setup
  • Redacted warnings
  • Safe labs

Product

  • Install Guard
  • Pricing
  • Open dashboard
Guard
  • Guard Overview
  • Releases
  • Contributors
  • Install Guard
  • Pricing
Docs
  • Documentation Index
  • Developer Hub
  • API Reference
  • Root OpenAPI
  • Registry OpenAPI
  • Run in Postman
  • Standards
  • Submit ERC-8004 Contract
  • Feature Your Agent
Best Plugins
  • Browse Plugins
  • Plugin Launches
  • Best Claude Plugins
  • Best Codex Plugins
  • Best Grok Plugins
  • Best Kimi Plugins
  • Best DeepSeek Plugins
  • Best Antigravity Plugins
  • Best MCP Servers
  • Best Cursor Plugins
  • Best OpenCode Plugins
Best Agents
  • Best ERC-8004 Agents
  • Best Virtuals Agents
  • Best MCP Servers
  • Best A2A Agents
  • Best x402 Payable
  • All Categories
Community
  • Telegram
  • X
More
  • About HOL
  • Sponsor
  • Advertise
  • Contact
  • Blog
  • GitHub
  • Privacy
  • Terms of Service
Settings

Copyright ยฉ 2026 HOL DAO LLC. All rights reserved.

Back to active CVEs
High ยท CVSS 7.0CVE-2020-27216GHSA-G3WG-6MCF-8JJ6

Local Temp Directory Hijacking VulnerabilityCVE-2020-27216

Answer in brief

CVE-2020-27216 records a High severity (CVSS 7.0) vulnerability in Local Temp Directory Hijacking Vulnerability. The current sources do not mark it as known exploited. The current feed maps org.eclipse.jetty:jetty-webapp (maven), org.eclipse.jetty:jetty-webapp (maven), org.eclipse.jetty:jetty-webapp (maven), org.mortbay.jetty:jetty-webapp (maven) and additional mapped packages. Check affected ranges and fixed versions before updating.

Analysis pending evidence review

HOL Guard separates source facts from reviewed analysis. See the methodology.

Published Nov 4, 2020Updated Sep 10, 2026Source checked Oct 25, 2026First seen by HOL Aug 8, 2026Material review Sep 10, 2026
Upstream Advisory

Key facts

Risk
High ยท CVSS 7.0
Exploitation
Not marked as known exploited
Affected software
6 mapped packages or products
Fix availability
Available

Why this deserves its current priority

CVSS is 7.0. The current sources do not mark it as known exploited. Treat this as a source-backed prioritization signal, not a statement about your environment.

Analysis status

Analysis pending evidence review

Factual feed record only; HOL analysis is not approved for indexing. Read the methodology.

Affected scope and exposure questions

The current feed maps org.eclipse.jetty:jetty-webapp (maven), org.eclipse.jetty:jetty-webapp (maven), org.eclipse.jetty:jetty-webapp (maven), org.mortbay.jetty:jetty-webapp (maven) and additional mapped packages. Check affected ranges and fixed versions before updating.

Mapped affected packages and fixed versions
PackageAffected rangeFixed version
org.eclipse.jetty:jetty-webappmaven>=0 <9.4.33.v202010209.4.33.v20201020
org.eclipse.jetty:jetty-webappmaven>=10.0.0.beta1 <10.0.0.beta310.0.0.beta3
org.eclipse.jetty:jetty-webappmaven>=11.0.0.beta1 <11.0.0.beta311.0.0.beta3
org.mortbay.jetty:jetty-webappmaven>=0 <9.4.339.4.33
org.mortbay.jetty:jetty-webappmaven>=10.0.0.beta1 <10.0.0.beta310.0.0.beta3
org.mortbay.jetty:jetty-webappmaven>=11.0.0.beta1 <11.0.0.beta311.0.0.beta3

Recommended response

  1. 1Check inventory. Check lockfiles and deployed manifests for org.eclipse.jetty:jetty-webapp, org.eclipse.jetty:jetty-webapp, org.eclipse.jetty:jetty-webapp.
  2. 2Review the reported fix. Update org.eclipse.jetty:jetty-webapp to 9.4.33.v20201020; org.eclipse.jetty:jetty-webapp to 10.0.0.beta3; org.eclipse.jetty:jetty-webapp to 11.0.0.beta3; org.mortbay.jetty:jetty-webapp to 9.4.33; org.mortbay.jetty:jetty-webapp to 10.0.0.beta3; org.mortbay.jetty:jetty-webapp to 11.0.0.beta3 if you use the affected versions. Test the change in a non-production environment first.

Evidence timeline and material changes

  1. Published upstream

    Nov 4, 2020

    Evidence: source:osv:source_dates:source-dates:record
  2. Source modified

    Sep 10, 2026

    Evidence: source:osv:source_dates:source-dates:record
  3. First seen by HOL

    Aug 8, 2026

Sources and claim methodology

  • Source referencebugs.eclipse.org
  • Source referencecwe.mitre.org
  • Source referencecwe.mitre.org
  • GitHub security advisorygithub.com
  • GitHub security advisorygithub.com
  • GitHub security advisorygithub.com
  • GitHub security advisorygithub.com
  • GitHub security advisorygithub.com
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.apache.org
  • Source referencelists.debian.org
  • NVD vulnerability recordnvd.nist.gov
  • Source referencesecurity.netapp.com
  • Source referencedebian.org
  • Source referenceoracle.com
  • Source referenceoracle.com
  • Source referenceoracle.com
  • Source referenceoracle.com
  • Source referenceoracle.com
Upstream source description

### 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](https://www.eclipse.org/jetty/javadoc/9.4.31.v20200723/org/eclipse/jetty/webapp/WebAppContext.html#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: ```java import java.io.File; import java.io.IOException; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ExampleServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { File tempDir = (File)getServletContext().getAttribute(ServletContext.TEMPDIR); // Potentially compromised // do something with that temp dir } } ``` Example: The JSP library itself will use the container temp directory for compiling the JSP source into Java classes before executing them. ### CVSSv3.1 Evaluation This vulnerability has been calculated to have a [CVSSv3.1 score of 7.8/10 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H&version=3.1) ### Patches Fixes were applied to the 9.4.x branch with: - https://github.com/eclipse/jetty.project/commit/53e0e0e9b25a6309bf24ee3b10984f4145701edb - https://github.com/eclipse/jetty.project/commit/9ad6beb80543b392c91653f6bfce233fc75b9d5f These will be included in releases: 9.4.33, 10.0.0.beta3, 11.0.0.beta3 ### Workarounds A work around is to set a temporary directory, either for the server or the context, to a directory outside of the shared temporary file system. For recent releases, a temporary directory can be created simple by creating a directory called `work` in the ${jetty.base} directory (the parent directory of the `webapps` directory). Alternately the java temporary directory can be set with the System Property `java.io.tmpdir`. A more detailed description of how jetty selects a temporary directory is below. The Jetty search order for finding a temporary directory is as follows: 1. If the [`WebAppContext` has a temp directory specified](https://www.eclipse.org/jetty/javadoc/current/org/eclipse/jetty/webapp/WebAppContext.html#setTempDirectory(java.io.File)), use it. 2. If the `ServletContext` has the `javax.servlet.context.tempdir` attribute set, and if directory exists, use it. 3. If a `${jetty.base}/work` directory exists, use it (since Jetty 9.1) 4. If a `ServletContext` has the `org.eclipse.jetty.webapp.basetempdir` attribute set, and if the directory exists, use it. 5. Use `System.getProperty("java.io.tmpdir")` and use it. Jetty will end traversal at the first successful step. To mitigate this vulnerability the directory must be set to one that is not writable by an attacker. To avoid information leakage, the directory should also not be readable by an attacker. #### Setting a Jetty server temporary directory. Choices 3 and 5 apply to the server level, and will impact all deployed webapps on the server. For choice 3 just create that work directory underneath your `${jetty.base}` and restart Jetty. For choice 5, just specify your own `java.io.tmpdir` when you start the JVM for Jetty. ``` shell [jetty-distribution]$ java -Djava.io.tmpdir=/var/web/work -jar start.jar ``` #### Setting a Context specific temporary directory. The rest of the choices require you to configure the context for that deployed webapp (seen as `${jetty.base}/webapps/<context>.xml`) Example (excluding the DTD which is version specific): ``` xml <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath"><Property name="foo"/></Set> <Set name="war">/var/web/webapps/foo.war</Set> <Set name="tempDirectory">/var/web/work/foo</Set> </Configure> ``` ### References - https://github.com/eclipse/jetty.project/issues/5451 - [CWE-378: Creation of Temporary File With Insecure Permissions](https://cwe.mitre.org/data/definitions/378.html) - [CWE-379: Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html) - [CodeQL Query PR To Detect Similar Vulnerabilities](https://github.com/github/codeql/pull/4473) ### Similar Vulnerabilities Similar, but not the same. - JUnit 4 - https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp - Google Guava - https://github.com/google/guava/issues/4011 - Apache Ant - https://nvd.nist.gov/vuln/detail/CVE-2020-1945 - JetBrains Kotlin Compiler - https://nvd.nist.gov/vuln/detail/CVE-2020-15824 ### For more information The original report of this vulnerability is below: > On Thu, 15 Oct 2020 at 21:14, Jonathan Leitschuh <[email protected]> wrote: > Hi WebTide Security Team, > > I'm a security researcher writing some custom CodeQL queries to find Local Temporary Directory Hijacking Vulnerabilities. One of my queries flagged an issue in Jetty. > > https://lgtm.com/query/5615014766184643449/ > > I've recently been looking into security vulnerabilities involving the temporary directory because on unix-like systems, the system temporary directory is shared between all users. > There exists a race condition between the deletion of the temporary file and the creation of the directory. > > ```java > // ensure file will always be unique by appending random digits > tmpDir = File.createTempFile(temp, ".dir", parent); // Attacker knows the full path of the file that will be generated > // delete the file that was created > tmpDir.delete(); // Attacker sees file is deleted and begins a race to create their own directory before Jetty. > // and make a directory of the same name > // SECURITY VULNERABILITY: Race Condition! - Attacker beats Jetty and now owns this directory > tmpDir.mkdirs(); > ``` > > https://github.com/eclipse/jetty.project/blob/1b59672b7f668b8a421690154b98b4b2b03f254b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java#L511-L518 > > In several cases the `parent` parameter will not be the system temporary directory. However, there is one case where it will be, as the last fallback. > > > https://github.com/eclipse/jetty.project/blob/1b59672b7f668b8a421690154b98b4b2b03f254b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebInfConfiguration.java#L467-L468 > > If any code is ever executed out of this temporary directory, this can lead to a local privilegeย escalation vulnerability. > > Would your team be willing to open a GitHub security advisory to continue the discussion and disclosure there?ย https://github.com/eclipse/jetty.project/security/advisories > > **This vulnerability disclosure follows Google's [90-day vulnerability disclosure policy](https://www.google.com/about/appsecurity/) (I'm not an employee of Google, I just like their policy). Full disclosure will occur either at the end of the 90-day deadline or whenever a patch is made widely available, whichever occurs first.** > > Cheers, > Jonathan Leitschuh

Quoted source text, attributed separately from HOL analysis.

Record context

Vulnerability class
Privilege Escalation
EPSS
Not reported
CWE IDs
Not reported
Source
OSV
Source checked
Oct 25, 2026
References
147 linked sources
Open source record