Kubernetes kubectl cp path traversal on Windows allows arbitrary file writes (Kubernetes Kubernetes)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- kubernetes
- Affected products
- Kubernetes · Kubernetes
- NVD status
- Awaiting Analysis
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.
Weaknesses (CWE)
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory
Credits
- Moriel Harush reporter
- Vyom Yadav analyst
- Maciej Szulik remediation reviewer
- Marly Salazar remediation developer
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N | kubernetes |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N | NVD · jordan@liggitt.net (Secondary) |
European references
- ENISA EUVD · EUVD-2026-88223
- GCVE · GCVE-0-2026-19444
CERT-FR advisories
- CERTFR-2026-AVI-1472 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Kubernetes · Kubernetes | affected : ≥ v1.36.0 ≤ v1.36.4 affected : ≥ v1.35.0 ≤ v1.35.8 affected : ≥ v1.34.0 ≤ v1.34.11 unknown : ≥ v1.0 ≤ v1.33.13 Other versions : unaffected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |