Vulnerabilities

Vulnerability · CVE-2021-25297

Nagios XI OS Command Injection

Published Feb 15, 2021 · catalog updated Jul 9, 2026 · Nagios Nagios XI

Patch now

CVE-2021-25297 is in the CISA known-exploited catalog, due Feb 1, 2022. Confirm Nagios Nagios XI against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Gaps on this record

  • No version range is stored. A customer cannot check an installed version against this record.
Severity
High8.8
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
56.66%
Remediation
Remediation guidance
Affected products
cpe nagios/nagios xi · vendor Nagios 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/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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe nagios/nagios xiversion unspecified
  • vendor Nagios Nagios XIversion unspecified

How to fix CVE-2021-25297

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2021-25297 is in the CISA known-exploited catalog, due Feb 1, 2022. Confirm Nagios Nagios XI against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Affected version ranges are not on this record. Apply updates per vendor instructions.

What should an analyst verify?

CWE-138; CWE-78: OS Command Injection. EPSS 56.66%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Feb 15, 2021 · Catalog

    Detected

    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.

  2. Jan 18, 2022 · CISA KEV

    Known exploited

    Apply updates per vendor instructions.

  3. Feb 1, 2022 · CISA KEV

    Remediation due

    Apply updates per vendor instructions.

  4. Jul 9, 2026 · Catalog

    Updated

    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.

Sources

  • CISA KEVConfirmed exploitationCVE-2021-25297

    Nagios XI contains a vulnerability which can lead to OS command injection on the Nagios XI server.

    cisa.gov
  • CVE.orgVulnerability recordCVE-2021-25297

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2021-25297

    30-day exploitation probability 56.7%

    first.org
  • Metasploit ModulesPublic exploit moduleexploit_linux/http/nagios_xi_configwizards_authenticated_rce

    Public module reference (excellent). Module source is not copied into this catalog.

    rapid7.com
  • NIST NVDVulnerability recordCVE-2021-25297

    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

    nvd.nist.gov
  • Packet Storm SecurityCited referencehttp://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html

    Packet Storm link already published on the finding.

    packetstormsecurity.com
  • Packet Storm SecurityCited referencehttp://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html

    Packet Storm link already published on the finding.

    packetstormsecurity.com
  • VulnCheck KEVConfirmed exploitationCVE-2021-25297

    Nagios XI contains a vulnerability which can lead to OS command injection on the Nagios XI server.

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.