CVE-2021-25297 is an OS command injection vulnerability in Nagios XI version 5.7.5, specifically in the Switch configuration wizard (file: /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php). The vulnerability arises from improper sanitization of the 'ip_address' parameter, which is user-controlled and can be manipulated via a single authenticated HTTP request. This allows an attacker to inject arbitrary shell commands that are executed on the Nagios XI server with the privileges of the web server process.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module targeting authenticated remote code execution vulnerabilities (CVE-2021-25296, CVE-2021-25297, CVE-2021-25298) in Nagios XI versions 5.5.6 to 5.7.5. The exploit abuses command injection flaws in the 'windowswmi', 'switch', and 'cloud-vm' configuration wizards, requiring valid Nagios XI credentials. The module is weaponized, supporting multiple payloads including Meterpreter and command-based reverse shells, and is capable of executing arbitrary commands as the 'apache' user. The main attack vector is via HTTP requests to the '/nagiosxi/config/monitoringwizard.php' endpoint, with crafted parameters to trigger the vulnerabilities. The code is structured as a standard Metasploit exploit module, with options for selecting the specific CVE to target and payload customization. The repository is operational and ready for use within the Metasploit framework.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.