kubectl cp path traversal
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes creates a tar inside the container, copies it over the network, and kubectl unpacks it on the user’s machine. If the tar binary in the container is malicious, it could run any code and output unexpected, malicious results. An attacker could use this to write files to any path on the user’s machine when kubectl cp is called, limited only by the system permissions of the local user. The untar function can both create and follow symbolic links. The issue is resolved in kubectl v1.11.9, v1.12.7, v1.13.5, and v1.14.0.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Kubernetes | Kubernetes | 1.1-1.10; 1.11 to before 1.11.9; 1.12 to before 1.12.7; 1.13 to before 1.13.5 | 1.11.9, 1.12.7, 1.13.5 | Patch available | CNA |
| — | k8s.io/kubernetes (Go) | before 1.11.9 | 1.11.9 | Patch available | GHSA-34jx-wx69-9x8v |
| — | k8s.io/kubernetes (Go) | 1.12.0 to before 1.12.7 | 1.12.7 | Patch available | GHSA-34jx-wx69-9x8v |
| — | k8s.io/kubernetes (Go) | 1.13.0 to before 1.13.5 | 1.13.5 | Patch available | GHSA-34jx-wx69-9x8v |
- Kubernetes VendorKubernetes Affected 1.1-1.10; 1.11 to before 1.11.9; 1.12 to before 1.12.7; 1.13 to before 1.13.5 Fixed in 1.11.9, 1.12.7, 1.13.5 Patch available CNA
- k8s.io/kubernetes (Go) Vendor— Affected before 1.11.9 Fixed in 1.11.9 Patch available GHSA-34jx-wx69-9x8v
- k8s.io/kubernetes (Go) Vendor— Affected 1.12.0 to before 1.12.7 Fixed in 1.12.7 Patch available GHSA-34jx-wx69-9x8v
- k8s.io/kubernetes (Go) Vendor— Affected 1.13.0 to before 1.13.5 Fixed in 1.13.5 Patch available GHSA-34jx-wx69-9x8v
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:* | 1.11.0 to before 1.11.9; 1.12.0 to before 1.12.7; 1.13.0 to before 1.13.5 | Vulnerable | Kubernetes |
| cpe:2.3:a:kubernetes:kubernetes:1.14.0:*:*:*:*:*:*:* | 1.14.0 | Vulnerable | Kubernetes |
| cpe:2.3:a:redhat:openshift_container_platform:3.9:*:*:*:*:*:*:* | 3.9 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:openshift_container_platform:3.10:*:*:*:*:*:*:* | 3.10 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:* | 3.11 | Vulnerable | Red Hat |
- cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:* Versions 1.11.0 to before 1.11.9; 1.12.0 to before 1.12.7; 1.13.0 to before 1.13.5 Vulnerable ·Kubernetes
- cpe:2.3:a:kubernetes:kubernetes:1.14.0:*:*:*:*:*:*:* Versions 1.14.0 Vulnerable ·Kubernetes
- cpe:2.3:a:redhat:openshift_container_platform:3.9:*:*:*:*:*:*:* Versions 3.9 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:openshift_container_platform:3.10:*:*:*:*:*:*:* Versions 3.10 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:* Versions 3.11 Vulnerable ·Red Hat
Remediation
- Fix · CNA Kubernetes (Kubernetes) Fixed in 1.11.9, 1.12.7, 1.13.5
- Fix · GHSA-34jx-wx69-9x8v k8s.io/kubernetes (Go) Fixed in 1.11.9 Advisory →
- Fix · GHSA-34jx-wx69-9x8v k8s.io/kubernetes (Go) Fixed in 1.12.7 Advisory →
- Fix · GHSA-34jx-wx69-9x8v k8s.io/kubernetes (Go) Fixed in 1.13.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Container Platform 3.10 | Fixed | — |
| Red Hat OpenShift Container Platform 3.11 | Fixed | — |
| Red Hat OpenShift Container Platform 3.9 | Fixed | — |
Not affected: 6 products
- Red Hat OpenShift Container Platform 3.4
- Red Hat OpenShift Container Platform 3.5
- Red Hat OpenShift Container Platform 3.6
- Red Hat OpenShift Container Platform 3.7
- Red Hat OpenShift Container Platform 4
- Red Hat Storage 3
Timeline
- 2026-10-02 Threatist record created from CVE-2019-1002101
- 2026-10-03 Alias added: GHSA-34jx-wx69-9x8v
References
Advisory 7
Other 7
- [oss-security] 20190620 [ANNOUNCE] Incomplete fixes for CVE-2019-1002101, kubectl cp potential directory traversal - CVE-2019-11246
- [oss-security] 20190805 Kubernetes v1.13.9, v1.14.5, v1.15.2 released to address CVE-2019-11247, CVE-2019-11249
- https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/
- https://github.com/kubernetes/kubernetes/commit/47063891dd782835170f500a83f37cc98c3c1013
- https://lists.fedoraproject.org/archives/list/[email protected]/message/BPV2RE5RMOGUVP5WJMXKQJZUBBLAFZPZ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/QZB7E3DOZ5WDG46XAIU6K32CXHXPXB2F
- https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101
More Kubernetes vulnerabilities
- TI-2018-16130 Improper privilege management in Kubernetes CVSS 3.0CRITICAL 9.8
- TI-2019-08418 Kubernetes kubelet exposes /debug/pprof info on healthz port CVSS 3.1HIGH 8.2
- TI-2023-05086 Kubernetes - Windows nodes - Insufficient input sanitization in in-tree storage plugin leads to privilege escalation CVSS 3.1HIGH 8.8
- TI-2023-03433 Kubernetes - Windows nodes - Insufficient input sanitization leads to privilege escalation CVSS 3.1HIGH 8.8
- TI-2023-02285 Bypass of seccomp profile enforcement CVSS 3.1MEDIUM 5.5
- TI-2017-14755 Link following in Kubernetes CVSS 3.0CRITICAL 9.6
Sources
- CVE-2019-1002101 · CVE Program
- CVE-2019-1002101 · NVD
- FIRST EPSS
- GHSA-34jx-wx69-9x8v · GitHub Advisory Database · CC BY 4.0
- CVE-2019-1002101 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences