/

CVE-2026-78299

Severity:

CRITICAL RISK

(9.1)

Path Traversal (CWE-22) in Eclipse Embedded CDT CMSIS

CVE-2026-78299

Awaiting Analysis

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Write

Severity:

CRITICAL RISK

(9.1)

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

A path traversal vulnerability in Eclipse Embedded CDT can allow a compromised CMSIS-Pack archive to place extracted files outside the intended pack directory.

If an attacker can supply or influence the archive being imported, the flaw may enable arbitrary file writes to other locations on the host filesystem.

Affected context

The vulnerability occurs during CMSIS-Pack archive extraction in Eclipse Embedded CDT versions 6.0 through 6.7. It becomes risky when a project or workflow processes a compromised archive and the extraction logic does not sufficiently constrain archive entry paths to the intended destination directory.

Exploit preconditions

  • Attack surface: CMSIS-Pack archive import or extraction functionality
  • Required access: Ability to provide, replace, or influence a CMSIS-Pack archive processed by Eclipse Embedded CDT
  • Trigger point: Extraction of archive entries to the local filesystem
  • Why exploitation is possible: Archive paths are not reliably confined to the designated pack directory, allowing entries to resolve to locations outside the intended extraction root

Why this happens

The underlying bug is an insufficiently constrained archive extraction process. When archive entry names are trusted without canonicalizing paths and verifying that the resulting destinations remain within the extraction directory, traversal sequences or equivalent path forms can escape the intended boundary.

This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), because attacker-controlled archive metadata can influence filesystem paths used for writing.

Potential impact

  • Arbitrary files may be overwritten or created on the developer workstation
  • Project source code, configuration, or build artifacts could be modified
  • Development tools or scripts may be tampered with
  • Sensitive files could be damaged or replaced
  • Subsequent code execution or broader compromise could occur if privileged or executable files are affected

General mitigation guidance

Mitigation generally focuses on enforcing a strict extraction boundary and reducing trust in externally sourced archives.

Common defensive patterns include:

  • Canonicalizing each archive entry path before writing it
  • Rejecting absolute paths and traversal components
  • Verifying that every resolved destination remains beneath the intended extraction directory
  • Extracting into an isolated, least-privileged workspace
  • Treating CMSIS-Pack archives as untrusted input and validating provenance and integrity
  • Preventing overwrites of sensitive or existing files by default
  • Applying filesystem permissions and sandboxing that limit damage from unintended writes

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis of archive extraction code for direct concatenation of entry names with destination paths
  • Code review checks for canonicalization and containment validation
  • Tests containing relative traversal, absolute-path, symbolic-link, and platform-specific path cases
  • Runtime monitoring for unexpected writes outside approved workspace directories
  • Policy enforcement requiring untrusted archives to be processed in isolated environments

Automated security review tools may help identify common archive traversal patterns, but path and filesystem behavior should also be validated with platform-aware tests.

Sources

SourceLink
github.comgithub.com/eclipse-embed-cdt/eclipse-plugins/security/advisories/GHSA-qch4-8rmp-mjx3
gitlab.eclipse.orggitlab.eclipse.org/security/vulnerability-reports/-/work_items/747

Frequently asked

questions

It is not necessarily a network-facing issue. Exploitation generally depends on getting a compromised CMSIS-Pack archive processed by a user or automated development workflow.

An attacker needs to provide, replace, or otherwise influence an archive that Eclipse Embedded CDT will extract. The required access depends on how packs are obtained and shared in the development environment.

Enforce canonical path resolution and reject every archive entry whose resolved destination falls outside the intended extraction directory. Isolation and least-privilege execution provide additional protection.

Treat archives as untrusted input, validate archive metadata before extraction, test traversal and link-handling edge cases, and monitor filesystem writes for unexpected destinations.

Find out what's already
exploitable in your codebase.