CVE Vulnerabilities

CVE-2020-14004

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

Published: Jun 12, 2020 | Modified: Nov 21, 2024
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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
IcingaIcinga2.0.0 (including)2.11.3 (including)
IcingaIcinga2.12.0-rc1 (including)2.12.0-rc1 (including)
Icinga2Ubuntubionic*
Icinga2Ubuntueoan*
Icinga2Ubuntufocal*
Icinga2Ubuntugroovy*
Icinga2Ubuntuhirsute*
Icinga2Ubuntuimpish*
Icinga2Ubuntukinetic*
Icinga2Ubuntulunar*
Icinga2Ubuntumantic*
Icinga2Ubuntuoracular*
Icinga2Ubuntuplucky*
Icinga2Ubuntutrusty*
Icinga2Ubuntuxenial*

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