Skip to content
OpenAdvisories
Medium · 4.8 CVE-2019-11249 EUVD-2019-2944GHSA-v8c4-hw4j-x4pr

kubectl cp allows symlink directory traversal

Published Aug 29, 2019 · Updated Sep 16, 2024 · Assigned by kubernetes

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.13.9, versions prior to 1.14.5, versions prior to 1.15.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, 1.12.

Affected products

VendorProductAffectedFixed
Kubernetes Kubernetes prior to 1.13.9, prior to 1.14.5, prior to 1.15.2, 1.1, 1.2, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 atomic-enterprise-service-catalog +1 1:4.1.16-201909090609.git.1.cc4acc1.el7 RHBA-2019:2794
Red Hat OpenShift 4 jenkins-2-plugins 4.1.1567784275-1.el7 RHBA-2019:2794
Red Hat OpenShift 4 openshift +3 4.1.16-201909090609.git.0.2f97059.el7 RHBA-2019:2794
Red Hat OpenShift 4 openshift-ansible 4.1.16-201909090609.git.162.a0800db.el7 RHBA-2019:2794
Red Hat OpenShift 3 ansible-service-broker +3 1:1.3.23-2.el7 RHBA-2019:2816
Red Hat OpenShift 3 atomic-openshift +13 3.9.102-1.git.0.6411f52.el7 RHSA-2019:3811, RHSA-2019:3239
Red Hat OpenShift 3 atomic-openshift-hyperkube +1 3.10.181-1.git.0.3ab4b3d.el7 RHSA-2019:3239
ReleasePackageFixed inAdvisory
Alpine v3.24 k3s 0.8.0-r0 —
Alpine v3.23 k3s 0.8.0-r0 —
Alpine v3.22 k3s 0.8.0-r0 —
Alpine v3.21 k3s 0.8.0-r0 —
Alpine v3.20 k3s 0.8.0-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 k3s 0.8.0-r0 —
Alpine v3.18 k3s 0.8.0-r0 —
Alpine v3.17 k3s 0.8.0-r0 —
Alpine v3.16 k3s 0.8.0-r0 —
Alpine v3.15 k3s 0.8.0-r0 —
Alpine v3.14 k3s 0.8.0-r0 —
Alpine v3.13 k3s 0.8.0-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 kubeadm +2 1.12.10-1.0.10.el7 ELSA-2019-4816
Oracle Linux 7 kubeadm-ha-setup 0.0.2-1.0.68.el7 ELSA-2019-4816
Oracle Linux 7 kubeadm-upgrade 0.0.1-1.0.27.el7 ELSA-2019-4816

Advisories 6

References