CVE-2021-25298: Nagios XI OS Command Injection
CVE-2021-25298 is a high-severity flaw (CVSS 8.8) affecting nagios xi, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 73.6% (top 1%) |
| CISA exploited list | Yes, fix due 2022-02-01 |
| Weakness | CWE-78 |
| Published | 2021-02-15 |
| Last modified | 2026-07-09 |
Last updated 2026-07-09 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Write-up: github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md
- Write-up: www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-modu
- Metasploit: Nagios XI 5.5.6 to 5.7.5 - ConfigWizards Authenticated Remote Code Exection
- Nuclei scan template: Nagios XI 5.5.6-5.7.5 - Authenticated Remote Command Injection
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-25298?
nagios xi: upgrade to newer than 5.7.5. Exact commands for each OS are on this page.
Is CVE-2021-25298 being exploited?
Yes. CVE-2021-25298 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2021-25298 affect?
CVE-2021-25298 affects nagios xi. Severity is high (CVSS 8.8). 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 inp
How urgent is CVE-2021-25298?
Priority 86/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference
Software pages
PHP vulnerabilities · Nagios vulnerabilities
Related CVEs
- CVE-2012-10063 CRITICAL 9.8 UPGRADE Nagios XI versions prior to 2012R1.3 contain a SQL injection vulnerability in the legacy Core Configuration Ma
- CVE-2013-10073 HIGH 8.8 UPGRADE Nagios XI versions prior to 2012R1.6 contain a shell command injection vulnerability in the Auto-Discovery too
- CVE-2020-36856 HIGH 8.8 UPGRADE Nagios XI versions prior to 5.6.14 contain an authenticated remote command execution vulnerability in the CCM
- CVE-2020-36867 HIGH 8.8 UPGRADE Nagios XI versions prior to 5.7.3 contain a command injection vulnerability in the report PDF download/export
- CVE-2018-25122 HIGH 8.8 UPGRADE Nagios XI versions prior to 5.4.13 contain a remote code execution vulnerability in the Component Download pag