CVE-2019-1002101
April 01, 2019
The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes creates a tar inside the container, 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. The untar function can both create and follow symbolic links. The issue is resolved in kubectl v1.11.9, v1.12.7, v1.13.5, and v1.14.0.
Affected Packages
k8s.io/kubernetes (GO):
Affected version(s) >=v0.0.0-20150129005104-7e134cb73dfe <v1.11.9Fix Suggestion:
Update to version v1.11.9k8s.io/kubernetes (GO):
Affected version(s) >=v1.12.0 <v1.12.7Fix Suggestion:
Update to version v1.12.7k8s.io/kubernetes (GO):
Affected version(s) >=v1.13.0 <v1.13.5Fix Suggestion:
Update to version v1.13.5Related Resources (17)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.4
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
HIGH
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
CVSS v2
Base Score:
5.8
Access Vector
NETWORK
Access Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
Weakness Type (CWE)
Improper Link Resolution Before File Access ('Link Following')
EPSS
Base Score:
49.27