CVE-2019-1002101

kubectl cp path traversal

Published Apr 1, 2019 CVSS 3.0 · 6.4 Medium EPSS 12.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-34jx-wx69-9x8v Symlink Attack in kubectl cp
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
dwf
Published
Updated
Sep 16, 2024, 8:46 PM
Reserved
Apr 1, 2019, 12:00 AM
Status
Modified
Published
Apr 1, 2019, 2:29 PM
Modified
Jun 17, 2026, 2:09 AM
Severity
Moderate
Public date
Mar 28, 2019, 12:00 AM