Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify authenticated Nagios admin target
-
DeliveryCraft malicious page with matching NagFormId/nagFormId POST body
-
ExploitLure admin to trigger cross-site form submission
-
ExecutionRequest reaches cmd.cgi with no Cookie header
-
PersistDouble-submit CSRF check satisfied by matching body values
-
ImpactNagios command executes as victim admin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The victim must be currently authenticated to the Nagios web interface in the same browser session at the time the cross-site request is triggered - exploitation depends entirely on the victim holding an active Nagios session. The attacker must be able to cause the victim's browser to submit a POST to cmd.cgi (e.g., via a malicious web page, phishing email, or injected content). The core bypass requires that the POST request arrives at cmd.cgi without a Cookie header, allowing the server to accept matching NagFormId/nagFormId values from the POST body alone rather than comparing them against a session-bound cookie value. This scenario is plausible in cross-origin contexts where cookie transmission is suppressed (e.g., by cookie policies, browser partitioning, or crafted requests). Exploitation is limited by the UI:A requirement - it cannot be automated against unauthenticated users. Impact scope is also bounded by the victim's Nagios privilege level; commands executed will reflect whatever the authenticated user is permitted to issue. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N) scores at 6.9, reflecting a network-reachable, low-complexity attack requiring active user interaction but carrying high integrity impact. The UI:A requirement is the primary real-world friction - a currently authenticated Nagios user must be tricked into triggering the cross-site request, typically via a link or embedded content on an attacker-controlled page. This limits mass exploitation but is trivially weaponizable in targeted attacks against Nagios administrators, who by definition have access to impactful monitoring commands. EPSS data is not available in the provided intelligence; KEV status is not confirmed, and no POC is publicly identified. Despite the moderate CVSS score, the organizational impact can be severe: a successful CSRF against an admin could disable monitoring, suppress alerts, or suppress downtime notifications - actions that could mask a concurrent breach. The bypass mechanism (empty cookie + matching POST values) is a well-known antipattern, meaning exploitation complexity is low for an informed attacker even without a published PoC. |
| Exploit ScenarioDerived | An attacker identifies a Nagios administrator who is currently logged into the Nagios web interface. The attacker sends the administrator a phishing link to a page hosting a hidden form that POSTs to cmd.cgi with matching NagFormId and nagFormId values, omitting or manipulating the Cookie header so the CSRF check falls into the vulnerable code path. When the administrator's browser submits the form, Nagios executes the embedded command - such as disabling all host notifications - under the victim's authenticated session, with no indication to the victim that anything occurred. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 26, 2026
Cross-site request forgery in Nagios Core (before 4.5.13) and Nagios XI (before 2026R1.5) allows an attacker to execute arbitrary Nagios commands on behalf of an authenticated user by exploiting a bypass in the double-submit cookie CSRF protection implemented in cmd.cgi. When the Cookie header is absent in a POST request, the server's CSRF check can be satisfied simply by supplying matching NagFormId and nagFormId values in the POST body - a condition entirely within the attacker's control. No confirmed active exploitation (not in CISA KEV) and no public exploit code identified at time of analysis, though the technique is well-understood and the bypass mechanism is straightforward to reproduce.
RemediationAI
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/. Patched versions should enforce that the double-submit CSRF token is tied to an active session cookie, rejecting requests where the Cookie header is absent rather than falling back to a body-only comparison. As a compensating control where immediate patching is not possible, restrict access to cmd.cgi at the web server or network perimeter level to known, trusted internal IP ranges - this reduces the attack surface by making it harder for an attacker to route a cross-site POST to the endpoint from an external origin. Additionally, enforcing SameSite=Strict or SameSite=Lax on Nagios session cookies at the web server level (e.g., via Apache Header directives) would prevent browsers from sending session cookies on cross-origin requests, neutralizing the CSRF vector independently of the application-level fix. Note that the SameSite workaround depends on browser enforcement and does not address the root logic flaw.
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
Nagios Core and Nagios XI both expose cmd.cgi, the command submission endpoint used to issue monitoring actions such as host/service checks, acknowledgements, notifications, and downtime scheduling. The affected implementation relies on the double-submit cookie pattern for CSRF protection: a secret token is written to a cookie and echoed into the form as NagFormId/nagFormId, with the server verifying they match. The critical flaw (CWE-352) is that when no Cookie header accompanies the request, the server does not enforce that the form tokens correspond to any session-bound value - it simply checks that NagFormId and nagFormId match each other. Because both values are in the POST body, an attacker controls them entirely and can trivially satisfy the check. Affected CPEs are cpe:2.3:a:nagios_enterprises,_llc.:nagios_core:*:*:*:*:*:*:*:* (all versions prior to 4.5.13) and cpe:2.3:a:nagios_enterprises,_llc.:nagios_xi:*:*:*:*:*:*:*:* (all versions prior to 2026R1.5).
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:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable CSRF requiring authenticated victim interaction (UI:R, PR:N); integrity-only impact on Nagios commands; no scope change or confidentiality/availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Nagios Core before 4.5.13 and Nagios XI before 2026R1.5 contains a CSRF vulnerability in cmd.cgi. When no Cookie header is present, the double-submit cookie protection can be bypassed by supplying matching NagFormId and nagFormId values in the POST body, allowing a cross-site request to execute Nagios commands as a currently authenticated user.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
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
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.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-66599
GHSA-xm5q-p2r5-r5wj
NVD
CVE.org
EPSS
Exploit-DB