Skip to main content

Zed CVE-2026-44463

| EUVDEUVD-2026-32939 HIGH
Incomplete List of Disallowed Inputs (CWE-184)
2026-05-28 GitHub_M
8.6
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Plant prompt-injection in repo or prompt
  2. Delivery
    Victim opens project in vulnerable Zed
  3. Exploit
    Agent proposes env-prefixed allowlisted command
  4. Install
    Permission check matches binary, ignores VAR= prefix
  5. C2
    Allowlisted tool reads hijacked PAGER/EDITOR
  6. Execute
    Attacker payload executes as user
  7. Impact
    Credential theft or local code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires (1) the victim to be running a Zed version below 0.229.0, (2) Zed's agent / terminal tool feature to be in use with an allowlist of permitted commands, and (3) the victim to approve or auto-approve an agent-proposed command whose argument vector begins with one or more VAR=value environment-variable assignments before an allowlisted binary that consults that variable (PAGER, EDITOR, GIT_SSH_COMMAND, LD_PRELOAD, etc.). The CVSS UI:R flag confirms user interaction is needed, and AV:L confirms the attack executes in the local user context rather than over the network; the attacker's input typically arrives via indirect prompt injection in repository content, chat input, or LLM tool output rather than a direct network request. Headless or non-agent uses of Zed are not exposed.

Impact

The CVSS 8.6 score reflects Scope:Changed with full CIA impact, driven by AV:L (local), AC:L, PR:N, and UI:R - exploitation requires the victim to take an action (running or approving an agent command) but no prior authentication to Zed itself. There is no KEV listing and no POC referenced, so this is a credible-but-not-confirmed exploitation risk; EPSS data was not provided. The realistic threat model is indirect prompt injection or malicious repository content steering the Zed agent into requesting a command that, after env-var prefixing, escapes the allowlist - a meaningful concern for developers using AI agent features but not a mass-exploitable internet-facing flaw. Priority should be high for organizations whose engineers run Zed against untrusted code or LLM outputs, lower for closed-environment use.

Exploit ScenarioDerived

A developer asks Zed's agent to operate on a repository whose README, issue, or source comments contain a prompt-injection payload instructing the agent to run something like PAGER=/tmp/x.sh git log where git is allowlisted; the env-var prefix slips past the permission check and git's invocation of $PAGER executes the attacker's script with the user's privileges. Variants substitute EDITOR, GIT_SSH_COMMAND, or LD_PRELOAD against other allowlisted binaries. No public exploit identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 28, 2026

Arbitrary code execution in the Zed code editor (versions prior to 0.229.0) is possible by abusing its terminal tool permission system, which fails to account for environment-variable prefixes on allowlisted commands. An attacker who can influence what the agent runs (for example via a malicious prompt or repository content) can prepend assignments such as PAGER=/path/to/payload to a permitted command and hijack execution. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade Zed to 0.229.0 or later, which is the version called out as fixed in GHSA-c3g6-c3ff-69cg (https://github.com/zed-industries/zed/security/advisories/GHSA-c3g6-c3ff-69cg). Until upgrade is complete, disable or restrict Zed's agentic terminal tool / auto-approval of commands and require manual review of every proposed shell invocation - accepting the productivity cost of more confirmation prompts. Avoid opening untrusted repositories or pasting untrusted prompts into the agent, and consider running Zed under a least-privileged user account or container so that PAGER/EDITOR/LD_PRELOAD hijacks cannot reach sensitive credentials or SSH keys; the trade-off is reduced access to developer tooling from within the editor.

Affected VersionsENISA

zed < 0.229.0

Affected Packages

euvd zed fix: 0.229.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Zed (cpe:2.3:a:zed-industries:zed) is an AI-assisted code editor whose agent can run shell commands through a terminal tool gated by an allowlist permission system. The vulnerability maps to CWE-184 (Incomplete List of Disallowed Inputs): the allowlist matches on the command token but does not strip or validate inline environment-variable assignments that POSIX shells accept as a prefix (e.g., VAR=value cmd ...). Because many Unix utilities consult environment variables to choose helper programs - PAGER for less/git, EDITOR for many CLIs, LD_PRELOAD for dynamic loading, GIT_SSH_COMMAND for git transport - pointing one of these to an attacker-controlled binary or script turns an otherwise-benign allowlisted command into arbitrary code execution under the user's identity.

Know when Zed gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.6 HIGH
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
May 28, 2026 - 18:02 EUVD

DescriptionGitHub Advisory

Zed is a code editor. Prior to 0.229.0, Zed's terminal tool permission system can be bypassed by prepending environment variable assignments to allowlisted commands, hijacking program behavior (e.g., PAGER) to execute arbitrary code. This vulnerability is fixed in 0.229.0.

Executive ViewAI

Why It Matters

Zed code editor versions prior to 0.229.0 contain a high-severity arbitrary code execution vulnerability triggered through environment variable injection in the terminal tool permission system. Organizations using affected versions risk developer environment compromise, enabling credential theft, source code exfiltration, and supply chain attacks through malicious repository content or prompts.

Business Impact: High
Compensating Controls

Upgrade to Zed version 0.229.0 or later; if immediate upgrade is not feasible, disable terminal tool functionality or restrict code editor to trusted repositories.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Zed

View all
CVE-2026-27976 HIGH POC
8.8 Feb 26

Zed, a code editor, has an extension installer allows tar/gzip downloads. [CVSS 8.8 HIGH]

CVE-2026-27800 HIGH POC
7.4 Feb 26

Zed code editor versions prior to 0.224.4 contain a path traversal vulnerability in ZIP extraction that fails to sanitiz

CVE-2025-68433 HIGH POC
7.3 Dec 17

Arbitrary code execution in the Zed code editor affects all versions prior to 0.218.2-pre, where Model Context Protocol

CVE-2025-68432 HIGH POC
7.3 Dec 17

Arbitrary code execution in the Zed code editor (all versions prior to 0.218.2-pre) lets a project's .zed/settings.json

CVE-2026-27967 HIGH POC
7.1 Feb 26

Zed code editor versions before 0.225.9 fail to properly validate symbolic links in Agent file tools, allowing attackers

CVE-2026-25805 MEDIUM POC
6.4 Feb 10

Zed Editor versions prior to 0.219.4 fail to display tool invocation parameters during permission prompts or after execu

CVE-2018-16518 CRITICAL
9.8 Sep 05

A directory traversal vulnerability with remote code execution in Prim'X Zed!. Rated critical severity (CVSS 9.8), this

CVE-2026-44465 HIGH
8.6 May 28

Remote code execution in Zed code editor versions prior to 0.227.1 occurs when a user opens a folder containing a malici

CVE-2026-44466 HIGH
8.6 May 28

Command injection in Zed code editor versions prior to 0.229.0 allows bypass of the terminal tool's permission allowlist

CVE-2026-44461 HIGH
8.6 May 28

Remote command execution in Zed code editor versions prior to 0.227.1 occurs when opening SSH or WSL remote terminals be

CVE-2023-50444 HIGH
7.5 Dec 13

By default, .ZED containers produced by PRIMX ZED!. Rated high severity (CVSS 7.5), this vulnerability is remotely explo

CVE-2026-44462 MEDIUM
6.4 May 28

We are tasked to synthesize data from multiple intelligence sources about CVE-2026-44462 into a comprehensive JSON analy

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy