Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🛡️
CISA KEV · ACTIVELY EXPLOITED
HIGH severity

CVE-2021-25297 — Nagios Xi

HIGH

CVE-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…

Published
Updated
Affected
1 product
Patched
See advisory
Exploits
9 known
Exploitation data as of Oct 22, 2026 · OSV.dev, NVD, CISA KEV, FIRST.org (EPSS)

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

via FIRST.org ↗
56.7%probability of exploitation in next 30 days
High Risk0.00%
Lower risk than most CVEs99th percentile — riskier than 99% of all scored CVEsHighest risk
31.3%52.0%72.8%93.6%81.9%56.7%Apr 26Aug 26Oct 26

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

1 product · 1 configurations
Application
nagios xinagios
≥ 5.5.6 && ≤ 5.7.5
range
Exploits & PoCs
9

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Vendor / appliance
  1. Detect

    Inventory every nagios nagios xi deployment and check each version against the affected-products list above.

  2. 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.

  3. 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

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.
O3 Security · Runtime Protection

Is CVE-2021-25297 being exploited in your environment?

Detect and block the exploit chain at execution, on systems you cannot patch yet.

CVE-2021-25297: Nagios Xi Command Injection (KEV)