CVE-2021-37346
Critical · 9.8CVSS
9.8
EPSS
73.6%
Published
Aug 13, 2021
CISA due date
—
Cloudanix analysis
A vulnerable Nagios monitoring add-on can let an outside attacker run commands on the monitoring server and potentially take control of it.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
CVE-2021-37346 is an unauthenticated remote OS command injection vulnerability in the Nagios XI WatchGuard Wizard before version 1.4.8. The wizard fails to properly neutralize shell metacharacters or command arguments before using attacker-controlled input in operating-system command execution. Because the vulnerability is network-accessible, low-complexity, requires no privileges, and requires no user interaction, successful exploitation can allow arbitrary command execution in the security context of the web application or wizard process, potentially leading to full compromise of the Nagios XI server and its monitoring data, credentials, plugins, and integrations.
Why it matters to the business
A compromised Nagios XI monitoring server can give attackers broad operational visibility and a foothold into infrastructure because monitoring systems often store credentials, poll internal services, execute plugins, and reach many network segments. Exploitation could result in service disruption, tampering with monitoring results, theft of infrastructure secrets, lateral movement, and loss of confidence in alerting. The CVSS score is critical and the EPSS score is high, indicating meaningful likelihood of exploitation in the wild even though it is not currently listed in CISA KEV and no ransomware use is noted.
How an attack unfolds
An attacker identifies an exposed Nagios XI instance with the vulnerable WatchGuard Wizard installed. They send a crafted HTTP request to the wizard endpoint containing shell metacharacters or command-substitution syntax in a parameter that the wizard passes into an operating-system command. Because the input is not safely sanitized, the server executes the injected command. The attacker may first run benign commands such as whoami, id, uname, or curl-based callbacks to confirm execution, then deploy a web shell, reverse shell, credential-harvesting script, or persistence mechanism. After initial code execution, the attacker can inspect Nagios XI configuration files, recover stored monitoring credentials or API tokens, modify checks to hide activity, pivot to monitored assets, and use the monitoring server as an internal reconnaissance and lateral-movement platform.
How to fix it
Upgrade the Nagios XI WatchGuard Wizard to version 1.4.8 or later. If using Nagios XI package or component management, update the WatchGuard Wizard from the official Nagios source and verify the installed wizard version after the upgrade. If an immediate upgrade is not possible, disable or remove the WatchGuard Wizard, restrict access to Nagios XI administrative and wizard functionality to trusted management networks or VPNs, enforce web authentication controls where applicable, and block direct internet exposure. Because command injection may result in full host compromise, treat exposed vulnerable systems as potentially compromised until reviewed. Rotate credentials stored in Nagios XI, including monitoring credentials, API keys, SSH keys, SNMP community strings, and integration tokens, if exploitation is suspected.
How to confirm the fix worked
Confirm the WatchGuard Wizard version is 1.4.8 or later through the Nagios XI web interface, component/wizard management page, or filesystem package metadata. Verify that the vulnerable wizard endpoint is no longer reachable or no longer accepts attacker-controlled command syntax. Review web server and application logs for historical requests to WatchGuard Wizard paths containing shell metacharacters such as ;, |, &, `, $(), >, <, newline encodings, curl, wget, bash, sh, nc, python, perl, or powershell. From a defensive validation standpoint, use only safe, non-executing checks or vendor-supported vulnerability scanners to confirm remediation; do not run live command-injection payloads against production systems. Also verify that Nagios XI access is restricted to approved administrative networks and that no unexpected files, processes, cron entries, or plugin modifications remain.
Typical attack path
- Scan for internet-facing or internally reachable Nagios XI installations.
- Determine whether the WatchGuard Wizard component is present and older than version 1.4.8.
- Send a crafted request to the vulnerable wizard parameter with OS command metacharacters or command substitution.
- Confirm command execution using output in the HTTP response or an out-of-band callback such as DNS, HTTP, or ICMP.
- Execute reconnaissance commands to identify user context, operating system, network configuration, and accessible files.
- Retrieve Nagios XI configuration, stored credentials, tokens, or plugin scripts.
- Deploy a reverse shell, web shell, scheduled task, cron job, or modified plugin for persistence.
- Use the Nagios XI server’s network access and credentials to pivot to monitored systems or disrupt monitoring.
How to detect it
Investigate web server access logs, Nagios XI application logs, system authentication logs, shell history, EDR/process telemetry, cron directories, plugin directories, and outbound network logs from Nagios XI servers. Focus on requests to WatchGuard Wizard endpoints with encoded or literal command separators and suspicious command names. Look for the web server or Nagios XI process spawning shells or utilities such as sh, bash, curl, wget, nc, ncat, netcat, python, perl, php, or openssl. Check for unexpected outbound connections shortly after requests to wizard URLs, especially to unfamiliar IPs, dynamic DNS domains, paste sites, or newly registered domains. Review file integrity in Nagios XI plugin and web directories for new PHP files, modified check scripts, unexpected executable files, or recently changed cron entries. Because no specific public exploitation artifact is provided in the input, detection should emphasize behavioral indicators of command injection and post-exploitation rather than a single fixed payload.
- /nagiosxi/
- watchguard
- WatchGuard
- wizard
- ;id
- ;whoami
- ;uname
- ;cat%20/etc/passwd
- %3Bid
- %3Bwhoami
- %3Buname
- %7Cwhoami
- %7Cid
- %26%26whoami
- %60id%60
- %24%28id%29
- curl%20
- wget%20
- /bin/sh
- /bin/bash
- nc%20-e
- ncat%20-e
- bash%20-i
- python%20-c
- perl%20-e
- php%20-r
- /usr/local/nagiosxi/
- /usr/local/nagios/libexec/
- /usr/local/nagiosxi/html/
- /var/log/httpd/access_log
- /var/log/apache2/access.log
- /var/log/httpd/error_log
- /var/log/apache2/error.log
- /usr/local/nagiosxi/var/
- /var/spool/cron/
- /etc/cron.d/
What your security team should do
- Prioritize upgrade or removal of the WatchGuard Wizard on all Nagios XI systems because the vulnerability is critical, unauthenticated, network-exploitable, and has a high EPSS score.
- Inventory all Nagios XI deployments, including internal monitoring servers, appliances, backups, cloned images, and lab systems, and identify whether the WatchGuard Wizard is installed.
- Restrict Nagios XI access to trusted administrative networks, VPNs, or bastion hosts; avoid exposing Nagios XI directly to the internet.
- Hunt for prior exploitation in web logs, Nagios XI logs, shell history, process accounting, EDR telemetry, and outbound network telemetry from monitoring servers.
- If exploitation is suspected, isolate the server, preserve forensic evidence, rotate stored monitoring and integration credentials, and review monitored systems for downstream compromise.
- Review Nagios XI plugins, custom checks, cron jobs, and local scripts for unauthorized modifications or persistence.
- Enable alerting for suspicious child processes spawned by the web server or Nagios XI application, especially shells, download utilities, interpreters, and networking tools.
- Maintain a patch-management process for Nagios XI components and wizards, not only the base Nagios XI application.
The record
Nagios XI WatchGuard Wizard before version 1.4.8 is vulnerable to remote code execution through Improper neutralisation of special elements used in an OS Command (OS Command injection).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-62853 ThingLinks is an enterprise IoT platform. CWE-78
- CVE-2026-119335 Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing… CWE-78
- CVE-2026-116241 pgAdmin 4's Import/Export Data tool wraps a user's query export in a psql \copy (...) TO… CWE-78
- CVE-2026-119713 Paperclip 2026.403.0 before 2026.416.0 contains a remote code execution vulnerability… CWE-78
- CVE-2026-119288 Zuke is a code-first, strongly typed build automation system for Deno. CWE-78
- CVE-2026-118238 The Tenda W18E web management server is vulnerable to OS command injection via the… CWE-78
- CVE-2026-91913 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-78
- CVE-2026-118992 CallBackery versions before 0.62.0 for Perl allow OS command execution via sqlite3 shell… CWE-78