CVE-2019-1002101
kubectl cp path traversal
- State
- Published
- Severity
- 6.4 Medium
- Published
- Apr 1, 2019
- Updated
- Sep 16, 2024
- Reserved
- Apr 1, 2019
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 6.4 Medium | CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H | dwf |
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
KubernetesKubernetes |
|
References
- https://github.com/kubernetes/kubernetes/pull/75037
- 107652vdb-entry
- RHBA-2019:0620vendor-advisory
- RHBA-2019:0619vendor-advisory
- RHBA-2019:0636vendor-advisory
- FEDORA-2019-bf800b1c04vendor-advisory
- [oss-security] 20190620 [ANNOUNCE] Incomplete fixes for CVE-2019-1002101, kubectl cp potential directory traversal - CVE-2019-11246mailing-list
- [oss-security] 20190805 Kubernetes v1.13.9, v1.14.5, v1.15.2 released to address CVE-2019-11247, CVE-2019-11249mailing-list
- FEDORA-2019-2b8ef08c95vendor-advisory
- https://www.twistlock.com/labs-blog/disclosing-directory-traversal-vulnerability-kubernetes-copy-cve-2019-1002101/
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.