CVE-2026-44461: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in zed-industries zed
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.
AI Analysis
Technical Summary
Zed versions before 0.227.1 build SSH/WSL remote commands by concatenating environment variable keys into shell command strings without proper quoting or validation. This allows shell expansions embedded in environment variable keys (e.g., $(...)) to be evaluated by the remote shell, resulting in OS command injection. The vulnerability enables an attacker with the ability to influence environment variable keys, such as through project terminal settings, to execute arbitrary commands on the remote host with the privileges of the victim user. The issue is addressed in Zed version 0.227.1.
Potential Impact
Successful exploitation allows arbitrary command execution on the remote host under the victim user's account, potentially leading to full compromise of the user's remote environment, including confidentiality, integrity, and availability impacts. The CVSS 3.1 base score is 8.6 (High), reflecting local attack vector, low attack complexity, no privileges required, user interaction required, scope change, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade Zed to version 0.227.1 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Until upgrading, avoid scenarios where untrusted users can control environment variable keys used in remote terminal settings.
CVE-2026-44461: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in zed-industries zed
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 v3.1
Score 8.6high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Zed versions before 0.227.1 build SSH/WSL remote commands by concatenating environment variable keys into shell command strings without proper quoting or validation. This allows shell expansions embedded in environment variable keys (e.g., $(...)) to be evaluated by the remote shell, resulting in OS command injection. The vulnerability enables an attacker with the ability to influence environment variable keys, such as through project terminal settings, to execute arbitrary commands on the remote host with the privileges of the victim user. The issue is addressed in Zed version 0.227.1.
Potential Impact
Successful exploitation allows arbitrary command execution on the remote host under the victim user's account, potentially leading to full compromise of the user's remote environment, including confidentiality, integrity, and availability impacts. The CVSS 3.1 base score is 8.6 (High), reflecting local attack vector, low attack complexity, no privileges required, user interaction required, scope change, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade Zed to version 0.227.1 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Until upgrading, avoid scenarios where untrusted users can control environment variable keys used in remote terminal settings.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-06T15:49:25.193Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1871e7e29bf47b501244d7
Added to database: 5/28/2026, 4:48:39 PM
Last enriched: 5/28/2026, 5:04:21 PM
Last updated: 5/29/2026, 9:24:36 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.