Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft hidden form targeting cmd.cgi
-
DeliveryDeliver malicious link to authenticated admin
-
ExploitAdmin browser loads attacker page
-
ExecutionBrowser auto-submits cross-origin POST without NagFormId cookie
-
PersistAbsent cookie passes broken validation
-
ImpactArbitrary Nagios command executes as 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 Nagios Core with an active browser session and must be induced to visit or load a page under the attacker's control that triggers a cross-origin POST to cmd.cgi. The CSRF protection bypass is unconditional - no special server configuration is required beyond a standard Nagios Core web interface deployment running any version prior to 4.5.12. Exploitation is limited by the mandatory user interaction (UI:A in CVSS 4.0): the attacker cannot exploit this autonomously against passive victims. There is no confidentiality exposure; the attacker cannot read Nagios data, only submit commands. The attack is constrained to actions the victim user is authorized to perform within Nagios. |
| Impact | The CVSS 4.0 score of 6.9 with vector AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N reflects moderate-to-elevated real-world risk. The attacker requires no privileges (PR:N) and no special network position (AV:N), but active victim interaction is mandatory (UI:A), meaning the victim must visit a controlled page while holding an active Nagios session - this meaningfully constrains opportunistic, automated exploitation. EPSS data was not provided in the input, and this CVE is not currently listed in CISA KEV, so no confirmed active exploitation signal exists. The VI:H rating is warranted because successful exploitation allows arbitrary Nagios command execution - disabling monitoring, scheduling false downtime, or silencing alerts - which can undermine the integrity of an organization's entire monitoring posture. No conflicting signals are present between the CVSS vector and the description: both consistently indicate a network-delivered, interaction-dependent integrity attack. The absence of confidentiality and availability impact (VC:N/VA:N) keeps this from reaching critical severity, but the operational integrity consequence for teams relying on Nagios for alerting is non-trivial. |
| Exploit ScenarioDerived | An attacker crafts a webpage containing a hidden HTML form that auto-submits a POST request to the target's Nagios cmd.cgi endpoint, specifying a destructive command such as disabling host notifications or acknowledging all alerts. When a Nagios administrator with an active session visits the attacker-controlled page - via phishing email or malicious link - the browser sends the forged request without including the NagFormId cookie, the broken validation logic accepts it, and the command executes under the administrator's session. No public proof-of-concept code has been identified, but the technique is straightforward for any attacker familiar with CSRF fundamentals. |
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.12 enables remote attackers to execute arbitrary monitoring commands by tricking an authenticated administrator into visiting a malicious page. The flaw in cmd.cgi stems from a logic inversion: the CSRF protection mechanism treats an absent NagFormId cookie as a passing check rather than a failing one, rendering the protection entirely ineffective. The CVSS 4.0 vector (VI:H, UI:A) confirms real integrity risk - an attacker can issue commands under a victim session - though user interaction is required and no public exploit or CISA KEV listing exists at time of analysis.
RemediationAI
The primary fix is to upgrade Nagios Core to version 4.5.12 or later, which corrects the CSRF validation logic so that an absent NagFormId cookie causes validation to fail rather than pass. The vendor advisory at https://www.nagios.com/security-disclosures/nagios-core/ and the upstream Changelog at https://github.com/NagiosEnterprises/nagioscore/blob/master/Changelog confirm patch availability. If an immediate upgrade is not feasible, administrators should restrict access to cmd.cgi at the web server layer (e.g., via IP allowlist or require mutual TLS) to limit which clients can submit commands; note this may affect legitimate remote operations. An additional compensating control is to enforce SameSite=Strict on the Nagios session cookie, which prevents the browser from sending the session cookie on cross-origin POST requests and breaks the CSRF vector without requiring an application change - verify web server and Nagios configuration support for this before relying on it in isolation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package 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 is a widely deployed open-source IT infrastructure monitoring platform; cmd.cgi is its primary command-submission endpoint used to acknowledge alerts, schedule downtime, enable or disable checks, and perform other administrative actions. The CSRF protection relies on a NagFormId cookie as a synchronizer token. CWE-352 (Cross-Site Request Forgery) applies because the server fails to reject state-changing requests that lack a valid CSRF token - specifically, when the cookie is entirely absent the validation logic returns success rather than failure, a classic same-site cookie bypass scenario. Affected versions are identified via CPE cpe:2.3:a:nagios_enterprises,_llc.:nagios_core:*:*:*:*:*:*:*:* covering all releases prior to 4.5.12.
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-delivered CSRF with no attacker privileges (PR:N), mandatory victim interaction (UI:R), integrity-only impact; scope unchanged as commands run within Nagios only.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Nagios Core before 4.5.12 contains a cross-site request forgery vulnerability in cmd.cgi where the CSRF protection mechanism passes validation when the NagFormId cookie is absent. Attackers can craft a malicious cross-site POST request to execute arbitrary Nagios commands as a currently authenticated user without their knowledge or consent.
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.13) and Nagios XI (before 2026R1.5) allows an attacker to execute
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-66598
GHSA-5xj4-4632-2x3r
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB