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.
Published: 2026-09-28
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Local Arbitrary File Write
Action: Upgrade Client
AI Analysis

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.

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

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 yet.

History

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 28 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 28 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
References

Mon, 28 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Kubernetes
Kubernetes kubernetes
Vendors & Products Kubernetes
Kubernetes kubernetes

Mon, 28 Sep 2026 11:45:00 +0000

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'}


Subscriptions

Kubernetes Kubernetes
cve-icon MITRE

Status: PUBLISHED

Assigner: kubernetes

Published:

Updated: 2026-09-28T18:09:01.767Z

Reserved: 2026-08-10T13:29:40.767Z

Link: CVE-2026-19444

cve-icon Vulnrichment

Updated: 2026-09-28T13:10:11.083Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-28T12:17:36.723

Modified: 2026-09-29T21:39:02.570

Link: CVE-2026-19444

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-28T11:38:10Z

Links: CVE-2026-19444 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-28T13:00:16Z

Weaknesses
  • CWE-22

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