CVE Vulnerabilities

CVE-2020-14004

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

Published: Jun 12, 2020 | Modified: Nov 16, 2022
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
4.6 MEDIUM
AV:L/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

An issue was discovered in Icinga2 before v2.12.0-rc1. The prepare-dirs script (run as part of the icinga2 systemd service) executes chmod 2750 /run/icinga2/cmd. /run/icinga2 is under control of an unprivileged user by default. If /run/icinga2/cmd is a symlink, then it will by followed and arbitrary files can be changed to mode 2750 by the unprivileged icinga2 user.

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
Icinga Icinga 2.0.0 (including) 2.11.3 (including)
Icinga Icinga 2.12.0-rc1 (including) 2.12.0-rc1 (including)
Icinga2 Ubuntu bionic *
Icinga2 Ubuntu eoan *
Icinga2 Ubuntu groovy *
Icinga2 Ubuntu hirsute *
Icinga2 Ubuntu impish *
Icinga2 Ubuntu kinetic *
Icinga2 Ubuntu lunar *
Icinga2 Ubuntu mantic *
Icinga2 Ubuntu trusty *
Icinga2 Ubuntu xenial *

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