CVE-2021-25297 — Nagios Xi
HIGHCVE-2021-25297 is a high-severity (CVSS 8.8) OS Command Injection vulnerability in nagios nagios xi. It is in CISA's Known Exploited Vulnerabilities catalog (added 2022-01-18) — treat it as actively exploited and patch now. No vendor fix is recorded yet; mitigation options are listed below.
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…
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2022-01-18. Federal agencies were required to remediate by 2022-02-01.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2021-25297.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-25297 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 395,249 CVEs with a current EPSS score, this one falls in the 50–90% band (highlighted). Counts from FIRST.org, log-scaled.
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.
Affected Products
nagios xinagiosResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Nagios XI version xi-5.7.5 is affected by OS command injection. The vuln…
Detection & mitigation playbook
Vendor / applianceDetect
Inventory every nagios nagios xi deployment and check each version against the affected-products list above.
Remediation status
No patch has shipped for CVE-2021-25297 yet — track the nagios nagios xi advisory for a fixed release and apply the workarounds below in the meantime.
Mitigate without a patch
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
How to detect CVE-2021-25297
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-25297 -u https://target- Template
- Nagios 5.5.6-5.7.5 - Authenticated Remote Command Injection
- Severity
- high
- Impact
- Successful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary commands on the target system.
- Remediation
- Upgrade Nagios to a version higher than 5.7.5 or apply the provided patch to mitigate the vulnerability.
Template by ProjectDiscovery nuclei-templates (k0pak4), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-25297 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.