---
id: CVE-2025-34322
title: >-
  Nagios Log Server versions prior to 2026R1.0.1 contain an authenticated
  command injection vulnerability in the experimental 'Natural Language Queries'
  feature
summary: >-
  Nagios Log Server versions prior to 2026R1.0.1 contain an authenticated
  command injection vulnerability in the experimental 'Natural Language Queries'
  feature. When this feature is configured, certain user-controlled
  settings—including m…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: nagios
product: log_server
affected:
  - log_server < 2026
  - log_server = 2026
patched:
  - log_server 2026
published: '2025-11-17'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T21:10:00.200'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-34322'
references:
  - url: 'https://theyhack.me/Rooting-Nagios-Log-Server/'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.nagios.com/changelog/nagios-log-server/nagios-log-server-2026r1-0-1/
    label: disclosure@vulncheck.com
  - url: 'https://www.nagios.com/products/security/#log-server'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/nagios-log-server-authenticated-command-injection-via-natural-language-queries
    label: disclosure@vulncheck.com
tags:
  - nvd
  - exploit-available
epss: 0.09475
epssPercentile: 0.95316
exploits:
  github: 1
  githubRepos:
    - >-
      https://github.com/mcorybillington/CVE-2025-34322_CVE-2025-34323_Nagios_Log_Server
  checkedAt: '2026-10-07T21:54:50.426Z'
exploitAvailable: true
ingestedAt: '2026-10-07T21:54:15.061Z'
---

## Overview

Nagios Log Server versions prior to 2026R1.0.1 contain an authenticated command injection vulnerability in the experimental 'Natural Language Queries' feature. When this feature is configured, certain user-controlled settings—including model selection and connection parameters—are read from the global configuration and concatenated into a shell command that is executed via shell_exec() without proper input handling or command-line argument sanitation. An authenticated user with access to the 'Global Settings' page can supply crafted values in these fields to inject additional shell commands, resulting in arbitrary command execution as the 'www-data' user and compromise of the Log Server host.

## Affected

- `log_server < 2026`
- `log_server = 2026`

## Remediation

Upgrade past the affected range:

- `log_server 2026`
