Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27800: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zed-industries zed

0
High
VulnerabilityCVE-2026-27800cvecve-2026-27800cwe-22
Published: Wed Feb 25 2026 (02/25/2026, 23:25:45 UTC)
Source: CVE Database V5
Vendor/Project: zed-industries
Product: zed

Description

Zed, a code editor, has a Zip Slip (Path Traversal) vulnerability exists in its extension archive extraction functionality prior to version 0.224.4. The `extract_zip()` function in `crates/util/src/archive.rs` fails to validate ZIP entry filenames for path traversal sequences (e.g., `../`). This allows a malicious extension to write files outside its designated sandbox directory by downloading and extracting a crafted ZIP archive. Version 0.224.4 fixes the issue.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/05/2026, 11:07:56 UTC

Technical Analysis

CVE-2026-27800 is a path traversal vulnerability categorized under CWE-22 affecting the Zed code editor prior to version 0.224.4. The vulnerability arises from improper validation of ZIP archive entry filenames in the extract_zip() function located in crates/util/src/archive.rs. Specifically, the function does not sanitize or restrict path traversal sequences such as '../' within ZIP entries. This flaw enables a malicious extension archive to escape the designated sandbox directory during extraction, allowing arbitrary files to be written anywhere on the filesystem where the user has write permissions. Such unauthorized file writes can lead to integrity violations, including overwriting critical files or planting malicious payloads. The vulnerability is remotely exploitable without requiring privileges or authentication but does require user interaction to install or extract the malicious extension. The CVSS v3.1 base score is 7.4 (high), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and scope change due to impacting resources beyond the sandbox. No known exploits have been reported in the wild as of the publication date, but the risk remains significant due to the potential for arbitrary file writes. The issue is resolved in Zed version 0.224.4 by implementing proper filename validation and path sanitization during ZIP extraction.

Potential Impact

The primary impact of this vulnerability is the compromise of file integrity on systems running vulnerable versions of Zed. Attackers can leverage crafted extension archives to write arbitrary files outside the sandbox, potentially overwriting critical configuration files, injecting malicious scripts, or planting backdoors. This can lead to persistent compromise, privilege escalation if sensitive files are overwritten, or disruption of development workflows. Although confidentiality and availability impacts are limited, the integrity breach can facilitate further attacks or malware persistence. Organizations relying on Zed for development or code editing are at risk, especially if extensions are sourced from untrusted providers. The requirement for user interaction (installing or extracting an extension) somewhat limits exploitation but does not eliminate risk, particularly in environments where users frequently add third-party extensions. The vulnerability could also be leveraged in targeted attacks against developers or CI/CD pipelines using Zed, potentially impacting software supply chain security.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately upgrade Zed to version 0.224.4 or later, where the issue is fixed. Until upgrading, users should avoid installing or extracting extensions from untrusted or unknown sources. Implement strict policies to restrict extension installation to verified repositories or signed packages. Employ endpoint security solutions that monitor and block unauthorized file writes outside expected directories. Developers and security teams should audit existing extensions for suspicious archive contents and consider sandboxing or containerizing development environments to limit filesystem exposure. Additionally, monitoring file system changes in directories related to Zed can help detect exploitation attempts. Educate users about the risks of installing untrusted extensions and enforce least privilege principles to minimize the impact of potential exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-24T02:31:33.266Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f88afb7ef31ef0b6add23

Added to database: 2/25/2026, 11:41:35 PM

Last enriched: 3/5/2026, 11:07:56 AM

Last updated: 4/12/2026, 7:57:51 AM

Views: 62

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses