CVE Vulnerabilities

CVE-2017-1002101

Improper Link Resolution Before File Access ('Link Following')

Published: Mar 13, 2018 | Modified: Oct 09, 2019
CVSS 3.x
9.6
CRITICAL
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
CVSS 2.x
5.5 MEDIUM
AV:N/AC:L/Au:S/C:P/I:P/A:N
RedHat/V2
RedHat/V3
Ubuntu

In Kubernetes versions 1.3.x, 1.4.x, 1.5.x, 1.6.x and prior to versions 1.7.14, 1.8.9 and 1.9.4 containers using subpath volume mounts with any volume type (including non-privileged pods, subject to file permissions) can access files/directories outside of the volume, including the hosts filesystem.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Kubernetes Kubernetes 1.3.0 (including) 1.3.10 (including)
Kubernetes Kubernetes 1.4.0 (including) 1.4.12 (including)
Kubernetes Kubernetes 1.5.0 (including) 1.5.8 (including)
Kubernetes Kubernetes 1.6.0 (including) 1.6.13 (including)
Kubernetes Kubernetes 1.7.0 (including) 1.7.14 (excluding)
Kubernetes Kubernetes 1.8.0 (including) 1.8.9 (excluding)
Kubernetes Kubernetes 1.9.0 (including) 1.9.4 (excluding)

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