Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious VSIX archive with path traversal sequences
-
ExploitUpload VSIX to code-marketplace
-
ExecutionExtractZip processes raw entry names without validation
-
ImpactArbitrary files written outside extension directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Victim must install a malicious VSIX file in coder/code-marketplace ≤ v2.4.1. The attacker crafts a ZIP archive with path traversal sequences (../) in entry names; upon extraction, arbitrary files write outside the extension directory. No authentication required; user interaction limited to installing the malicious extension. |
| Impact | Real-world risk is moderate to high for organizations running code-marketplace instances with user upload capabilities. Authentication is required (any upload-capable role can trigger the vulnerability), reducing the attack surface compared to unauthenticated flaws, but the technical impact is severe: arbitrary file write enables complete system compromise if the marketplace process runs with elevated privileges or has write access to sensitive directories. The vulnerability is straightforward to exploit-constructing a malicious VSIX with traversal sequences requires minimal effort, and publicly available exploit code exists. However, this is a niche product (internal VS Code marketplace infrastructure) with limited deployment footprint compared to mainstream applications. No CISA KEV listing exists, indicating no confirmed active exploitation in the wild at time of analysis. The fix is available and straightforward (upgrade to v2.4.2), making this a clear remediation priority for affected organizations but not an internet-wide emergency. SSVC assessment: exploitation status is POC; automatable (yes, trivial VSIX construction); technical impact is total (arbitrary file write). Organizations should prioritize patching based on their marketplace deployment's privilege level and accessibility to untrusted users. |
| Exploit ScenarioDerived | An authenticated developer with extension upload privileges crafts a malicious VSIX file containing a zip entry named '../../../../etc/cron.d/persistence' with executable cron job content. When an administrator uploads or installs this extension via the vulnerable code-marketplace instance, the ExtractZip function processes the archive and passes the unsanitized path to AddExtension. The filepath.Join call resolves the traversal sequence, writing the attacker's cron job to /etc/cron.d/persistence instead of the intended extension directory. The system cron daemon subsequently executes the malicious job at scheduled intervals, granting the attacker persistent code execution with the privileges of the cron subsystem. Publicly available exploit code exists demonstrating VSIX construction with path-traversal payloads. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 04, 2026
Path traversal in Coder code-marketplace ≤ v2.4.1 allows authenticated users to write arbitrary files outside the extension directory during VSIX extraction. The ExtractZip function passes unsanitized zip entry names containing '..' sequences to filepath.Join, which resolves parent directory references without confining output to the intended base path. Attackers can inject malicious cron jobs, SSH keys, or overwrite binaries depending on process privileges. Fixed in v2.4.2. No active exploitation confirmed (not in CISA KEV); publicly available exploit code exists.
RemediationAI
Upgrade to code-marketplace version 2.4.2 immediately, released at https://github.com/coder/code-marketplace/releases/tag/v2.4.2. The fix (commit 988440dee05fceef8400ed725badc604dbf90792 at https://github.com/coder/code-marketplace/commit/988440dee05fceef8400ed725badc604dbf90792) implements boundary checking to ensure extracted paths remain within the intended base directory after path resolution. Organizations unable to upgrade immediately should restrict VSIX upload permissions to highly trusted administrators only and review existing uploaded extensions for malicious path-traversal entries. Post-upgrade, audit filesystem locations writable by the marketplace process for unexpected files written before patching, particularly /etc/cron.d, /etc/init.d, user SSH directories, and application binary paths. No effective workaround exists beyond restricting upload access, as the vulnerability is in core extraction logic.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a classic Zip Slip vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) in a Go-based Visual Studio Code extension marketplace implementation. The affected package (pkg:go/github.com/coder/code-marketplace) processes VSIX files, which are standard zip archives. The vulnerable code chain involves two functions: ExtractZip passes raw zip entry names (zf.Name) directly to a callback without sanitization, and AddExtension constructs filesystem paths using Go's filepath.Join with these untrusted inputs. While filepath.Join applies filepath.Clean to resolve '..' sequences lexically, it does not validate that the resulting absolute path remains within the intended base directory. For example, filepath.Join('/srv/ext/pub/1.0', '../../../../etc/cron.d/evil') correctly resolves to '/etc/cron.d/evil', escaping the intended extraction boundary. This is a common pitfall in archive extraction implementations across languages-path normalization alone does not provide confinement guarantees.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/coder/code-marketplace).
CVSS VectorVendor: https://github.com/coder/code-marketplace
Lifecycle Timeline
2DescriptionCVE.org
Zip Slip Path Traversal in coder/code-marketplace
Summary
A Zip Slip (CWE-22) vulnerability in coder/code-marketplace ≤ v2.4.1 allowed a malicious VSIX file to write arbitrary files outside the extension directory. ExtractZip passed raw zip entry names to a callback that wrote files via filepath.Join with no boundary check; filepath.Join resolved .. components but did not prevent the result from escaping the base path.
Root Cause
ExtractZip passed the raw, attacker-controlled zf.Name to a caller-supplied callback:
return false, fn(zf.Name, zr) // zf.Name not sanitizedAddExtension constructed the output path with filepath.Join and no boundary check:
path := filepath.Join(dir, name) // zip loop
path := filepath.Join(dir, file.RelativePath) // extra files loopfilepath.Clean resolved .. lexically but did not confine the result to dir:
filepath.Join("/srv/ext/pub/1.0", "../../../../etc/cron.d/evil")
→ "/etc/cron.d/evil"Attack Scenario
An authenticated user (any upload-capable role) would submit a VSIX containing path-traversal entries.
On extraction, files would land at attacker-chosen paths writable by the marketplace process, enabling persistence (cron/init injection), SSH key injection, ld.so.preload hijacking, or binary overwrite depending on process privileges.
Fix
Addressed in https://github.com/coder/code-marketplace/releases/tag/v2.4.2
Recognition
Coder would like to thank Kandlaguduru Vamsi for responsibly disclosing this issue in accordance with https://coder.com/security/policy
Executive ViewAI
Coder code-marketplace versions up to 2.4.1 contain a path traversal vulnerability that enables authenticated users to write arbitrary files outside the intended extension directory during VSIX extraction, potentially allowing deployment of malicious cron jobs, SSH keys, or system binaries. This poses a direct threat to any organization using the affected marketplace feature, as malicious or compromised extensions could compromise the integrity of developer environments and the underlying infrastructure.
Vendor-released patch: Coder code-marketplace v2.4.2. Until patching is complete, disable the VSIX extraction feature in code-marketplace or restrict marketplace access to trusted administrators only; implement file integrity monitoring on directories where extensions are extracted to detect unauthorized file writes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-19537
GHSA-8x9r-hvwg-c55h
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB