CVE-2026-19444

Kubernetes kubectl cp path traversal on Windows allows arbitrary file writes

Published Sep 28, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A path traversal vulnerability exists when the kubectl cp command is used on Windows. The client builds a tar archive inside the container, streams it over the network, and extracts it on the local host. If the tar binary inside the container is compromised, it can execute arbitrary code and produce unexpected output. An attacker who controls the content of the container can exploit this to write files to any location reachable by the local Windows user, effectively enabling arbitrary file overwrites. The weakness is classified under CWE-22.

Affected Systems

The issue impacts all Kubernetes kubectl clients running on Windows. Every installed version that implements the cp sub-command is potentially vulnerable; no specific product or version range is identified in the advisory. The problem is limited to Windows clients and does not affect Unix-style kubectl installations.

Risk and Exploitability

With a CVSS score of 6.5 the vulnerability is considered moderate. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting no known active exploits yet. To exploit the flaw an attacker must control content inside a container and run kubectl cp from a Windows machine. Once invoked, the attacker can write files to arbitrary paths on the local system, subject only to the permissions held by the Windows user running kubectl.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kubectl client to the latest release where the Windows tar handling flaw has been fixed.
  • Use only container images that are signed and verified or otherwise trusted, and ensure that the tar binary inside the image is benign or removed.
  • Run the kubectl client with the minimum privileges required, and enforce Windows ACL restrictions on critical directories to limit the impact of any remaining vulnerability.
  • If an immediate update is not possible, consider disabling tar execution inside containers or replacing the copy mechanism with an alternative that does not rely on tar extraction on the local host.

Generated by OpenCVE AI on September 28, 2026 at 12:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Kubernetes
Kubernetes kubernetes
Vendors & Products Kubernetes
Kubernetes kubernetes
Type Values Removed Values Added
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.
Title Kubernetes kubectl cp path traversal on Windows allows arbitrary file writes
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
kubernetes
Published
Updated
Sep 28, 2026, 6:09 PM
Reserved
Aug 10, 2026, 1:29 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 12:17 PM
Modified
Sep 29, 2026, 9:39 PM
Severity
Moderate
Public date
Sep 28, 2026, 11:38 AM