CVE-2019-11249: kubectl cp allows symlink directory traversal
A third issue was discovered with the Kubernetes kubectl cp command that could enable a directory traversal such that a malicious container could replace or create files on a user’s workstation. The vulnerability is a client-side defect and requires user interaction to be exploited.
This vulnerability allows a malicious container to cause a file to be created or replaced on the client computer when the client uses the kubectl cp operation. The vulnerability is a client-side defect and requires user interaction to be exploited.
Upstream Issue:
https://github.com/kubernetes/kubernetes/issues/80984
External References:
https://groups.google.com/forum/#!topic/kubernetes-security-discuss/Vf31dXp0EJc
Other sources
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 Software
Remediation
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2019-11249?
CVE-2019-11249 is a vulnerability that allows an attacker to copy malicious files from a container to the user's machine using the kubectl cp command.
What is the severity of CVE-2019-11249?
CVE-2019-11249 has a severity level of medium.
How does CVE-2019-11249 affect Kubernetes?
CVE-2019-11249 affects Kubernetes by allowing an attacker to execute a malicious tar binary inside a container during the file copying process.
Which versions of Kubernetes are affected by CVE-2019-11249?
Kubernetes versions 1.13.9, 1.14.5, 1.15.2, and 1.16.0 are affected by CVE-2019-11249.
How can I fix CVE-2019-11249?
To fix CVE-2019-11249, upgrade Kubernetes to version 1.13.9, 1.14.5, 1.15.2, or 1.16.0.