CVE-2026-44461CWE-78

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

High · published May 28, 2026

CVSS v3.1
8.6
EPSS
0%
Percentile
15.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.6 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00249 · 15.3th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-05-28T16:08Z
EPSS history
Timeline
  • 28 MAY 16:08Z
    Zed: Remote Command Injection via Unquoted Environment Variable Keys (SSH / WSL Remote)
    cvelistv5