PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2026-48554: 
Nagios vulnerability analysis and mitigation

Overview

CVE-2026-48554 is an authenticated remote code execution (RCE) vulnerability in Nagios Core and Nagios XI caused by unfiltered NOTIFICATION-family macro substitution through the com_data parameter. It affects Nagios Core before version 4.5.14 and Nagios XI before version 2026R1.7. The vulnerability was disclosed on August 12, 2026, with a patch released for Nagios Core 4.5.14 on August 5, 2026. It carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 base score of 7.7 (High) (GitHub Advisory, Nagios Changelog).

Technical details

The root cause is improper neutralization of special elements used in OS commands (CWE-78), specifically the failure to sanitize the $NOTIFICATIONCOMMENT$ and $NOTIFICATIONAUTHOR$ macros before they are substituted into shell-executed notification command lines. When a notification command definition references these macros in a shell-reachable position, user-supplied input passed via the com_data parameter is expanded without filtering, enabling OS command injection. Exploitation requires a non-default configuration where a notification command explicitly references these macros in a shell-executed context, which limits the attack surface but does not eliminate it in real-world deployments. The vulnerability was discovered and reported by Zach Hanley of Horizon3.ai (Nagios Changelog, GitHub Advisory).

Impact

Successful exploitation allows any authenticated Nagios UI user with low-level privileges to execute arbitrary OS commands as the nagios system user. This results in high confidentiality, integrity, and availability impact on the vulnerable system, potentially enabling an attacker to read sensitive monitoring configuration and credentials, modify system files, disrupt monitoring operations, or use the Nagios server as a pivot point for lateral movement within the monitored infrastructure (GitHub Advisory, Nagios Changelog).

Exploitability

As of the disclosure date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (GitHub Advisory). The NVD SSVC assessment classifies exploitation as "none" at this time. The EPSS score is approximately 0.52% (42nd percentile), indicating a relatively low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained by the requirement for authentication and a non-default notification command configuration referencing the vulnerable macros.

Exploitation steps

  1. Reconnaissance: Identify Nagios Core or Nagios XI instances running versions prior to 4.5.14 / 2026R1.7 using network scanning tools (e.g., Shodan, Censys) or by accessing the Nagios web UI login page, which often displays version information.
  2. Obtain credentials: Acquire valid Nagios UI credentials with at least low-level privileges (e.g., through credential stuffing, phishing, or use of default credentials).
  3. Verify vulnerable configuration: Confirm that a notification command in the Nagios configuration references $NOTIFICATIONCOMMENT$ or $NOTIFICATIONAUTHOR$ in a shell-executed command line (e.g., a notify-by-email command that passes these macros as shell arguments without quoting or sanitization).
  4. Craft malicious payload: Prepare a notification comment or author field containing OS command injection syntax (e.g., ; id; whoami or backtick-enclosed commands) that will be substituted into the shell command.
  5. Trigger notification: Submit an acknowledgment or comment via the Nagios UI (e.g., through the cmd.cgi interface) using the com_data parameter, embedding the malicious payload in the comment or author field.
  6. Achieve code execution: When Nagios processes the notification and expands the macro, the injected command is executed as the nagios OS user, enabling reverse shell establishment, data exfiltration, or further system compromise (GitHub Advisory, Nagios Changelog).

Indicators of compromise

  • Network: Unexpected outbound connections from the Nagios server to external IPs, particularly on non-standard ports, following notification events; reverse shell traffic originating from the Nagios process.
  • Logs: Nagios access logs showing POST requests to cmd.cgi with unusual or encoded values in the com_data parameter; shell metacharacters (;, |, `, $()) appearing in notification comment fields in nagios.log.
  • Process: Unexpected child processes spawned by the Nagios daemon (e.g., /bin/bash, curl, wget, nc, python) visible via process monitoring tools such as ps or auditd.
  • File System: New or modified files in Nagios directories (e.g., /usr/local/nagios/, /var/log/nagios/) created by the nagios user unexpectedly; presence of web shells or scripts not part of the standard installation.
  • Audit: Linux auditd records showing execve syscalls by the nagios user for unexpected binaries following notification command execution.

Mitigation and workarounds

Upgrade Nagios Core to version 4.5.14 or later, and Nagios XI to version 2026R1.7 or later, which sanitize notification macros before shell substitution (Nagios Changelog). As an interim workaround, review all notification command definitions and remove or avoid referencing $NOTIFICATIONCOMMENT$ and $NOTIFICATIONAUTHOR$ in shell-executed command lines, or ensure these values are properly quoted and sanitized if they must be used. Additionally, restrict Nagios UI access to trusted users only and enforce the principle of least privilege for all accounts with access to the notification submission interface (GitHub Advisory).

Community reactions

The vulnerability was credited to Zach Hanley of Horizon3.ai, who reported it to Nagios Enterprises, and the fix was implemented by Emmett Kapsner as noted in the official Nagios Core 4.5.14 changelog (Nagios Changelog). VulnCheck published an advisory detailing the vulnerability mechanics. No significant broader community or social media discussion has been identified at this time.

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-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
CVE-2026-48552MEDIUM5.1
  • Nagios logoNagios
  • nagios4
NoYesAug 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