CVE-2021-25297
Description
Nagios XI version xi-5.7.5 is affected by OS command injection. The vulnerability exists in the file /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php due to improper sanitization of authenticated user-controlled input by a single HTTP request, which can lead to OS command injection on the Nagios XI server.
Summary dbcve.org
Nagios XI version 5.7.5 contains an OS command injection vulnerability in the switch configuration wizard component (switch.inc.php). The vulnerability stems from improper sanitization of authenticated user-controlled input passed through a single HTTP request, allowing an authenticated attacker to inject and execute arbitrary OS commands on the server.
Mitigation
Upgrade to a patched version of Nagios XI; alternatively, sanitize/validate all user input in the affected switch.inc.php file using strict allowlist validation and escape shell metacharacters before passing data to system calls.