Description
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.
Published: 2026-08-26
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in Nagios Core’s cmd.cgi script, where the cross‑site request forgery validation fails when the NagFormId cookie is missing. An attacker can construct a malicious POST request that a user’s browser will submit while the user is authenticated, allowing the attacker to execute arbitrary Nagios commands as that user. This flaw gives the attacker control over the Nagios system with the privileges of the victim, potentially leading to full system compromise, data exfiltration, or denial of service. The weakness is identified as CWE‑352.

Affected Systems

Nagios Enterprises’ Nagios Core versions earlier than 4.5.12 are affected. The issue was present in all releases before the 4.5.12 update, which removes the flaw by requiring a valid NagFormId cookie for cmd.cgi POST requests.

Risk and Exploitability

With a CVSS score of 6.9 the flaw is rated as moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no publicly known exploits at the time of this analysis. The likely attack vector is a web‑based CSRF exploit that hinges on a victim having an active authenticated session to the Nagios web interface. While it does not allow an attacker to directly exploit unauthenticated users, the impact is high because any authenticated victim can be coerced into executing privileged commands.

Generated by OpenCVE AI on August 26, 2026 at 17:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Nagios Core to version 4.5.12 or later, which requires the NagFormId cookie for cmd.cgi POST requests
  • If an immediate upgrade is not possible, modify Nagios to enforce presence of the NagFormId cookie before processing cmd.cgi requests to restore CSRF protection
  • Restrict access to the cmd.cgi endpoint to trusted IP addresses or require additional authentication tokens to reduce the window for CSRF exploitation

Generated by OpenCVE AI on August 26, 2026 at 17:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 26 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Nagios Core CSRF via cmd.cgi
First Time appeared Nagios
Nagios nagios Core
Weaknesses CWE-352
CPEs cpe:2.3:a:nagios:nagios_core:*:*:*:*:*:*:*:*
Vendors & Products Nagios
Nagios nagios Core
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


Subscriptions

Nagios Nagios Core
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-26T17:29:31.213Z

Reserved: 2026-05-21T18:34:46.418Z

Link: CVE-2026-48548

cve-icon Vulnrichment

Updated: 2026-08-26T17:29:23.539Z

cve-icon NVD

Status : Received

Published: 2026-08-26T16:16:26.790

Modified: 2026-08-26T18:16:33.860

Link: CVE-2026-48548

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T17:30:10Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)