CVE-2019-11251

kubectl cp allows symlink directory traversal

Published Feb 3, 2020 CVSS 3.1 · 4.8 Medium EPSS 2.6% KEV · Not listed
Description
The Kubernetes kubectl cp command in versions 1.1-1.12, and versions prior to 1.13.11, 1.14.7, and 1.15.4 allows a combination of two symlinks provided by tar output of a malicious container to place a file outside of the destination directory specified in the kubectl cp invocation. This could be used to allow an attacker to place a nefarious file using a symlink, outside of the destination tree.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0974 The Kubernetes kubectl cp command in versions 1.1-1.12, and versions prior to 1.13.11, 1.14.7, and 1.15.4 allows a combination of two symlinks provided by tar output of a malicious container to place a file outside of the destination directory specified in the kubectl cp invocation. This could be used to allow an attacker to place a nefarious file using a symlink, outside of the destination tree.
Github GHSA Github GHSA GHSA-6qfg-8799-r575 Kubernetes kubectl cp Vulnerable to Symlink Attack
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
kubernetes
Published
Updated
Aug 4, 2024, 10:48 PM
Reserved
Apr 17, 2019, 12:00 AM
Status
Modified
Published
Feb 3, 2020, 4:15 PM
Modified
Jun 17, 2026, 2:12 AM
Severity
Moderate
Public date
Sep 18, 2019, 12:00 AM