Description
Zed is a code editor. Prior to 0.227.1, Zed IDE executes arbitrary commands when opening a folder with a malicious .git/config file that abuses the core.fsmonitor Git configuration option. This allows an attacker to achieve Remote Code Execution (RCE) when a victim open a folder in untrusted mode. This vulnerability is fixed in 0.227.1.
Published: 2026-05-28
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in Zed IDE prior to version 0.227.1, where the application blindly executes commands specified in a malicious ".git/config" file that sets the "core.fsmonitor" Git configuration option. This flaw permits an attacker to run arbitrary code on the host system when a user opens a folder containing such a poisoned configuration file in untrusted mode. The weakness is a classic example of command injection, identified as CWE‑78. The impact is the potential compromise of the host machine, allowing the attacker to gain full control over the system if the user opens a tainted repository.

Affected Systems

Zed IDE, provided by zed-industries, is affected by this flaw in all releases prior to 0.227.1. Any installation of Zed that remains on an older version and is used to open untrusted project folders is vulnerable. No specific operating‑system restrictions are indicated; the problem is intrinsic to the application layer.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity vulnerability. No EPSS score is publicly available, but the lack of a KEV listing suggests no mass exploitation has been reported to date. The likely attack vector is a malicious user or code repository that includes a poisoned ".git/config" file. An attacker needs the victim to open the affected folder in untrusted mode, a scenario that can occur easily when downloading and exploring open‑source projects. Once opened, the embedded command is executed with the privileges of the user running Zed, allowing full remote code execution.

Generated by OpenCVE AI on May 28, 2026 at 18:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Zed IDE to version 0.227.1 or later, which removes the vulnerable handling of ".git/config" files
  • If an upgrade is not immediately possible, configure Zed to run only in trusted mode or block opening folders with a "core.fsmonitor" entry in ".git/config"
  • Ensure that user accounts running Zed have limited permissions and audit the system to detect unintended command execution

Generated by OpenCVE AI on May 28, 2026 at 18:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 03 Jun 2026 02:30:00 +0000

Type Values Removed Values Added
First Time appeared Zed
Zed zed
CPEs cpe:2.3:a:zed:zed:*:*:*:*:*:*:*:*
Vendors & Products Zed
Zed zed

Thu, 28 May 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 28 May 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Zed-industries
Zed-industries zed
Vendors & Products Zed-industries
Zed-industries zed

Thu, 28 May 2026 17:00:00 +0000

Type Values Removed Values Added
Description Zed is a code editor. Prior to 0.227.1, Zed IDE executes arbitrary commands when opening a folder with a malicious .git/config file that abuses the core.fsmonitor Git configuration option. This allows an attacker to achieve Remote Code Execution (RCE) when a victim open a folder in untrusted mode. This vulnerability is fixed in 0.227.1.
Title Zed: Zed IDE Arbitrary Code Execution via untrusted repository with poisoned .git/config
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-29T03:56:00.766Z

Reserved: 2026-05-06T15:49:25.193Z

Link: CVE-2026-44465

cve-icon Vulnrichment

Updated: 2026-05-28T18:58:27.987Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-28T17:16:30.043

Modified: 2026-06-02T20:17:42.967

Link: CVE-2026-44465

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T19:00:16Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')