8.5high
Nagios Log Server < 2026R1.0.1 Local Privilege Escalation via Writable Scripts and Sudo Rules
- Severity
- 8.5high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
Nagios Log Server versions prior to 2026R1.0.1 are vulnerable to local privilege escalation due to a combination of sudo misconfiguration and group-writable application directories. The 'www-data' user is a member of the 'nagios' group, which has write access to '/usr/local/nagioslogserver/scripts', while several scripts in this directory are owned by root and may be executed via sudo without a password. A local attacker running as 'www-data' can move one of these root-owned scripts to a backup name and create a replacement script with attacker-controlled content at the original path, then invoke it with sudo. This allows arbitrary commands to be executed with root privileges, providing full compromise of the underlying operating system.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Nagios Log Server | before 2026R1.0.1 | CVE List |
| nagios log_server | before 2026, 2026 | NVD |
All scores
| VulnCheck | 8.5high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Nagios Log Server versions prior to 2026R1.0.1 are vulnerable to local privilege escalation due to a combination of sudo misconfiguration and group-writable application directories. The 'www-data' user is a member of the 'nagios' group, which has write access to '/usr/local/nagioslogserver/scripts', while several scripts in this directory are owned by root and may be executed via sudo without a password. A local attacker running as 'www-data' can move one of these root-owned scripts to a backup name and create a replacement script with attacker-controlled content at the original path, then invoke it with sudo. This allows arbitrary commands to be executed with root privileges, providing full compromise of the underlying operating system.
NVD (es)
Las versiones de Nagios Log Server anteriores a 2026R1.0.1 son vulnerables a la escalada de privilegios local debido a una combinación de mala configuración de sudo y directorios de aplicación con permisos de escritura para el grupo. El usuario 'www-data' es miembro del grupo 'nagios', el cual tiene acceso de escritura a '/usr/local/nagioslogserver/scripts', mientras que varios scripts en este directorio son propiedad de root y pueden ejecutarse a través de sudo sin contraseña. Un atacante local ejecutándose como 'www-data' puede mover uno de estos scripts propiedad de root a un nombre de respaldo y crear un script de reemplazo con contenido controlado por el atacante en la ruta original, y luego invocarlo con sudo. Esto permite que se ejecuten comandos arbitrarios con privilegios de root, lo que proporciona un compromiso total del sistema operativo subyacente.
References
| https://www.nagios.com/products/security/#log-server | patch, vendor-advisory | |
| https://www.nagios.com/changelog/nagios-log-server/nagios-log-server-2026r1-0-1/ | patch, release-notes | |
| https://www.vulncheck.com/advisories/nagios-log-server-local-privilege-escalation-via-writable-scripts-and-sudo-rules | third-party-advisory | |
| https://theyhack.me/Rooting-Nagios-Log-Server/ | exploit, technical-description | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-34323 changed 2026-05-14 | CVE Terms of Use |
| NVD | CVE-2025-34323 changed 2026-10-07 | Public domain |