CVE-2019-1002101
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.
How to fix
- kubernetes kubernetes1.11.9, 1.12.7, 1.13.5 or later
- k8s.io/kubernetes1.11.9, 1.12.7, 1.13.5 or later
- access.redhat.com/errata/RHBA-2019:0620
- access.redhat.com/errata/RHBA-2019:0619
- access.redhat.com/errata/RHBA-2019:0636
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BPV2RE5RMOGUVP5WJMXKQJZUBBLAFZPZ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QZB7E3DOZ5WDG46XAIU6K32CXHXPXB2F/
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| kubernetes kubernetes | 1.11.0 ≤ v < 1.11.9, 1.12.0 ≤ v < 1.12.7, 1.13.0 ≤ v < 1.13.5, 1.14.0 | 1.11.9, 1.12.7, 1.13.5 |
| redhat openshift_container_platform | 3.9, 3.10, 3.11 | — |
| k8s.io/kubernetesGo | v < 1.11.9, 1.12.0 ≤ v < 1.12.7, 1.13.0 ≤ v < 1.13.5 | 1.11.9, 1.12.7, 1.13.5 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.