ADVISORIES

GitHub Advisory Database

GHSA-6qfg-8799-r575

Kubernetes kubectl cp Vulnerable to Symlink Attack

Details

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.

Affected packages

EcosystemPackageAffected versions
Gok8s.io/kubernetes
From 1.13.10 before 1.13.11 (fixed in 1.13.11)
Gok8s.io/kubernetes
From 1.14.6 before 1.14.7 (fixed in 1.14.7)
Gok8s.io/kubernetes
From 1.15.3 before 1.16.0 (fixed in 1.16.0)

References