CVE Vulnerabilities

CVE-2013-4214

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

Published: Nov 23, 2013 | Modified: Apr 11, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
6.3 MEDIUM
AV:L/AC:M/Au:N/C:N/I:C/A:C
RedHat/V2
2.1 MODERATE
AV:L/AC:L/Au:N/C:N/I:N/A:P
RedHat/V3
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

rss-newsfeed.php in Nagios Core 3.4.4, 3.5.1, and earlier, when MAGPIE_CACHE_ON is set to 1, allows local users to overwrite arbitrary files via a symlink attack on /tmp/magpie_cache.

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
NagiosNagios*3.5.1 (including)
NagiosNagios3.4.4 (including)3.4.4 (including)
OpenstackRedhat3.0 (including)3.0 (including)
OpenStack 3 for RHEL 6RedHatnagios-0:3.5.1-2.el6ost*
Nagios3Ubuntuquantal*
Nagios3Ubunturaring*
Nagios3Ubuntusaucy*
Nagios3Ubuntuupstream*

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