Rapid7 Vulnerability & Exploit Database

Red Hat OpenShift: CVE-2019-1002101: kubernetes: Mishandling of symlinks allows for arbitrary file write via `kubectl cp`

Back to Search

Red Hat OpenShift: CVE-2019-1002101: kubernetes: Mishandling of symlinks allows for arbitrary file write via `kubectl cp`

Severity
6
CVSS
(AV:N/AC:M/Au:N/C:N/I:P/A:P)
Published
04/01/2019
Created
06/25/2019
Added
06/24/2019
Modified
02/12/2020

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.

Solution(s)

  • linuxrpm-upgrade-atomic-openshift

References

  • linuxrpm-upgrade-atomic-openshift

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;