Skip to content
OpenAdvisories
High · 8.6 CVE-2026-44461 EUVD-2026-32936

Zed: Remote Command Injection via Unquoted Environment Variable Keys (SSH / WSL Remote)

Published May 28, 2026 · Updated May 29, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
zed-industries zed < 0.227.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 25.10 zed No fix yet —

References