CVE-2019-1002101

Medium

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.

SeverityMedium
CVSS6.4
Exploit probability—
ProductKubernetes
PublishedApr 1, 2019
First seenApr 1, 2019

How to fix

Affected products

ProductAffected versionsFixed in
kubernetes kubernetes1.11.0 ≤ v < 1.11.9, 1.12.0 ≤ v < 1.12.7, 1.13.0 ≤ v < 1.13.5, 1.14.01.11.9, 1.12.7, 1.13.5
redhat openshift_container_platform3.9, 3.10, 3.11—
k8s.io/kubernetesGov < 1.11.9, 1.12.0 ≤ v < 1.12.7, 1.13.0 ≤ v < 1.13.51.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.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.