Skip to content

CVE-2019-1002101 kubectl cp path traversal

MediumCVSS 5.5 EPSS 12.8%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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