CVE-2026-27976: CWE-61: UNIX Symbolic Link (Symlink) Following in zed-industries zed
Zed, a code editor, has an extension installer allows tar/gzip downloads. Prior to version 0.224.4, the tar extractor (`async_tar::Archive::unpack`) creates symlinks from the archive without validation, and the path guard (`writeable_path_from_extension`) only performs lexical prefix checks without resolving symlinks. An attacker can ship a tar that first creates a symlink inside the extension workdir pointing outside (e.g., `escape -> /`), then writes files through the symlink, causing writes to arbitrary host paths. This escapes the extension sandbox and enables code execution. Version 0.224.4 patches the issue.
AI Analysis
Technical Summary
The vulnerability CVE-2026-27976 affects the zed code editor's extension installer component, specifically versions prior to 0.224.4. The installer downloads extensions as tar/gzip archives and extracts them using the async_tar::Archive::unpack function. This function creates symbolic links from the archive without validating their targets, while the path guard mechanism (writeable_path_from_extension) only performs lexical prefix checks without resolving symlinks. An attacker can craft a malicious tar archive that first creates a symbolic link inside the extension working directory pointing to an arbitrary location outside the directory (e.g., a symlink named 'escape' pointing to '/'). Subsequent files extracted through this symlink are written to arbitrary paths on the host filesystem. This allows an attacker to escape the extension sandbox, overwrite critical system or user files, and potentially execute arbitrary code with the privileges of the user running zed. Exploitation requires the victim to install a malicious extension, thus involving user interaction but no prior authentication or elevated privileges. The vulnerability is classified under CWE-61 (Improper Restriction of Symbolic Links in a File System) and has a CVSS 3.1 score of 8.8, indicating high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability. The issue was patched in version 0.224.4 by presumably adding proper symlink validation and path resolution during extraction.
Potential Impact
This vulnerability poses a significant risk to organizations using the zed code editor, especially those who install third-party extensions. Successful exploitation can lead to arbitrary file writes outside the intended sandbox, enabling attackers to overwrite configuration files, inject malicious code, or modify critical system files. This can result in remote code execution, data compromise, system instability, or denial of service. Since zed is a developer tool, compromised developer environments can lead to supply chain risks, such as injecting malicious code into software projects. The requirement for user interaction (installing a malicious extension) limits mass exploitation but targeted attacks against developers or organizations are feasible. The vulnerability affects confidentiality, integrity, and availability of affected systems and can facilitate further lateral movement or privilege escalation within an organization.
Mitigation Recommendations
The primary mitigation is to upgrade the zed code editor to version 0.224.4 or later, where the vulnerability is patched. Until upgrading, organizations should restrict installation of extensions to those from trusted sources only and educate users about the risks of installing unverified extensions. Implement application whitelisting or sandboxing to limit the impact of potential exploitation. Monitoring file system changes in the extension directories and unusual symlink creations can help detect exploitation attempts. Additionally, consider using endpoint protection solutions that can detect suspicious file writes or code execution patterns. Developers should review extension installation processes and avoid running the editor with elevated privileges to reduce impact. Finally, maintain regular backups to recover from potential destructive attacks leveraging this vulnerability.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Japan, South Korea, Netherlands, Sweden
CVE-2026-27976: CWE-61: UNIX Symbolic Link (Symlink) Following in zed-industries zed
Description
Zed, a code editor, has an extension installer allows tar/gzip downloads. Prior to version 0.224.4, the tar extractor (`async_tar::Archive::unpack`) creates symlinks from the archive without validation, and the path guard (`writeable_path_from_extension`) only performs lexical prefix checks without resolving symlinks. An attacker can ship a tar that first creates a symlink inside the extension workdir pointing outside (e.g., `escape -> /`), then writes files through the symlink, causing writes to arbitrary host paths. This escapes the extension sandbox and enables code execution. Version 0.224.4 patches the issue.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-27976 affects the zed code editor's extension installer component, specifically versions prior to 0.224.4. The installer downloads extensions as tar/gzip archives and extracts them using the async_tar::Archive::unpack function. This function creates symbolic links from the archive without validating their targets, while the path guard mechanism (writeable_path_from_extension) only performs lexical prefix checks without resolving symlinks. An attacker can craft a malicious tar archive that first creates a symbolic link inside the extension working directory pointing to an arbitrary location outside the directory (e.g., a symlink named 'escape' pointing to '/'). Subsequent files extracted through this symlink are written to arbitrary paths on the host filesystem. This allows an attacker to escape the extension sandbox, overwrite critical system or user files, and potentially execute arbitrary code with the privileges of the user running zed. Exploitation requires the victim to install a malicious extension, thus involving user interaction but no prior authentication or elevated privileges. The vulnerability is classified under CWE-61 (Improper Restriction of Symbolic Links in a File System) and has a CVSS 3.1 score of 8.8, indicating high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability. The issue was patched in version 0.224.4 by presumably adding proper symlink validation and path resolution during extraction.
Potential Impact
This vulnerability poses a significant risk to organizations using the zed code editor, especially those who install third-party extensions. Successful exploitation can lead to arbitrary file writes outside the intended sandbox, enabling attackers to overwrite configuration files, inject malicious code, or modify critical system files. This can result in remote code execution, data compromise, system instability, or denial of service. Since zed is a developer tool, compromised developer environments can lead to supply chain risks, such as injecting malicious code into software projects. The requirement for user interaction (installing a malicious extension) limits mass exploitation but targeted attacks against developers or organizations are feasible. The vulnerability affects confidentiality, integrity, and availability of affected systems and can facilitate further lateral movement or privilege escalation within an organization.
Mitigation Recommendations
The primary mitigation is to upgrade the zed code editor to version 0.224.4 or later, where the vulnerability is patched. Until upgrading, organizations should restrict installation of extensions to those from trusted sources only and educate users about the risks of installing unverified extensions. Implement application whitelisting or sandboxing to limit the impact of potential exploitation. Monitoring file system changes in the extension directories and unusual symlink creations can help detect exploitation attempts. Additionally, consider using endpoint protection solutions that can detect suspicious file writes or code execution patterns. Developers should review extension installation processes and avoid running the editor with elevated privileges to reduce impact. Finally, maintain regular backups to recover from potential destructive attacks leveraging this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-25T03:24:57.793Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f8c2fb7ef31ef0b6c21d1
Added to database: 2/25/2026, 11:56:31 PM
Last enriched: 3/5/2026, 9:57:06 AM
Last updated: 4/11/2026, 5:25:49 PM
Views: 118
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.