CVE-2019-15949 Nagios XI Remote Code Execution
Authenticated users or local nagios users can modify plugin executables to achieve remote code execution as root via a sudo misconfiguration.
- Exploited in the wild
- Since 3 Nov 2021
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2019-15949?
CVE-2019-15949 is a high-severity command injection vulnerability in Nagios Nagios Xi, published on 5 Sep 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2019-15949?
It affects 1 product.
Products include Nagios Nagios Xi.
How do I fix CVE-2019-15949?
No fix has been published for CVE-2019-15949 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2019-15949 being exploited?
Yes. Attackers have exploited CVE-2019-15949 in the wild since at least 3 Nov 2021.
Public exploit code: 2 Metasploit modules, 2 Exploit-DB entries and 1 proofs of concept on GitHub.
Other vulnerabilities in Nagios Nagios Xi
Sources
Also known as GHSA-8qv6-943v-r8gm.