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

> CVE-2021-25297: Nagios XI OS Command Injection. CVSS 8.8 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2021-25297
Last updated: 2026-07-09T00:12:25Z

- Published: 2021-02-15 00:00 UTC · Updated: 2026-07-09 00:12 UTC · Assigner: mitre
- CVSS: 8.8 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 56.7%, 99th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2022-01-18, federal due date 2022-02-01, ransomware use: Unknown

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

## CISA required action

Apply updates per vendor instructions.

## Affected vendors and products

- Nagios: Nagios XI

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2021-25297)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2021-25297)
- [http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html](http://packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html)
- [http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html](http://packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html)
- [https://assets.nagios.com/downloads/nagiosxi/versions.php](https://assets.nagios.com/downloads/nagiosxi/versions.php)
- [https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md](https://github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md)
- [https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and](https://www.fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2021-25297 · Markdown: https://rewindex.com/cve/CVE-2021-25297.md · JSON: https://rewindex.com/api/v1/cves/CVE-2021-25297 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:13:23.860Z
