CVE-2019-1002101 kubectl cp path traversal
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- KubernetesUbuntuDebianRed Hat
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.
Upgrade path
6 packages: 2 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/kubernetes(Ubuntu 22.04) | = 1.0; All versions | No fix listed | No fix yet |
| ubuntu/kubernetes(Ubuntu 24.04) | = 1.0; All versions | No fix listed | No fix yet |
| ubuntu/kubernetes(Ubuntu Pro 20.04) | = 1.0; All versions | No fix listed | No fix yet |
| Kubernetes | = 1.1-1.10; = 1.14.0; >= 1.11, < 1.11.9; >= 1.11.0, < 1.11.9 +4 more | 1.11.9, 1.12.7, 1.13.5 | Fixed |
| Kubernetes(Go) | < 1.11.9; >= 1.12.0, < 1.12.7; >= 1.13.0, < 1.13.5 | 1.11.9, 1.12.7, 1.13.5 | Fixed |
| redhat openshift container platform | = 3.9; = 3.10; = 3.11 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Kubernetes(Go) | < 1.11.9 | 1.11.9 |
| Kubernetes(Go) | >= 1.12.0, < 1.12.7 | 1.12.7 |
| Kubernetes(Go) | >= 1.13.0, < 1.13.5 | 1.13.5 |
| Kubernetes | >= 1.11.0, < 1.11.9 | 1.11.9 |
| Kubernetes | >= 1.12.0, < 1.12.7 | 1.12.7 |
| Kubernetes | >= 1.13.0, < 1.13.5 | 1.13.5 |
| Kubernetes | = 1.14.0 | No fix listed |
| redhat openshift container platform | = 3.9 | No fix listed |
| redhat openshift container platform | = 3.10 | No fix listed |
| redhat openshift container platform | = 3.11 | No fix listed |
| Kubernetes | = 1.1-1.10 | No fix listed |
| Kubernetes | >= 1.11, < 1.11.9 | 1.11.9 |
| Kubernetes | >= 1.12, < 1.12.7 | 1.12.7 |
| Kubernetes | >= 1.13, < 1.13.5 | 1.13.5 |
| ubuntu/kubernetes(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:Pro:20.04) | = 1.0 | No fix listed |
| ubuntu/kubernetes(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:22.04) | = 1.0 | No fix listed |
| ubuntu/kubernetes(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:24.04) | = 1.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com patch
- RHBA-2019:0619 vendor-advisory
- RHBA-2019:0620 vendor-advisory
- RHBA-2019:0636 vendor-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.twistlock.com
- [oss-security] 20190620 [ANNOUNCE] Incomplete fixes for CVE-2019-1002101, kubectl cp potential directory traversal - CVE-2019-11246 mailing-list
- [oss-security] 20190805 Kubernetes v1.13.9, v1.14.5, v1.15.2 released to address CVE-2019-11247, CVE-2019-11249 mailing-list
- 107652 third-party-advisory vdb-entry
- github.com vendor-advisory
- FEDORA-2019-bf800b1c04 vendor-advisory
- FEDORA-2019-2b8ef08c95 vendor-advisory
- access.redhat.com third-party-advisory
- Debian Security Tracker CVE-2019-1002101 vendor-advisory
- CVE-2019-11249 vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking