CVE-2021-25297 Nagios XI OS Command Injection
Nagios XI contains a vulnerability which can lead to OS command injection on the Nagios XI server.
From the CISA KEV catalogue version 2026.11.06, with Cybergen analysis. Updated 6 Nov 2026.
Should You Worry?
- CISA confirmed exploitation in the wild and added it to the Known Exploited Vulnerabilities catalogue on 18 Jan 2022.
- Rated High severity (CVSS 8.8, scored by CISA).
- It has been in the catalogue for 1,753 days. Systems still unpatched now have almost certainly been scanned for it.
What It Is
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.
What To Do Now
- 1
Find it
Search your asset inventory and external attack surface for Nagios XI. Include cloud images, appliances and anything a supplier runs for you.
Attack Surface Management - 2
- 3
Hunt for compromise
If an affected system was reachable before you patched, assume it may have been hit. Check logs, new accounts, web shells and outbound connections from the date of exposure.
Incident Response - 4
Prove it is fixed
Rescan or test the system after patching. Upgrades that fail silently and forgotten secondary instances are common.
Penetration Testing
Vendor Advisories
The Compliance Clock
General guidance, not legal advice. Your obligations depend on your sector, scope and jurisdiction.
Not Sure If You Are Exposed?
Our attack surface and vulnerability teams can check your internet-facing estate for CVE-2021-25297 and every other exploited flaw on the list.
Sources
- CISA Known Exploited Vulnerabilities catalogue
- NVD: CVE-2021-25297
- CVE record: CVE-2021-25297
- FIRST EPSS
- assets.nagios.com/downloads/nagiosxi/versions.php
- github.com/fs0c-sh/nagios-xi-5.7.5-bugs/blob/main/README.md
- packetstormsecurity.com/files/161561/Nagios-XI-5.7.5-Remote-Code-Execution.html
- packetstormsecurity.com/files/170924/Nagios-XI-5.7.5-Remote-Code-Execution.html
- fastly.com/blog/anatomy-of-a-command-injection-cve-2021-25296-7-8-with-metasploit-module-and
