CVE-2021-25298: 
Nagios XI vulnerability analysis and mitigation

Overview

Nagios XI version 5.7.5 is affected by an OS command injection vulnerability (CVE-2021-25298). 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, which can lead to OS command injection on the Nagios XI server. The vulnerability was discovered in early 2021 and affects versions from 5.5.6 to 5.7.5 (Fastly Blog).

Technical details

The vulnerability occurs when the ip_address parameter, controlled by the user through URL input, is passed to the exec function without proper sanitization in the cloud-vm configuration wizard. The vulnerable code processes the ip_address variable and passes it directly into a ping command execution. An attacker can use command operators like semicolon (;) to terminate the original command and inject arbitrary commands for execution. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability could allow an authenticated attacker to execute arbitrary commands on the affected Nagios XI server. The commands would be executed with the privileges of the apache user, potentially leading to unauthorized access, data manipulation, or system compromise (Fastly Blog).

Exploitability

The vulnerability requires authentication (admin or non-admin) to exploit. A proof-of-concept exploit has been publicly disclosed, and the vulnerability has been added to CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild. A Metasploit module named 'nagios_xi_configwizards_authenticated_rce' has been developed to exploit this vulnerability (Fastly Blog, CISA).

Mitigation and workarounds

Organizations are strongly advised to upgrade to the latest version of Nagios XI. Additionally, it is recommended to prevent Nagios XI from being exposed directly to the internet. The vulnerability can be tested using either the Metasploit module or Nuclei template. Fastly's NGWAF detects exploitation attempts of this CVE by default (Fastly Blog).

Additional resources


Source: This report was generated using AI

Related Nagios XI vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-48554HIGH7.7
  • Nagios logoNagios
  • cpe:2.3:a:nagios:nagios_xi
NoNoAug 12, 2026
CVE-2026-48553HIGH7.7
  • Nagios logoNagios
  • cpe:2.3:a:nagios:nagios_xi
NoNoAug 12, 2026
CVE-2026-48549MEDIUM6.9
  • Nagios logoNagios
  • nagios4
NoNoAug 26, 2026
CVE-2023-24035LOW3.5
  • Nagios XI logoNagios XI
  • cpe:2.3:a:nagios:nagios_xi
NoYesSep 14, 2026
CVE-2023-24034LOW3.1
  • Nagios XI logoNagios XI
  • cpe:2.3:a:nagios:nagios_xi
NoYesSep 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management