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. It carries a CVSS v3.1 score of 6.5 (Medium) and a CVSS v4.0 score of 6.9 (Medium) (Github Advisory, Feedly).

Technical details

The root cause is CWE-352 (Cross-Site Request Forgery), specifically a flawed implementation of the double-submit cookie pattern in cmd.cgi. The protection mechanism relies on matching a cookie value against a form field value, but when no Cookie header is sent with the request, the server-side check can be satisfied entirely by supplying identical NagFormId and nagFormId values in the POST body — effectively bypassing the anti-CSRF control. Exploitation requires no privileges on the attacker's part but does require active user interaction: the victim must be authenticated to Nagios and visit a malicious page or click a crafted link. The vulnerability was credited to researcher SeungMyung Lee and was patched in Nagios Core 4.5.13 (Nagios Changelog, VulnCheck Advisory).

Impact

Successful exploitation allows an unauthenticated attacker to trick an authenticated Nagios user into unknowingly submitting arbitrary Nagios commands, including modifying monitoring configurations, disabling alerts, silencing notifications, or managing service checks. The primary impact is to integrity — an attacker can manipulate the monitoring environment, potentially masking ongoing attacks or disrupting operational visibility. Confidentiality and availability are not directly impacted by this vulnerability (Github Advisory, Feedly).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Feedly). The EPSS score is approximately 0.168%, placing it in the 6th percentile for exploitation likelihood within 30 days (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.

Exploitation steps

  1. Reconnaissance: Identify internet-facing Nagios Core or Nagios XI instances running versions prior to 4.5.13 or 2026R1.5, respectively, using tools like Shodan or Censys.
  2. Craft malicious page: Create an HTML page containing a hidden form that targets the victim's Nagios cmd.cgi endpoint (e.g., https://nagios.target.com/nagios/cgi-bin/cmd.cgi) with a POST request.
  3. Bypass CSRF protection: Populate both the NagFormId and nagFormId POST body fields with identical arbitrary values. Because no Cookie header is sent in a cross-origin request under certain browser/server configurations, the server's double-submit cookie check is satisfied by the matching POST body values alone.
  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 alter monitoring configurations.
  5. Deliver to victim: Lure an authenticated Nagios administrator to visit the malicious page via phishing, a malicious link, or a compromised website. The victim's browser submits the forged request using their active session credentials.
  6. Command executes: The Nagios server processes the command as if submitted by the authenticated user, applying the attacker-specified changes to the monitoring environment (VulnCheck Advisory, Nagios Changelog).

Indicators of compromise

  • Logs: Nagios access logs showing POST requests to cmd.cgi from unexpected referrer origins or with no Referer header; requests where NagFormId and nagFormId POST parameters are present but no corresponding Cookie header is logged.
  • Nagios Audit/Command Logs: Unexpected or unauthorized Nagios external commands (e.g., DISABLE_NOTIFICATIONS, ACKNOWLEDGE_HOST_PROBLEM, DISABLE_SVC_CHECK) attributed to legitimate user accounts at unusual times.
  • Network: Cross-origin POST requests to /nagios/cgi-bin/cmd.cgi originating from external or untrusted domains visible in proxy or WAF logs.

Mitigation and workarounds

Upgrade Nagios Core to version 4.5.13 or later, and Nagios XI to version 2026R1.5 or later, which include fixes for the CSRF cookie validation logic in cmd.cgi (Nagios Changelog, Nagios Security). As a configuration-level workaround, enforce strict SameSite=Strict or SameSite=Lax cookie policies and ensure Cookie headers are required for all cmd.cgi requests. Additionally, restrict access to the Nagios web interface to trusted networks or VPN-only access to reduce the attack surface (VulnCheck Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nagios4: 4.4.6-4+deb12u2

Fixed

sid

nagios4: 4.5.14+ds-1

Fixed

trixie

nagios4: 4.4.6-4.1+deb13u2

Fixed

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

Source: This report was generated using AI

Related Nagios vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-119742HIGH8.6
  • Nagios logoNagios
  • icinga
NoNoNov 03, 2026
CVE-2026-48554HIGH7.7
  • Nagios logoNagios
  • nagios4
NoYesAug 12, 2026
CVE-2026-48553HIGH7.7
  • Nagios logoNagios
  • cpe:2.3:a:nagios:nagios_xi
NoYesAug 12, 2026
CVE-2026-48549MEDIUM6.9
  • Nagios logoNagios
  • nagios4
NoYesAug 26, 2026
CVE-2026-48548MEDIUM6.9
  • Nagios logoNagios
  • nagios4
NoYesAug 26, 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

Additional Wiz resources

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