ZeroHour

CVE-2019-15949

KEV PoC ×3large

Authenticated root RCE in Nagios XI via getprofile.sh

CISA: Nagios XI Remote Code Execution Vulnerability

CVSS 3.1
8.8 high
EPSS
77%p100
Published
()
KEV added
AI analysis

Nagios XI before 5.6.6 is vulnerable to command injection (CWE-78) that yields remote code execution as root: the getprofile.sh script runs as root via a passwordless sudo entry when a user downloads a system profile (profile.php?cmd=download), and that script executes the check_plugin binary, which is owned by the nagios user. An attacker who is logged into the web interface with permission to modify plugins, or who has access to the server as the nagios user, can modify check_plugin to insert arbitrary commands that then run with root privileges. Because the flaw requires either an authenticated web session with plugin-modification rights or existing access as the nagios user, it is most dangerous as an escalation path after an account or host has already been compromised. All Nagios XI deployments running versions prior to 5.6.6 are affected. The flaw is in the CISA Known Exploited Vulnerabilities catalog (added 2021-11-03), carries a high exploitation probability (EPSS ~77%), and public proof-of-concept exploits are available.

What to do: Upgrade Nagios XI to version 5.6.6 or later per vendor instructions, as required by CISA. As interim mitigation, restrict which accounts can modify plugins and limit access to the system profile download (profile.php?cmd=download), and inspect the check_plugin executable and the getprofile.sh sudoers entry for tampering. Review logs for system-profile downloads and unexpected root-level process activity to identify possible exploitation.

Affected
Nagios XIbefore 5.6.6
Estimated exposure
largetens of thousands of Nagios XI deployments (order of 10k–100k systems) — Nagios is among the most widely deployed network-monitoring platforms and public internet scans have long shown tens of thousands of exposed Nagios instances; the source data contains no install counts, so this is an order-of-magnitude…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Nagios XI before 5.6.6 allows remote command execution as root. The exploit requires access to the server as the nagios user, or access as the admin user via the web interface. The getprofile.sh script, invoked by downloading a system profile (profile.php?cmd=download), is executed as root via a passwordless sudo entry; the script executes check_plugin, which is owned by the nagios user. A user logged into Nagios XI with permissions to modify plugins, or the nagios user on the server, can modify the check_plugin executable and insert malicious commands to execute as root.

CISA Known Exploited Vulnerability
Affected
Nagios Nagios XI
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
nagios
Products
nagios xi
Weakness
CWE-78
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.