# CVE-2021-25297: Nagios XI OS Command Injection

Source: https://junglewise.ai/threats/cve-2021-25297-nagios-xi-os-command-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-18. Updated: 2026-05-10  
License: CC BY 4.0 with a link back

CVE-2021-25297 · Severity: critical · CVSS 8.8 · Exploited in the wild · Published 2022-01-18

Nagios XI version 5.7.5 is vulnerable to OS command injection via the switch.inc.php configuration wizard. An authenticated attacker can execute arbitrary commands on the server by sending a single crafted HTTP request with unsanitized input.

Technologies: [Nagios XI](https://junglewise.ai/threats/technologies/xi). Vendors: [Nagios](https://junglewise.ai/threats/vendors/nagios).

## Quick answers

**Is CVE-2021-25297 exploited in the wild?** Yes. CVE-2021-25297 is known to be exploited in the wild, first recorded on 18 January 2022. Treat it as urgent.

**How severe is CVE-2021-25297?** Critical severity, with a CVSS score of 8.8, published 18 January 2022.

**Which products and versions are affected?** Nagios Nagios XI 5.7.5.

**Is there a fix for CVE-2021-25297?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2021-25297 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2021-25297?** Check whether you run Nagios XI. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- Nagios Nagios XI 5.7.5

## Timeline

- 2021-02-18: disclosed: Initial NVD analysis date
- 2022-01-18: kev added: Added to CISA Known Exploited Vulnerabilities Catalog

## Related threats

- [Nagios XI open redirect in twilio_ajax_handler.php](https://junglewise.ai/threats/cve-2023-24034-nagios-xi-open-redirect-in-twilio-ajax-handler-php)
- [In NagiosXI 2026R1.0.1 build 1762361101, Dashboard parameters lack proper filtering, allowing any authenticated user…](https://junglewise.ai/threats/cve-2025-67255-in-nagiosxi-2026r1-0-1-build-1762361101-dashboard-parameters-lack)
- [NagiosXI 2026R1.0.1 build 1762361101 is vulnerable to Directory Traversal in /admin/coreconfigsnapshots.php.](https://junglewise.ai/threats/cve-2025-67254-nagiosxi-2026r1-0-1-build-1762361101-is-vulnerable-to-directory)
- [Nagios XI versions prior to 2026R1 contain a remote code execution vulnerability in the Core Config Manager (CCM) Run…](https://junglewise.ai/threats/cve-2025-34286-nagios-xi-versions-prior-to-2026r1-contain-a-remote-code)
- [Nagios XI versions prior to < 2024R1.0.2 are vulnerable to cross-site scripting (XSS) via the Nagios Core Command…](https://junglewise.ai/threats/cve-2023-7318-nagios-xi-versions-prior-to-2024r1-0-2-are-vulnerable-to-cross)
