CVE-2019-1002101

kubectl cp path traversal

State
Published
Severity
6.4 Medium
Published
Apr 1, 2019
Updated
Sep 16, 2024
Reserved
Apr 1, 2019

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.06.4 MediumCVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:Hdwf

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
KubernetesKubernetes
  • 1.1-1.10Affected
  • 1.11 to before 1.11.9Affected
  • 1.12 to before 1.12.7Affected
  • 1.13 to before 1.13.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.