CVE-2026-44461
Received Received - Intake
Command Injection in Zed Code Editor

Publication date: 2026-05-28

Last updated on: 2026-05-28

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-28
Last Modified
2026-05-28
Generated
2026-05-28
AI Q&A
2026-05-28
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
zed zed to 0.227.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in the Zed code editor versions prior to 0.227.1. Zed builds SSH/WSL remote commands as a shell command string starting with 'exec env ...', but it inserts environment variable keys without any shell quoting or validation.

If an attacker can control an environment variable key, for example through project terminal settings, shell expansions within the key (such as $(...)) are executed by the remote shell when a terminal is opened.

This behavior allows an attacker to execute arbitrary commands on the remote host under the victim user's account.


How can this vulnerability impact me? :

The vulnerability can lead to arbitrary command execution on the remote host with the privileges of the victim user.

This means an attacker could run malicious commands remotely, potentially leading to data theft, system compromise, or further attacks within the affected environment.

Because the attacker can execute commands remotely, the integrity, confidentiality, and availability of the affected system and its data can be severely impacted.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, update Zed to version 0.227.1 or later, where the issue is fixed.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart