CVE Vulnerabilities

CVE-2019-11251

UNIX Symbolic Link (Symlink) Following

Published: Feb 03, 2020 | Modified: Nov 21, 2024
CVSS 3.x
5.7
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
5.3 MODERATE
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

The Kubernetes kubectl cp command in versions 1.1-1.12, and versions prior to 1.13.11, 1.14.7, and 1.15.4 allows a combination of two symlinks provided by tar output of a malicious container to place a file outside of the destination directory specified in the kubectl cp invocation. This could be used to allow an attacker to place a nefarious file using a symlink, outside of the destination tree.

Weakness

The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

Affected Software

NameVendorStart VersionEnd Version
KubernetesKubernetes1.13.0 (including)1.13.11 (excluding)
KubernetesKubernetes1.14.0 (including)1.14.7 (excluding)
KubernetesKubernetes1.15.0 (including)1.15.4 (excluding)
KubernetesKubernetes1.1-1.12 (including)1.1-1.12 (including)
Red Hat OpenShift Container Platform 3.11RedHatatomic-openshift-0:3.11.154-1.git.0.7a097ad.el7*
Red Hat OpenShift Container Platform 3.9RedHatatomic-openshift-0:3.9.102-1.git.0.6411f52.el7*
Red Hat OpenShift Container Platform 4.1RedHatopenshift-0:4.1.21-201910220952.git.0.493dbf6.el7*
Red Hat OpenShift Container Platform 4.1RedHatopenshift4/ose-cli:v4.1.21-201910230924*
KubernetesUbuntudisco*
KubernetesUbuntueoan*
KubernetesUbuntufocal*
KubernetesUbuntugroovy*
KubernetesUbuntuhirsute*
KubernetesUbuntuimpish*
KubernetesUbuntukinetic*
KubernetesUbuntulunar*
KubernetesUbuntumantic*
KubernetesUbuntuoracular*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References