Link Following Affecting kubectl package, versions <0:1.12.7-1.1.2.el7


Severity

Recommended
high

Based on Oracle Linux security rating.

Threat Intelligence

EPSS
0.15% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ORACLE7-KUBECTL-2545872
  • published10 Apr 2022
  • disclosed1 Apr 2019

Introduced: 1 Apr 2019

CVE-2019-1002101  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade Oracle:7 kubectl to version 0:1.12.7-1.1.2.el7 or higher.
This issue was patched in ELSA-2019-4593.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kubectl package and not the kubectl package as distributed by Oracle. See How to fix? for Oracle:7 relevant fixed versions and status.

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.