CVE-2019-11249 kubectl cp allows symlink directory traversal
MediumCVSS 6.5
EPSS 3.7%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Kubernetes | >= 1.0.0, <= 1.12.10 | No fix listed |
| Kubernetes | >= 1.13.0, < 1.13.9 | 1.13.9 |
| Kubernetes | >= 1.14.0, < 1.14.5 | 1.14.5 |
| Kubernetes | >= 1.15.0, < 1.15.2 | 1.15.2 |
| Kubernetes | = 1.12.11-beta0 | No fix listed |
| redhat openshift container platform | = 3.9 | No fix listed |
| redhat openshift container platform | = 3.10 | No fix listed |
| redhat openshift container platform | = 3.11 | No fix listed |
| redhat openshift container platform | = 4.1 | No fix listed |
| alpine/k3s(Alpine:v3.13) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.14) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.15) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.16) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.17) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.18) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.19) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.20) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.21) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.22) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.23) | < 0.8.0-r0 | 0.8.0-r0 |
| alpine/k3s(Alpine:v3.24) | < 0.8.0-r0 | 0.8.0-r0 |
| Kubernetes | = prior to 1.13.9 | No fix listed |
| Kubernetes | = prior to 1.14.5 | No fix listed |
| Kubernetes | = prior to 1.15.2 | No fix listed |
| Kubernetes | = 1.1 | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| Kubernetes | = 1.2 | No fix listed |
| Kubernetes | = 1.4 | No fix listed |
| Kubernetes | = 1.5 | No fix listed |
| Kubernetes | = 1.6 | No fix listed |
| Kubernetes | = 1.7 | No fix listed |
| Kubernetes | = 1.8 | No fix listed |
| Kubernetes | = 1.9 | No fix listed |
| Kubernetes | = 1.10 | No fix listed |
| Kubernetes | = 1.11 | No fix listed |
| Kubernetes | = 1.12 | No fix listed |
References
- RHBA-2019:2794 third-party-advisory vendor-advisory
- RHBA-2019:2816 third-party-advisory vendor-advisory
- RHBA-2019:2824 third-party-advisory vendor-advisory
- RHSA-2019:3239 third-party-advisory vendor-advisory
- RHSA-2019:3811 third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- v1.13.9, v1.14.5, v1.15.2 released to address CVE-2019-11247, CVE-2019-11249 mailing-list patch third-party-advisory
- security.netapp.com third-party-advisory
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2019-11249 vendor-advisory