CVE-2026-19444

Kubernetes kubectl cp path traversal on Windows allows arbitrary file writes

State
Published
Severity
6.5 Medium
Published
Sep 28, 2026
Updated
Sep 28, 2026
Reserved
Aug 10, 2026

Read the record on cve.org

Description

A path traversal vulnerability was discovered in the Kubernetes kubectl client's kubectl cp command on Windows. When copying files from a container, kubectl runs tar inside the container to build a tar archive, transfers it over the network, and unpacks it on the local machine. If the tar binary in the container is malicious, it can execute arbitrary code and emit unexpected output, allowing an attacker who controls container contents to write files to arbitrary paths on the user's local machine when kubectl cp is invoked, limited only by the system permissions of the local user. This issue only affects kubectl clients running on Windows.

Scores

CVSSScoreVectorSource
3.16.5 MediumCVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:Nkubernetes

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
KubernetesKubernetes
  • v1.36.0 through v1.36.4Affected
  • v1.35.0 through v1.35.8Affected
  • v1.34.0 through v1.34.11Affected
  • v1.0 through v1.33.13Unknown

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.