CVE Vulnerabilities

CVE-2021-21602

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

Published: Jan 13, 2021 | Modified: Oct 25, 2023
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
4 MEDIUM
AV:N/AC:L/Au:S/C:P/I:N/A:N
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Ubuntu

Jenkins 2.274 and earlier, LTS 2.263.1 and earlier allows reading arbitrary files using the file browser for workspaces and archived artifacts by following symlinks.

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
Jenkins Jenkins * 2.263.1 (including)
Jenkins Jenkins * 2.274 (including)
Red Hat OpenShift Container Platform 3.11 RedHat jenkins-0:2.263.3.1612433584-1.el7 *
Red Hat OpenShift Container Platform 4.5 RedHat conmon-2:2.0.21-1.rhaos4.5.el7 *
Red Hat OpenShift Container Platform 4.5 RedHat jenkins-0:2.263.3.1612434332-1.el7 *
Red Hat OpenShift Container Platform 4.5 RedHat machine-config-daemon-0:4.5.0-202102050524.p0.git.2594.ff3b8c0.el8 *
Red Hat OpenShift Container Platform 4.5 RedHat openshift-0:4.5.0-202102050524.p0.git.0.9229406.el8 *
Red Hat OpenShift Container Platform 4.5 RedHat openshift-ansible-0:4.5.0-202102031005.p0.git.0.c6839a2.el7 *
Red Hat OpenShift Container Platform 4.5 RedHat openshift-clients-0:4.5.0-202102051529.p0.git.3612.61b096a.el8 *
Red Hat OpenShift Container Platform 4.5 RedHat runc-0:1.0.0-72.rhaos4.5.giteadfc6b.el8 *
Red Hat OpenShift Container Platform 4.6 RedHat jenkins-0:2.263.3.1612434510-1.el8 *

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