/

CVE-2026-62369

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in KubeEdge keadm on Windows

CVE-2026-62369

Awaiting Analysis

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Write and Potential Code Execution

Severity:

HIGH RISK

(8.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

KubeEdge's keadm utility can extract archive entries outside the intended destination because archive paths are not sufficiently validated. When an attacker can influence the archive source or replace an archive used during installation or node joining, the process may overwrite files with its own privileges, potentially enabling persistent modification or code execution.

Affected context

The issue occurs in KubeEdge keadm installations or join operations performed on Windows edge nodes when the DecompressTarGz function processes an archive. Risk depends on whether the archive can be influenced through a compromised download source, replacement, or another untrusted distribution path, and on the privileges available to the affected keadm process.

Exploit preconditions

  • Attack surface: Archive extraction during keadm installation or node joining
  • Required access: Ability to influence, replace, or provide the archive consumed by the affected process
  • Trigger point: Extraction of archive entries by DecompressTarGz
  • Why exploitation is possible: Insufficient validation permits parent-directory components, backslashes, absolute paths, or drive-prefixed paths to resolve outside the intended extraction directory

Why this happens

The underlying bug is a path traversal condition caused by joining archive entry names with an extraction destination without enforcing a canonical, confined target path. On Windows, platform-specific path syntax—including backslashes, absolute paths, and drive prefixes—can bypass assumptions based only on relative forward-slash paths. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, where attacker-influenced names can direct file operations beyond the intended location.

Potential impact

  • Arbitrary files may be created or overwritten with the privileges of the keadm process
  • Configuration, executable, or service files could be modified
  • System persistence could be established
  • The affected edge node may experience unauthorized code execution
  • Node integrity and connected workload environments could be compromised

General mitigation guidance

Mitigation generally focuses on confining every extracted file to the intended destination before writing it.

Common defensive patterns include:

  • Canonicalizing and validating archive entry paths before extraction
  • Rejecting parent-directory traversal, absolute paths, drive-prefixed paths, and platform-specific separator variants
  • Verifying that the resolved destination remains within the approved extraction directory
  • Using extraction libraries or APIs with explicit traversal protections
  • Treating downloaded archives as untrusted and enforcing authenticated integrity checks
  • Running installation utilities with the minimum privileges required
  • Separating writable temporary extraction locations from configuration, executable, and service directories

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis rules targeting archive extraction and path concatenation
  • Code review checks for canonicalization followed by destination-boundary validation
  • Tests containing traversal markers, absolute paths, drive prefixes, and both Windows and Unix-style separators
  • Policy checks requiring archive integrity verification before installation
  • Runtime monitoring for unexpected writes outside designated temporary or installation directories
  • Automated security review tools that flag archive extraction without path confinement

Sources

SourceLink
github.comgithub.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.21.md
github.comgithub.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.22.md
github.comgithub.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.23.md
github.comgithub.com/kubeedge/kubeedge/commit/47767b7f2649afcfa3a856e87d556f7777e0428d
github.comgithub.com/kubeedge/kubeedge/commit/a524a66a1ae1691eb8ff16b6ff9a93fb370d4047
github.comgithub.com/kubeedge/kubeedge/commit/ee02dea9d08114afc4a8f401b1c2f30e84e1de40
github.comgithub.com/kubeedge/kubeedge/pull/7028
github.comgithub.com/kubeedge/kubeedge/pull/7029
github.comgithub.com/kubeedge/kubeedge/pull/7030
github.comgithub.com/kubeedge/kubeedge/releases/tag/v1.21.2
github.comgithub.com/kubeedge/kubeedge/releases/tag/v1.22.2
github.comgithub.com/kubeedge/kubeedge/releases/tag/v1.23.1
github.comgithub.com/kubeedge/kubeedge/security/advisories/GHSA-9vm9-pqxx-x83v

Frequently asked

questions

It may be exploitable through a remote or supply-chain path if an attacker can compromise, replace, or otherwise influence an archive downloaded for a keadm operation. It is not necessarily reachable as a standalone network service.

The attacker needs control over, or the ability to tamper with, the archive consumed during installation or node joining. The resulting impact also depends on the privileges of the keadm process.

Validate and canonicalize every archive entry before writing it, reject unsafe path forms, and confirm that the final path remains inside the intended extraction directory.

Combine archive integrity verification, platform-aware path validation, least-privilege execution, security-focused extraction tests, and code review policies for filesystem operations.

Find out what's already
exploitable in your codebase.