Kubernetes kubectl cp Path Traversal via Malicious tar on Windows
CVE-2026-19444 Published on September 28, 2026
Kubernetes kubectl cp path traversal on Windows allows arbitrary file writes
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.
Vulnerability Analysis
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2026-19444 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2026-19444
Want to know whenever a new CVE is published for Kubernetes? stack.watch will email you.
Affected Versions
Kubernetes:- Version v1.36.0, <= v1.36.4 is affected.
- Version v1.35.0, <= v1.35.8 is affected.
- Version v1.34.0, <= v1.34.11 is affected.
- Version v1.0, <= v1.33.13 is unknown.