/

CVE-2026-91200

Severity:

HIGH RISK

(8.8)

Path Traversal (CWE-22) in DevSpace Sync Stream Handler

CVE-2026-91200

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Write and Code Execution

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

DevSpace through version 6.3.21 does not properly reject parent-directory segments in tar entry names received from an in-pod synchronization stream. A malicious container may use this behavior to write files outside the intended destination on a developer workstation, potentially enabling code execution.

Affected context

The vulnerability occurs in DevSpace workflows that synchronize files from a container to a developer workstation through a tar-based stream. It becomes risky when a container can influence tar entry names and the workstation-side extraction logic does not constrain writes to the designated synchronization directory.

Exploit preconditions

  • Attack surface: The in-pod file synchronization stream and workstation-side tar extraction
  • Required access: Ability to operate or control a container participating in the DevSpace synchronization workflow
  • Trigger point: Processing and extracting tar entries received from the container
  • Why exploitation is possible: Tar entry paths containing parent-directory segments are not rejected or safely confined before files are written to the workstation

Why this happens

The underlying bug is insufficient validation of archive member paths before extraction. When an archive extractor accepts paths containing parent-directory components without canonicalizing them and verifying that the resolved destination remains within the intended directory, an attacker-controlled entry can escape the extraction root. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly called path traversal.

Potential impact

  • Arbitrary files on the developer workstation may be overwritten or created
  • Local configuration, source, or credential files could be modified
  • Developer tools or project files could be tampered with
  • Code execution may occur if a written file is later trusted or executed
  • The workstation could be used as a foothold for further compromise

General mitigation guidance

Mitigation generally focuses on enforcing a strict extraction boundary and reducing trust in container-provided archive metadata.

Common defensive patterns include:

  • Rejecting absolute paths and parent-directory segments in archive entry names
  • Canonicalizing destination paths before writing and verifying containment within the intended root
  • Using archive extraction APIs with built-in path confinement where available
  • Applying allowlists for synchronized paths and file types when practical
  • Running synchronization components with the minimum filesystem permissions needed
  • Separating development workspaces from sensitive workstation data
  • Treating container-originated file content and metadata as untrusted

How teams detect issues like this

Organizations can detect this class of issue through:

  • Static analysis rules that flag archive extraction without canonical path validation
  • Code review checks for absolute paths, parent-directory segments, and unchecked path joins
  • Tests using archive entries that resolve outside the intended extraction directory
  • Runtime logging and policy enforcement for synchronization writes outside approved workspace roots
  • Automated security review tools that identify unsafe archive handling and filesystem boundary violations

Sources

SourceLink
github.comgithub.com/devspace-sh/devspace
github.comgithub.com/devspace-sh/devspace/blob/7f272dcf90653fa9b42bc4347f7f3f9a52b0e8b5/pkg/devspace/sync/tar.go#L68-L82
github.comgithub.com/devspace-sh/devspace/blob/7f272dcf90653fa9b42bc4347f7f3f9a52b0e8b5/pkg/devspace/sync/util.go#L9-L11
github.comgithub.com/devspace-sh/devspace/issues/3290
vulncheck.comvulncheck.com/advisories/devspace-through-6.3.21-path-traversal-via-tar-extraction

Frequently asked

questions

Exploitation is generally dependent on a malicious or compromised container participating in the in-pod synchronization workflow. It is not necessarily reachable directly from the public internet.

An attacker typically needs the ability to control a container whose tar-based synchronization output is processed by the developer workstation.

Treat archive entry names as untrusted, reject traversal and absolute paths, canonicalize destinations, and enforce that every write remains inside the approved synchronization directory.

Use confined archive extraction APIs, add boundary-focused tests to CI, review path handling during code changes, and limit both container privileges and workstation filesystem access.

Find out what's already
exploitable in your codebase.