CVE-2019-11249
kubectl cp allows symlink directory traversal
Reported by kubernetes · Published August 29, 2019
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.13.9, versions prior to 1.14.5, versions prior to 1.15.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, 1.12.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| k3s | Alpine | 0.8.0-r0 |
| 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.13.9, prior to 1.14.5, prior to 1.15.2 |
| alpine | k3s | 0 |
| Kubernetes | Kubernetes | 1.13.9, 1.14.5, 1.15.2 |
| github.com | kubernetes/kubernetes/pkg/kubectl/cmd/cp | 1.0.0, 1.13.0, 1.14.0 |
Timeline
- Aug 29, 2019 CVE Published
- Nov 7, 2019 CVE Updated
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (6 in total, the first dated here)
- Sep 16, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-11249
vulnetix vdb fixes CVE-2019-11249
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-11249/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- v1.13.9, v1.14.5, v1.15.2 released to address CVE-2019-11247, CVE-2019-11249 mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- RHBA-2019:2816 vendor-advisoryx_refsource_REDHAT
- RHBA-2019:2794 vendor-advisoryx_refsource_REDHAT
- RHBA-2019:2824 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3239 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3811 vendor-advisoryx_refsource_REDHAT
- https://nvd.nist.gov/vuln/detail/CVE-2019-11249 advisory