Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
AC:H captures the non-default configuration prerequisite; PR:L reflects required NRDP authentication; full C/I/A impact from arbitrary OS command execution on the monitoring host.
AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Nagios Core before 4.5.13 and Nagios XI before 2026R1.5 are vulnerable to authenticated remote code execution via custom-variable macro injection through the Nagios Remote Data Processor (NRDP). When a custom variable defined on a host, service, or contact is referenced in a shell-executed command line, an authenticated attacker with NRDP access can inject OS commands through the macro value. Exploitation requires a non-default configuration in which a custom variable is defined and referenced in a shell-executed command.
AnalysisAI
Authenticated remote code execution in Nagios Core (before 4.5.13) and Nagios XI (before 2026R1.5) is achievable via OS command injection through custom-variable macros processed by the Nagios Remote Data Processor (NRDP). An attacker with valid NRDP access can embed shell metacharacters in a custom variable value that is later expanded inside a shell-executed command definition, causing arbitrary OS commands to run with the privileges of the Nagios process. No public exploit code or CISA KEV listing exists at time of analysis, but impact is rated high across confidentiality, integrity, and availability given full command execution on the monitoring server.
Technical ContextAI
The Nagios Remote Data Processor (NRDP) is a flexible data-transport mechanism that accepts passive check results, host status updates, and service data from remote agents. Nagios expands custom variable macros - identified by the $_HOSTxxx$, $_SERVICExxx$, and $_CONTACTxxx$ syntax - when constructing shell command strings for event handlers, notification commands, and check commands. When user-supplied values arriving via NRDP are placed into these macros without shell-safe quoting or sanitization, the result is passed directly to a shell interpreter, a textbook CWE-78 (Improper Neutralization of Special Elements in an OS Command) pattern. Affected products per CPE data are cpe:2.3:a:nagios_enterprises,_llc.:nagios_core and cpe:2.3:a:nagios_enterprises,_llc.:nagios_xi, covering all versions prior to the respective fixed releases.
RemediationAI
The primary fix is to upgrade Nagios Core to version 4.5.13 or later and Nagios XI to version 2026R1.5 or later, per the vendor advisory at https://www.nagios.com/security-disclosures/nagios-core/. If immediate patching is not feasible, the most effective compensating control is to audit all command object definitions and remove or sanitize any that reference custom variable macros ($_HOSTxxx$, $_SERVICExxx$, $_CONTACTxxx$) within shell-executed command strings - this eliminates the injection sink at the cost of losing that monitoring customization. As a secondary control, restrict NRDP endpoint access to known trusted IP ranges via firewall ACLs or the NRDP allowed_hosts configuration, which limits who can supply attacker-controlled macro values; note this does not remove the vulnerability but raises the bar for exploitation. Review the upstream Changelog at https://github.com/NagiosEnterprises/nagioscore/blob/master/Changelog for additional patch context.
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by cross-site scripting (XSS). Rated medium severity (CVSS 6.1), this vulnerabili
Snoopy 1.0 in Nagios XI 5.5.6 allows remote unauthenticated attackers to execute arbitrary commands via a crafted HTTP r
SQL injection vulnerability in the core config manager in Nagios XI 5.2.x through 5.4.x before 5.4.13 allows an attacker
Authentication bypass vulnerability in the core config manager in Nagios XI 5.2.x through 5.4.x before 5.4.13 allows an
A path traversal vulnerability exists in Nagios XI below version 5.8.5 AutoDiscovery component and could lead to post au
Nagios XI before 5.6.6 allows remote command execution as root. Rated high severity (CVSS 8.8), this vulnerability is re
A privilege escalation vulnerability in Nagios XI 5.2.x through 5.4.x before 5.4.13 allows an attacker to leverage an RC
Remote command execution (RCE) vulnerability in Nagios XI 5.2.x through 5.4.x before 5.4.13 allows an attacker to execut
SQL injection vulnerability in functions/prepend_adm.php in Nagios Core Config Manager in Nagios XI before 2012R2.4 allo
Same weakness CWE-78 – OS Command Injection
View allVendor StatusVendor
SUSE
Severity: ModerateShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-57345
GHSA-r6wg-9vj9-rm67