CVE-2026-2043
High · 8.8CVSS
8.8
EPSS
75.4%
Published
Feb 20, 2026
CISA due date
—
Cloudanix analysis
A logged-in attacker could abuse a monitoring system setup feature to run commands on the server and potentially take control of it.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
The vulnerability is an authenticated command injection issue in the Nagios Host esensors web sensor configuration wizard functionality, specifically in the esensors_websensor_configwizard_func method. A user-controllable string is not properly validated or safely escaped before being passed to a system call, allowing an attacker with valid low-privileged access to inject shell metacharacters and execute arbitrary operating-system commands. Successful exploitation runs commands in the context of the Nagios service or web application account, which can enable data theft, configuration tampering, lateral movement, credential harvesting, persistence, or full host compromise depending on local permissions and hardening.
Why it matters to the business
A compromised Nagios monitoring server can create significant operational and security risk because monitoring platforms often have broad visibility into infrastructure, stored credentials, alerting workflows, network paths, and administrative integrations. An attacker could disable or falsify monitoring, steal infrastructure details, pivot to monitored systems, disrupt alerting, or use the server as a trusted foothold. The CVSS score is high and EPSS is elevated, indicating meaningful exploitation likelihood even though it is not currently listed in CISA KEV and no public exploit maturity is reported in the provided data. The affected-product metadata lists PyPy packages with fixed version value 0, which does not align with the Nagios Host description; teams should validate authoritative vendor advisories and package provenance before assuming exposure is limited to those package names.
How an attack unfolds
An attacker first obtains valid credentials for the affected Nagios Host/Nagios web interface, typically through credential theft, password reuse, phishing, default credentials, or compromise of a low-privileged monitoring account. After authenticating, the attacker accesses the esensors web sensor configuration wizard and submits a crafted value containing shell control characters or command substitution syntax to the vulnerable parameter processed by esensors_websensor_configwizard_func. Because the application fails to validate the string before using it in a system call, the injected command is interpreted by the operating system. The payload can be used to run reconnaissance commands, write web-accessible files, download tooling, establish a reverse shell, create persistence, or access secrets available to the Nagios service account. The attacker may then modify monitoring checks or alerting configuration to hide activity, collect credentials from configuration files, and pivot to connected systems.
How to fix it
Apply the vendor-provided fix or upgrade to a non-vulnerable release as soon as possible. The supplied package metadata states the following fixed package versions: pypy-3.11 (Chainguard) fixed in 0; pypy-3.11 (Wolfi) fixed in 0; pypy-3.11-compat (Chainguard) fixed in 0; pypy-3.11-compat (Wolfi) fixed in 0; pypy-3.10 (Chainguard) fixed in 0; pypy-3.10 (Wolfi) fixed in 0; pypy-3.10-compat (Chainguard) fixed in 0; pypy-3.10-compat (Wolfi) fixed in 0. Because the vulnerability description identifies Nagios Host while the affected package list references PyPy packages, confirm the correct fixed versions against the authoritative Nagios/vendor advisory, package repository security notes, and installed component inventory. If immediate patching is not possible, restrict access to the Nagios web interface to trusted administrative networks or VPN, enforce MFA for all users, remove unnecessary or low-privileged accounts, disable or restrict the esensors web sensor configuration wizard if supported, apply web application firewall rules for shell metacharacters in wizard parameters, and harden the host so the service account cannot write to sensitive paths or execute unnecessary interpreters and network tools.
How to confirm the fix worked
Confirm exposure by inventorying Nagios Host/Nagios installations and determining whether the esensors web sensor configuration wizard component is installed and reachable by authenticated users. Verify the installed product/package versions against the vendor advisory and ensure upgraded packages match the fixed or unaffected versions. After patching, retest with a safe, non-destructive command-injection validation payload in a controlled environment to confirm shell metacharacters are rejected or treated as literal input. Review application behavior to ensure configuration wizard submissions no longer spawn shell commands with attacker-controlled content. Validate compensating controls by confirming the web interface is not internet-exposed unless required, authentication is enforced with MFA, and only authorized administrators can access configuration wizard features.
Typical attack path
- Identify an exposed Nagios Host/Nagios web interface or monitoring server reachable over the network.
- Acquire valid application credentials through phishing, password reuse, credential stuffing, prior compromise, or misuse of an existing low-privileged account.
- Authenticate to the web interface and access the esensors web sensor configuration wizard functionality.
- Submit a malicious configuration value containing shell metacharacters, command substitution, or chained operating-system commands.
- Trigger the wizard path that calls esensors_websensor_configwizard_func and passes the attacker-controlled value into a system call.
- Execute commands as the Nagios service or web application account.
- Perform post-exploitation actions such as reading monitoring configuration, harvesting secrets, adding persistence, altering alerting, deploying tooling, or pivoting to monitored infrastructure.
How to detect it
Look for evidence of authenticated abuse of the esensors web sensor configuration wizard followed by unexpected operating-system command execution. Relevant sources include Nagios web/application logs, configuration wizard logs, web server access and error logs, authentication logs, command audit logs, EDR process telemetry, shell history for the service account, file integrity monitoring, and network egress logs. Focus on requests to esensors or websensor configuration wizard paths that contain shell metacharacters such as semicolon, pipe, backtick, dollar-parentheses command substitution, ampersand chaining, redirection, encoded equivalents, or suspicious utilities. On the host, look for web server or Nagios service processes spawning shells or interpreters such as sh, bash, python, perl, curl, wget, nc, ncat, socat, or openssl. Investigate modifications to Nagios plugins, command definitions, event handlers, cron jobs, temporary directories, web-accessible files, SSH authorized_keys files, and unexpected outbound connections soon after configuration wizard activity. Since exploitation requires authentication, correlate suspicious requests with successful logins, new sessions, unusual source IPs, abnormal user agents, recently created users, and administrative actions performed by accounts that do not normally manage esensors configuration.
- esensors_websensor_configwizard_func
- esensors
- websensor
- configwizard
- ;id
- ;whoami
- ;uname
- |id
- |whoami
- `id`
- `whoami`
- $(id)
- $(whoami)
- /bin/sh -c
- /bin/bash -c
- curl http
- wget http
- nc -e
- ncat -e
- bash -i
- /dev/tcp/
- python -c
- perl -e
- /tmp/
- /var/tmp/
- authorized_keys
What your security team should do
- Treat internet-exposed or broadly accessible Nagios management interfaces as high priority because the flaw enables authenticated remote code execution and EPSS is elevated.
- Patch or upgrade affected Nagios Host/Nagios deployments after confirming authoritative fixed versions, especially where the esensors web sensor configuration wizard is installed.
- Immediately restrict web interface access to trusted administrative networks, VPN, or zero-trust access controls while remediation is underway.
- Audit Nagios user accounts for unnecessary access, weak passwords, stale accounts, shared credentials, and lack of MFA.
- Search logs and host telemetry for suspicious configuration wizard submissions, shell metacharacters, reverse shell attempts, and child processes spawned by the web server or Nagios service account.
- Review Nagios configuration files, plugins, event handlers, and scheduled tasks for unauthorized modifications or persistence.
- Rotate credentials stored in or accessible from the monitoring platform if exploitation is suspected.
- Investigate the provided affected-package metadata mismatch before relying on automated scanner output alone; correlate scanner findings with installed Nagios components and vendor advisories.
The record
Nagios Host esensors_websensor_configwizard_func Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Nagios Host. Authentication is required to exploit this vulnerability. The specific flaw exists within the esensors_websensor_configwizard_func method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-28249.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-96376 Improper Neutralization of Special Elements used in an OS Command ("OS Command… CWE-78
- CVE-2026-113732 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113776 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113726 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113725 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113722 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-112943 launch-editor allows users to open files with line numbers in editor from Node.js. CWE-78
- CVE-2026-112900 Pillow is a Python imaging library. CWE-78