CVE-2019-11246
kubectl cp allows symlink directory traversal
Reported by kubernetes · Published August 29, 2019
github.com/kubernetes/kubernetes/pkg/kubectl/cmd/cp is fixed in 1.15.2, 1.14.5, 1.13.9 and 1 more (Go Modules)
The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes runs tar inside the container to create a tar archive, 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. Kubernetes affected versions include versions prior to 1.12.9, versions prior to 1.13.6, versions prior to 1.14.2, and versions 1.1, 1.2, 1.4, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/kubernetes/kubernetes/pkg/kubectl/cmd/cp | Go Modules | 1.15.2, 1.14.5, 1.13.9, 1.12.11 |
| kubernetes | kubernetes | 1.15.2, 1.14.5, 1.13.9, 1.12.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Kubernetes | Kubernetes | prior to 1.12.9, prior to 1.13.6, prior to 1.14.2 |
| github.com | kubernetes/kubernetes/pkg/kubectl/cmd/cp | 1.0.0, 1.13.0, 1.14.0 |
| Kubernetes | Kubernetes | 1.2, 1.4, 1.5 |
Timeline
- Aug 29, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory
- Sep 16, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-11246
vulnetix vdb fixes CVE-2019-11246
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-11246/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [ANNOUNCE] Incomplete fixes for CVE-2019-1002101, kubectl cp potential directory traversal - CVE-2019-11246 mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2019-11246 advisory