Описание
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.
A flaw was found in Kubernetes via the mishandling of symlinks when copying files from a running container. An attacker could exploit this by convincing a user to use kubectl cp
or oc cp
with a malicious container, allowing for arbitrary files to be overwritten on the host machine.
Отчет
This issue affects Kubernetes starting from version 1.9. OpenShift Container Platform (OCP) versions 3.9 and later are also affected. This issue did not affect the version of Kubernetes(embedded in heketi) shipped with Red Hat Gluster Storage 3 as it does not contain the vulnerable code.
Затронутые пакеты
Платформа | Пакет | Состояние | Рекомендация | Релиз |
---|---|---|---|---|
Red Hat OpenShift Container Platform 3.4 | atomic-openshift | Not affected | ||
Red Hat OpenShift Container Platform 3.5 | atomic-openshift | Not affected | ||
Red Hat OpenShift Container Platform 3.6 | atomic-openshift | Not affected | ||
Red Hat OpenShift Container Platform 3.7 | atomic-openshift | Not affected | ||
Red Hat OpenShift Container Platform 4 | openshift | Not affected | ||
Red Hat Storage 3 | heketi | Not affected | ||
Red Hat OpenShift Container Platform 3.10 | atomic-enterprise-service-catalog | Fixed | RHBA-2019:0620 | 09.04.2019 |
Red Hat OpenShift Container Platform 3.10 | atomic-openshift | Fixed | RHBA-2019:0620 | 09.04.2019 |
Red Hat OpenShift Container Platform 3.10 | atomic-openshift-descheduler | Fixed | RHBA-2019:0620 | 09.04.2019 |
Red Hat OpenShift Container Platform 3.10 | atomic-openshift-dockerregistry | Fixed | RHBA-2019:0620 | 09.04.2019 |
Показывать по
Дополнительная информация
Статус:
EPSS
5.3 Medium
CVSS3
Связанные уязвимости
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.
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.
The kubectl cp command allows copying files between containers and the ...
ELSA-2019-4593: kubernetes kubeadm-upgrade kubeadm-ha-setup security update (IMPORTANT)
EPSS
5.3 Medium
CVSS3