← Vulnerability feed

Vulnerability record · CVE-2021-25297 · published 15 February 2021

CVE-2021-25297: Nagios XI switch config wizard OS command injection

Nagios · Nagios Xi

Nagios XI 5.7.5 fails to sanitize authenticated user input in the switch configuration wizard file switch.inc.php, allowing OS command injection via a single HTTP request. Because the affected component is a monitoring server, successful exploitation can compromise the host and the infrastructure it manages.

8.8 CVSS 3.1 High CISA KEV since 18 Jan 2022 EPSS 57% · top 1.0% CWE-78 · OS command injection
8.8CVSS 3.1 base score, v2 9.0
57%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
1Affected product versions listed by NVD
11References, 8 tagged exploit
9 Jul 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

critical priorityThe flaw is an authenticated remote OS command injection on a monitoring server, is in CISA KEV, has a very high EPSS score, and public exploit code exists.

What it is

Nagios XI 5.7.5 fails to sanitize authenticated user input in the switch configuration wizard file switch.inc.php, allowing OS command injection via a single HTTP request. Because the affected component is a monitoring server, successful exploitation can compromise the host and the infrastructure it manages.

Impact

An authenticated attacker can execute arbitrary OS commands on the Nagios XI server, gaining control of the monitoring host and potentially pivoting to monitored systems.

Attack surface

Reached over the network through the Nagios XI web interface at the switch configuration wizard endpoint. The CVSS vector indicates low privileges are required and no user interaction is needed.

Exploitation

CVE-2021-25297 is listed in CISA KEV with a due date of 2022-02-01, and EPSS shows a 30-day probability of 0.56659 (99th percentile). Multiple references are tagged Exploit, including public write-ups and a Metasploit module.

What to do

  • Upgrade Nagios XI to a version later than 5.7.5 per vendor instructions.
  • Restrict access to the Nagios XI web interface to trusted administrative networks.
  • Review and limit accounts with access to configuration wizards, removing unused or low-privilege users.
  • Monitor Nagios XI hosts for unexpected child processes or outbound connections from the web server.
  • Apply the CISA KEV required action and verify remediation before the due date.

Detection

  • Alert on suspicious process creation spawned by the Nagios XI web server or PHP processes.
  • Monitor HTTP requests to /nagiosxi/includes/configwizards/switch/switch.inc.php for command metacharacters.
  • Audit Nagios XI logs for configuration wizard activity from unexpected users or IPs.
  • Watch for outbound connections or file writes from the Nagios XI host that deviate from baseline.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-25297 to the Known Exploited Vulnerabilities catalog on 18 January 2022 as "Nagios XI OS Command Injection". Required action: Apply updates per vendor instructions. Federal deadline 1 February 2022.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-25297 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2021-25296Nagios XI Windows WMI Config Wizard OS Command InjectionNagios XI 5.7.5 fails to sanitize authenticated user input in the windowswmi config wizard file, allowing OS command injection. Because the affected …KEVEPSS 72%analysed8.8CVE-2021-25298Nagios XI cloud-vm config wizard OS command injectionNagios XI 5.7.5 fails to properly sanitize authenticated user input in /usr/local/nagiosxi/html/includes/configwizards/cloud-vm/cloud-vm.inc.php, all…KEVEPSS 75%analysed8.8CVE-2019-15949Nagios XI getprofile.sh command injection allows root code executionNagios XI before 5.6.6 runs the getprofile.sh script as root through a passwordless sudo entry when a system profile is downloaded. Because that scri…KEVEPSS 77%analysed9.8CVE-2024-24401Nagios XI monitoringwizard.php SQL injection allows remote code executionNagios XI 2024R1.01 contains a SQL injection flaw in the monitoringwizard.php component. A remote attacker can send a crafted payload that leads to a…EPSS 46%analysed9.8CVE-2024-24402Nagios xi improper privilege management vulnerabilityAn issue in Nagios XI 2024R1.01 allows a remote attacker to escalate privileges via a crafted script to the /usr/local/nagios/bin/npcd component.EPSS 3.4%9.8CVE-2023-48085Nagios XI command_test.php remote code executionNagios XI before 5.11.3 contains a remote code execution flaw in the command_test.php component, classified as code injection (CWE-94). The CVSS 3.1 …EPSS 76%analysed9.8CVE-2023-48084Nagios xi sql injection vulnerabilityNagios XI before version 5.11.3 was discovered to contain a SQL injection vulnerability via the bulk modification tool.EPSS 34%9.8CVE-2022-38250Nagios xi sql injection vulnerabilityNagios XI v5.8.6 was discovered to contain a SQL injection vulnerability via the mib_name parameter at the Manage MIBs page.EPSS 3.0%

Source: NIST National Vulnerability Database (record CVE-2021-25297), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.