CVE-2026-48548
Nagios vulnerability analysis and mitigation

Overview

CVE-2026-48548 is a Cross-Site Request Forgery (CSRF) vulnerability in Nagios Core's cmd.cgi component where the CSRF protection mechanism incorrectly passes validation when the NagFormId cookie is absent. This flaw affects all versions of Nagios Core before 4.5.12 and allows unauthenticated attackers to craft malicious cross-site POST requests that execute arbitrary Nagios commands on behalf of an authenticated user. The vulnerability was published on August 26, 2026, with a patch released in version 4.5.12 on March 25, 2026. It carries a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 6.9 (Medium) (GitHub Advisory, Feedly).

Technical details

The root cause is classified as CWE-352 (Cross-Site Request Forgery), stemming from a logic flaw in the CSRF token validation routine within cmd.cgi. Specifically, the protection mechanism is designed to validate the NagFormId cookie, but it incorrectly treats the absence of the cookie as a passing condition rather than a failure — effectively bypassing the CSRF check entirely. An attacker can exploit this by hosting a malicious web page containing a crafted HTML form that submits a POST request to the victim's Nagios instance; when an authenticated Nagios user visits the attacker-controlled page, the browser automatically includes session cookies, and the absent NagFormId cookie causes the CSRF check to pass. No special privileges or prior authentication are required of the attacker — only that the victim is currently logged into Nagios (GitHub Advisory, Nagios Changelog).

Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary Nagios commands with the full privileges of the authenticated victim user, resulting in a high integrity impact. Attackers could abuse this to disable monitoring checks, acknowledge alerts, schedule downtime, or submit external commands — effectively manipulating the monitoring infrastructure without the victim's knowledge or consent. Confidentiality and availability are not directly impacted by this vulnerability, but tampering with monitoring commands could mask ongoing attacks or infrastructure failures (GitHub Advisory, Feedly).

Exploitability

There is no public proof-of-concept exploit or evidence of in-the-wild exploitation at this time (Feedly). The EPSS score is approximately 0.139%, placing it in the 4th percentile for exploitation likelihood within 30 days (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and NVD's SSVC assessment classifies exploitation as "none" and the attack as non-automatable. No threat actor attribution has been reported.

Exploitation steps

  1. Reconnaissance: Identify a target Nagios Core instance (version < 4.5.12) accessible via a web browser, using tools like Shodan or Censys to find internet-facing deployments.
  2. Craft malicious page: Create an attacker-controlled web page containing an HTML form that auto-submits a POST request to the target's cmd.cgi endpoint (e.g., https://nagios.target.com/nagios/cgi-bin/cmd.cgi) with desired Nagios command parameters (e.g., disabling host checks or submitting external commands).
  3. Exploit missing cookie check: Ensure the crafted request does NOT include the NagFormId cookie — since the CSRF validation logic passes when this cookie is absent, no valid token is needed.
  4. Deliver to victim: Trick an authenticated Nagios administrator into visiting the malicious page via phishing, a malicious link, or a compromised website. The victim's browser will automatically include their Nagios session cookies in the cross-origin POST request.
  5. Command execution: The Nagios server processes the POST request as if it were legitimately submitted by the authenticated user, executing the attacker-specified Nagios command with the victim's privileges (GitHub Advisory, Feedly).

Indicators of compromise

  • Logs: Nagios access logs showing POST requests to cmd.cgi from unexpected referrer origins or with no Referer header; commands submitted at unusual times or outside normal administrative hours.
  • Logs: Nagios command log entries reflecting unexpected actions (e.g., mass disabling of checks, unexpected downtime scheduling, or external command submissions) that do not correspond to known administrator activity.
  • Network: HTTP POST requests to /nagios/cgi-bin/cmd.cgi originating from sessions where the NagFormId cookie is absent in the request headers.
  • Application: Unexpected changes to Nagios monitoring configuration state — such as hosts or services with checks suddenly disabled, or spurious acknowledgements — without corresponding change records from administrators.

Mitigation and workarounds

The primary remediation is to upgrade Nagios Core to version 4.5.12 or later, which fixes the CSRF cookie validation logic in cmd.cgi (Nagios Changelog, GitHub Advisory). Note that version 4.5.13 and 4.5.14 include additional CSRF and security fixes and are preferred upgrade targets. As interim workarounds: restrict access to the Nagios web interface to trusted internal networks only; enforce SameSite=Strict or SameSite=Lax cookie policies at the web server level to mitigate cross-origin request risks; and educate Nagios administrators to avoid clicking untrusted links while authenticated to Nagios (Feedly).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nagios4

Affected

sid

nagios4: 4.5.12+ds-1

Fixed

trixie

nagios4

Affected

Ubuntu

Unknown

devel

nagios4

Unknown

focal (esm-apps)

nagios4

Unknown

jammy

nagios4

Unknown

jammy (esm-apps)

nagios4

Unknown

noble

nagios4

Unknown

noble (esm-apps)

nagios4

Unknown

resolute

nagios4

Unknown

resolute (esm-apps)

nagios4

Unknown

SourceThis report was generated using AI

Related Nagios vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-48554HIGH7.7
  • Nagios logoNagios
  • nagios4
NoNoAug 12, 2026
CVE-2026-48553HIGH7.7
  • Nagios logoNagios
  • cpe:2.3:a:nagios:nagios_xi
NoNoAug 12, 2026
CVE-2026-48549MEDIUM6.9
  • Nagios logoNagios
  • nagios4
NoNoAug 26, 2026
CVE-2026-48548MEDIUM6.9
  • Nagios logoNagios
  • nagios4
NoYesAug 26, 2026
CVE-2026-48552MEDIUM5.1
  • Nagios logoNagios
  • nagios4
NoNoAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management