Skip to content
HighVulnerability

CVE-2025-68433: Zed arbitrary code execution via MCP settings.json in project .zed folder

Identifier
CVE-2025-68433
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Zed, a code editor, has an arbitrary code execution vulnerability in versions prior to 0.218.2-pre. The IDE loads Model Context Protocol (MCP) configurations from the `settings.json` file in a project's `.zed` subdirectory, and a malicious configuration can contain shell commands that run with the privileges of the user running the IDE, triggered just by opening the project.

Mitigation

Version 0.218.2-pre fixes the issue by implementing worktree trust mechanism. As a workaround, users should carefully review the contents of project settings files (`./zed/settings.json`) before opening new projects in Zed.