CVE-2021-25298 in Nagios Xi
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 Na...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Nagios | Nagios Xi | ≥ 5.5.6, ≤ 5.7.5 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Yes added 2022-01-18 |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-25298 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-252333-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-02-15 |
| Last modified | 2026-07-09 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-78
CAPEC-88 OS Command Injection via CWE-78
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Nagios XI version xi-5.7.5 is vulnerable to OS command injection due to improper sanitization of user input in the cloud-vm.inc.php file. This could allow an authenticated attacker to execute arbitrary commands on the server, leading to potential full system compromise.
The vulnerability is exploitable via a single HTTP request to the cloud-vm.inc.php file. An authenticated user can inject malicious commands that are executed by the server, potentially leading to full system control.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for all user inputs in the cloud-vm.inc.php file. Additionally, restrict access to this file to only trusted users and monitor for suspicious activity.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2021-25298?
Nagios XI version xi-5.7.5 is vulnerable to OS command injection due to improper sanitization of user input in the cloud-vm.inc.php file. This could allow an authenticated attacker to execute arbitrary commands on the server, leading to potential full system compromise.
What is the CVSS score for CVE-2021-25298?
CVE-2021-25298 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 73.6%.
Is CVE-2021-25298 actively exploited?
Yes. CVE-2021-25298 is in the CISA known-exploited catalog (added 2022-01-18). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2021-25298?
Priority: HIGH.
What systems are affected by CVE-2021-25298?
CVE-2021-25298 affects Nagios Nagios Xi.
What NERC-CIP standard applies to CVE-2021-25298?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 as it allows unauthorized access to the system, which could compromise the integrity and availability of critical cyber assets.
What IEC 62443 requirement maps to CVE-2021-25298?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability that could allow an attacker to execute arbitrary code, compromising the security of the industrial control system.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Nagios","product":"Nagios Xi","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-09.