Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-19444 Overview
A path traversal vulnerability [CWE-22] affects the Kubernetes kubectl cp command on Windows clients. When a user copies files from a container, kubectl executes tar inside the container, streams the archive over the network, and unpacks it on the local filesystem. A malicious tar binary in the container can emit crafted output that writes files to arbitrary paths on the Windows host. The write scope is bounded only by the local user's filesystem permissions. The issue is specific to kubectl clients running on Windows and does not affect Linux or macOS clients.
Critical Impact
An attacker controlling container contents can write arbitrary files to the local Windows filesystem when a user runs kubectl cp, enabling code execution via writes to startup folders or persistent locations.
Affected Products
- Kubernetes kubectl client on Windows
- Environments where users invoke kubectl cp against untrusted container images
- Multi-tenant clusters where container contents are not fully controlled by the operator
Discovery Timeline
- 2026-09-28 - CVE-2026-19444 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-19444
Vulnerability Analysis
The kubectl cp command relies on executing the tar binary inside the target container to package files for transfer. The client then unpacks the resulting stream on the local Windows machine. Because the in-container tar executable is attacker-controllable in untrusted images, it can produce an archive stream containing path entries that escape the intended destination directory.
On Windows, path handling differs from POSIX systems. The kubectl client's path sanitization logic does not fully normalize Windows-specific constructs such as backslash separators, drive letters, and absolute path prefixes. The flaw is tracked under the Common Weakness Enumeration [CWE-22] for path traversal.
Root Cause
The root cause is insufficient validation of entry paths within the tar stream returned by the container. The Windows client trusts the archive structure produced by the remote tar process. Linux and macOS clients handle these paths correctly, which is why the vulnerability is limited to Windows.
Attack Vector
An attacker must control the contents of a container image or a running container, replacing or shimming the tar binary. When a user with cluster access runs kubectl cp against that container on a Windows workstation, the malicious tar emits path entries that resolve outside the user-specified destination. Files can be dropped into locations such as the user's Startup folder, PowerShell profile, or any writable path, enabling code execution on subsequent login or shell invocation. Exploitation requires user interaction and valid cluster privileges to invoke kubectl cp.
See the Kubernetes Security Announcement and GitHub Issue #141294 for technical details.
Detection Methods for CVE-2026-19444
Indicators of Compromise
- Unexpected files appearing in Windows user profile locations such as %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup following kubectl cp usage
- Modified PowerShell or shell profile scripts ($PROFILE, profile.ps1) with timestamps correlating to kubectl cp invocations
- Files written outside the intended destination directory specified in a kubectl cp command
Detection Strategies
- Audit shell history and command-line telemetry for kubectl cp invocations sourced from untrusted container images
- Correlate container pull events for third-party images with subsequent kubectl.exe process activity on Windows endpoints
- Monitor child process creation under kubectl.exe and file-write events to sensitive persistence locations
Monitoring Recommendations
- Enable Windows file integrity monitoring on Startup folders, scheduled task directories, and shell profile paths
- Log Kubernetes API pods/exec calls initiated by Windows clients and alert on kubectl cp activity against unverified namespaces
- Review endpoint telemetry for kubectl.exe writing files to paths outside the user-specified kubectl cp destination
How to Mitigate CVE-2026-19444
Immediate Actions Required
- Update kubectl on all Windows workstations to a version containing the fix from Pull Request #141296
- Restrict kubectl cp usage against containers running untrusted or third-party images until all Windows clients are patched
- Enforce least-privilege RBAC so that pods/exec permissions are limited to operators who require them
Patch Information
The Kubernetes project released a fix tracked in GitHub Pull Request #141296. Administrators should upgrade kubectl to a patched release as announced in the Kubernetes Security Announcement. Verify the installed version with kubectl version --client.
Workarounds
- Use kubectl exec <pod> -- tar cf - /path | tar xf - from a Linux or WSL environment instead of kubectl cp on native Windows
- Avoid running kubectl cp against pods built from untrusted container images
- Run kubectl from a non-privileged Windows account with restricted write access to persistence locations
# Verify kubectl client version on Windows
kubectl version --client
# Example safer alternative using exec and local tar extraction
kubectl exec <pod-name> -n <namespace> -- tar cf - /source/path | tar xf - -C C:\safe\destination
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

