CVE-2026-84194
8.6LibreNMS · LibreNMS
LibreNMS contains an OS command injection vulnerability in its libvirt discovery feature, allowing authenticated administrators to execute arbitrary commands via crafted device hostnames.
Executive summary
A high-severity OS command injection vulnerability in LibreNMS allows authenticated administrators to achieve remote code execution on the underlying host.
Vulnerability
This is an OS command injection flaw (CWE-78) triggered when the libvirt discovery module is enabled. The application fails to sanitize the device hostname before passing it to system shell commands, allowing an authenticated administrator to inject and execute arbitrary OS commands.
Business impact
Successful exploitation allows an authenticated attacker with administrative privileges to execute arbitrary code with the permissions of the LibreNMS discovery worker process. Given the CVSS score of 8.6, this represents a significant security risk that could lead to full system compromise, lateral movement within the network, and unauthorized access to sensitive monitoring data.
Remediation
Immediate Action: Update LibreNMS to version 26.4.0 or later to include the necessary input sanitization fixes.
Proactive Monitoring: Review system logs for suspicious process execution patterns originating from the LibreNMS discovery worker or unexpected modifications to device hostnames.
Compensating Controls: If an immediate update is not feasible, consider disabling libvirt support (enable_libvirt=false) within the LibreNMS configuration to neutralize the vulnerable code path.
Exploitation status
Public Exploit Available: No (exploit_available unknown).
Analyst recommendation
This vulnerability presents a clear path to remote code execution for any actor with administrative access to the LibreNMS interface. Organizations should prioritize updating to version 26.4.0 immediately to eliminate the vulnerable code path. If patching cannot be performed during the current cycle, disabling the affected libvirt discovery module is a necessary step to maintain the integrity of the monitoring infrastructure.
More LibreNMS CVEs
Sources
Originally found and disclosed by 0xCraig, per the CVE Program record.
- GitHub Security Advisory (GHSA-wff2-9gjr-95f3) Vendor advisory
- VulnCheck Advisory: LibreNMS 23.10.0 before 26.4.0 OS Command Injection via Hostname Third-party advisory