Skip to content

CVE-2019-11246 kubectl cp allows symlink directory traversal

MediumCVSS 6.5 EPSS 3.6%
Published
Updated
Exploit status
No public exploit known
Technology
KubernetesUbuntuDebian

Description

The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes runs tar inside the container to create a tar archive, 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. Kubernetes affected versions include versions prior to 1.12.9, versions prior to 1.13.6, versions prior to 1.14.2, and versions 1.1, 1.2, 1.4, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11.

Upgrade path

4 packages: 1 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.2; = 1.4; = 1.5 +14 more 1.13.9, 1.14.5, 1.15.2 Fixed

Affected products

ProductAffected versionsFixed in
Kubernetes >= 1.0.0, <= 1.12.10 No fix listed
Kubernetes >= 1.13.0, < 1.13.9 1.13.9
Kubernetes >= 1.14.0, < 1.14.5 1.14.5
Kubernetes >= 1.15.0, < 1.15.2 1.15.2
Kubernetes = 1.12.11-beta0 No fix listed
Kubernetes = prior to 1.12.9 No fix listed
Kubernetes = prior to 1.13.6 No fix listed
Kubernetes = prior to 1.14.2 No fix listed
Kubernetes = 1.1 No fix listed
Kubernetes = 1.2 No fix listed
Kubernetes = 1.4 No fix listed
Kubernetes = 1.5 No fix listed
Kubernetes = 1.6 No fix listed
Kubernetes = 1.7 No fix listed
Kubernetes = 1.8 No fix listed
Kubernetes = 1.9 No fix listed
Kubernetes = 1.10 No fix listed
Kubernetes = 1.11 No fix listed
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