CVE-2021-25298
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/cloud-vm/cloud-vm.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 xi-5.7.5 contains an OS command injection vulnerability in the cloud-vm configuration wizard (cloud-vm.inc.php). The vulnerability results from improper sanitization of authenticated user input before it is used in OS command execution, allowing a remote authenticated attacker to execute arbitrary commands on the underlying system.
Mitigation
Upgrade to a patched version of Nagios XI. As a temporary measure, disable the cloud-vm configuration wizard if not required, or implement input validation and use of safe API functions (escapeshellarg) for any user-supplied data before command execution.