Skip to main content
← All vulnerabilities
CVE-2019-1002101GO-2022-0782GHSA-34JX-WX69-9X8V

kubectl cp path traversal

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.11.9, 1.12.7, 1.13.5
1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Kubernetes Kubernetes

    From 1.11 · fixed in 1.11.9; From 1.12 · fixed in 1.12.7; From 1.13 · fixed in 1.13.5

  • k8s.io/kubernetesGo

    fixed in 1.11.9; From 1.12.0 · fixed in 1.12.7; From 1.13.0 · fixed in 1.13.5

  • k8s.io/kubernetesGo

    fixed in 1.11.9

  • k8s.io/kubernetesGo

    From 1.12.0 · fixed in 1.12.7

  • k8s.io/kubernetesGo

    From 1.13.0 · fixed in 1.13.5

References 11

GitHub · kubernetes/kubernetes

securityfocus.com

access.redhat.com

lists.fedoraproject.org

openwall.com

twistlock.com

GitHub · brompwnie/CVE-2019-1002101-Helpers