CVE-2026-48549
Nagios vulnerability analysis and mitigation

Overview

CVE-2026-48549 is a Cross-Site Request Forgery (CSRF) vulnerability in the cmd.cgi component of Nagios Core and Nagios XI. The flaw allows an attacker to bypass the double-submit cookie CSRF protection by supplying matching NagFormId and nagFormId values in the POST body when no Cookie header is present, enabling cross-site requests to execute Nagios commands as an authenticated user. Affected versions include Nagios Core before 4.5.13 and Nagios XI before 2026R1.5. The vulnerability was published on August 26, 2026, and 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). Nagios Core and XI implement a double-submit cookie pattern in cmd.cgi to protect against CSRF; however, when no Cookie header is present in the request, the protection logic fails to properly validate the token. An attacker can craft a malicious web page that submits a POST request to cmd.cgi with matching NagFormId and nagFormId values in the POST body, bypassing the CSRF check entirely. This attack requires no privileges on the Nagios instance itself but does require user interaction — specifically, an authenticated Nagios user must visit the attacker-controlled page. The fix in version 4.5.13 introduced a cgi_cookie_fail_open configuration option and corrected the CSRF cookie validation logic in cmd.cgi (Github Advisory, Nagios Changelog).

Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary Nagios commands with the privileges of the tricked authenticated user, including modifying monitoring configurations, disabling alerts, silencing notifications, or managing service checks. The primary impact is to integrity — an attacker can tamper with the monitoring infrastructure, potentially masking ongoing attacks or disrupting operational visibility. Confidentiality and availability of the Nagios system itself are not directly impacted by this vulnerability (Github Advisory, Feedly).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The EPSS score is approximately 0.168% (6th percentile), indicating a low near-term probability of exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. NVD's SSVC assessment notes the vulnerability is automatable but exploitation is currently assessed as "none" (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify publicly accessible or network-reachable Nagios Core (< 4.5.13) or Nagios XI (< 2026R1.5) instances. Confirm the target is running a vulnerable version via version disclosure in the web UI or HTTP headers.
  2. Craft malicious page: Create an attacker-controlled web page containing a hidden HTML form that submits a POST request to the target's cmd.cgi endpoint (e.g., https://nagios.target.com/nagios/cgi-bin/cmd.cgi).
  3. Bypass CSRF protection: Populate the POST body with matching NagFormId and nagFormId parameter values (any consistent string). Because no Cookie header is sent in a cross-origin POST from the attacker's page, the double-submit cookie check is bypassed.
  4. Embed Nagios command: Include the desired Nagios external command parameters in the POST body (e.g., cmd_typ, cmd_mod, target host/service fields) to disable notifications, acknowledge alerts, or modify check configurations.
  5. Social engineering: Deliver the malicious page link to an authenticated Nagios administrator via phishing email, chat, or other means. When the victim visits the page while logged into Nagios, the browser automatically submits the form, executing the command with the victim's session privileges (Github Advisory, Feedly).

Indicators of compromise

  • Network: Unexpected POST requests to /nagios/cgi-bin/cmd.cgi or equivalent CGI path originating from unusual referrer domains or with no Referer header; cross-origin requests lacking a Cookie header.
  • Logs: Nagios web server access logs showing POST requests to cmd.cgi with NagFormId and nagFormId parameters present in the body but no corresponding session cookie; commands executed by authenticated users at unusual times or from unexpected IP addresses.
  • Application: Unexpected changes to Nagios monitoring configuration, such as disabled notifications, acknowledged alerts, or modified service check intervals that do not correspond to known administrative actions.

Mitigation and workarounds

Upgrade Nagios Core to version 4.5.13 or later, and Nagios XI to version 2026R1.5 or later, which contain fixes for the CSRF cookie validation logic in cmd.cgi (Nagios Changelog, Github Advisory). As an additional hardening measure, enforce strict SameSite=Strict or SameSite=Lax cookie policies on Nagios session cookies to prevent cross-origin requests from carrying session context. Restrict access to the Nagios web interface to trusted networks or VPN, reducing the attack surface for social engineering-based CSRF exploitation. The cgi_cookie_fail_open configuration option introduced in 4.5.13 can be used to control behavior for third-party integrations that interact with cmd.cgi without cookies (Nagios Changelog).

Community reactions

The vulnerability was assigned and disclosed by VulnCheck, which published a dedicated advisory (Feedly). Nagios Enterprises acknowledged the issue via their security disclosures page. The fix was credited to researcher SeungMyung Lee in the Nagios Core 4.5.13 changelog (Nagios Changelog). No significant broader community or media discussion has been identified at this time.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

nagios4

Affected

sid

nagios4

Affected

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