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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 2 modules
-
Nagios XI Scanner
auxiliary/scanner/http/nagios_xi_scanner
-
Nagios XI Prior to 5.6.6 getprofile.sh Authenticated Remote Command Execution
exploit/linux/http/nagios_xi_plugins_check_plugin_authenticated_rce
Exploit-DB 2
- Nagios Xi 5.6.6 - Authenticated Remote Code Execution (RCE) EDB-52138 · webapps · Apr 8, 2025
- Nagios XI - Authenticated Remote Command Execution (Metasploit) EDB-48191 · remote · Mar 10, 2020 · verified
GitHub 1 repository
-
plur1bu5/Nagios-CVE-2019-15949-RCE ★ 0 · Mar 17, 2026
a PoC for the Nagios CVE-2019-15949 rce in python
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.