Directory Traversal Affecting kubectl package, versions <0:1.12.10-1.0.10.el7


Severity

Recommended
high

Based on Oracle Linux security rating.

Threat Intelligence

EPSS
0.19% (57th 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ORACLE7-KUBECTL-2547330
  • published10 Apr 2022
  • disclosed29 Aug 2019

Introduced: 29 Aug 2019

CVE-2019-11249  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Oracle:7 kubectl to version 0:1.12.10-1.0.10.el7 or higher.
This issue was patched in ELSA-2019-4816.

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 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.

CVSS Scores

version 3.1