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.
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
ABCFC052-EAAD-4964-8B50-1D8A04A73D75
1.12.10
1.0.0
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
14126DA1-4F03-43D3-BD14-0BE06EC8F4E5
1.13.9
1.13.0
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
E10D117F-F0C4-4355-98E3-BB4A401258DE
1.14.5
1.14.0
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
2BECD4DB-0E6B-4C4A-B714-F6E4724BD0F6
1.15.2
1.15.0
cpe:2.3:a:kubernetes:kubernetes:1.12.11:beta0:*:*:*:*:*:*
3EAFE32A-5295-4A4B-9EC1-A1DB3CAE3DC8
OR
cpe:2.3:a:redhat:openshift_container_platform:3.9:*:*:*:*:*:*:*
309CB6F8-F178-454C-BE97-787F78647C28
cpe:2.3:a:redhat:openshift_container_platform:3.10:*:*:*:*:*:*:*
4DBCD38F-BBE8-488C-A8C3-5782F191D915
cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:*
2F87326E-0B56-4356-A889-73D026DB1D4B
cpe:2.3:a:redhat:openshift_container_platform:4.1:*:*:*:*:*:*:*
064E7BDD-4EF0-4A0D-A38D-8C75BAFEDCEF
OR
[CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N](https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N)

A third issue was discovered with the Kubernetes `kubectl cp` command that could enable a directory traversal such that a malicious container could replace or create files on a user’s workstation. The vulnerability is a client-side defect and requires user interaction to be exploited.
 
**Vulnerable versions:**
Kubernetes 1.0.x-1.12.x
Kubernetes 1.13.0-1.13.8
Kubernetes 1.14.0-1.14.4
Kubernetes 1.15.0-1.15.1
 
**Vulnerable configurations:**
All `kubectl` clients running a vulnerable version and using the `cp` operation.
 
**Vulnerability impact:**
A malicious user can potentially create or overwrite files outside of the destination directory of the `kubectl cp` operation.
 
**Mitigations prior to upgrading:**
Avoid using `kubectl cp` with any untrusted workloads.
 
**Fixed versions:**
Fixed in v1.13.9 by #80871
Fixed in v1.14.5 by #80870
Fixed in v1.15.2 by #80869
Fixed in master by #80436
 
**Fix impact:**
The `kubectl cp` function is prevented from creating or modifying files outside the destination directory.

**Acknowledgements:**
This issue was discovered by Yang Yang of Amazon, who also provided a patch. Thanks also to the release managers for creating the security releases.
CVE-2019-11249: Incomplete fixes for CVE-2019-1002101 and CVE-2019-11246, kubectl cp potential directory traversal
This is a GitHub Issue
repo:kubernetes
owner:kubernetes
Title : CVE-2019-11249: Incomplete fixes for CVE-2019-1002101 and CVE-2019-11246, kubectl cp potential directory traversal
Issue date:

--- start body ---
[CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N](https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N)

A third issue was discovered with the Kubernetes `kubectl cp` command that could enable a directory traversal such that a malicious container could replace or create files on a user’s workstation. The vulnerability is a client-side defect and requires user interaction to be exploited.
 
**Vulnerable versions:**
Kubernetes 1.0.x-1.12.x
Kubernetes 1.13.0-1.13.8
Kubernetes 1.14.0-1.14.4
Kubernetes 1.15.0-1.15.1
 
**Vulnerable configurations:**
All `kubectl` clients running a vulnerable version and using the `cp` operation.
 
**Vulnerability impact:**
A malicious user can potentially create or overwrite files outside of the destination directory of the `kubectl cp` operation.
 
**Mitigations prior to upgrading:**
Avoid using `kubectl cp` with any untrusted workloads.
 
**Fixed versions:**
Fixed in v1.13.9 by #80871
Fixed in v1.14.5 by #80870
Fixed in v1.15.2 by #80869
Fixed in master by #80436
 
**Fix impact:**
The `kubectl cp` function is prevented from creating or modifying files outside the destination directory.

**Acknowledgements:**
This issue was discovered by Yang Yang of Amazon, who also provided a patch. Thanks also to the release managers for creating the security releases.
--- end body ---

comments :
--- start comments ---

--- end comments ---