Rapid7 Vulnerability & Exploit Database

Kubernetes: CVE-2019-11246: kubectl cp potential directory traversal

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

Kubernetes: CVE-2019-11246: kubectl cp potential directory traversal

Severity
4
CVSS
(AV:N/AC:M/Au:N/C:N/I:P/A:N)
Published
08/29/2019
Created
09/12/2019
Added
09/11/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 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.

Solution(s)

  • kubernetes-upgrade-1_12_9
  • kubernetes-upgrade-1_13_6
  • kubernetes-upgrade-1_14_2

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

;