VYPR
Moderate severityNVD Advisory· Published Apr 1, 2019· Updated Sep 16, 2024

kubectl cp path traversal

CVE-2019-1002101

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
k8s.io/kubernetesGo
< 1.11.91.11.9
k8s.io/kubernetesGo
>= 1.12.0, < 1.12.71.12.7
k8s.io/kubernetesGo
>= 1.13.0, < 1.13.51.13.5

Affected products

28

Patches

Vulnerability mechanics

References

16

News mentions

0

No linked articles in our index yet.