LibreNMS remote code execution in Binary Locations config

Severity: high · CVSS 8.5 · Published 2026-04-13

LibreNMS, an open-source network monitoring system, is vulnerable to a security flaw that allows an administrator to take full control of the underlying server. By manipulating settings intended for network diagnostic tools, a malicious user with high-level access can force the server to download and execute unauthorized scripts. This could lead to a complete system compromise, data theft, or a foothold for further attacks within the corporate network.

Technologies: Librenms, librenms/librenms (Packagist). Vendors: Librenms, Packagist.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
High severity, with a CVSS score of 8.5, published 13 April 2026.
Which products and versions are affected?
Librenms >= 1.48, < 26.3.0; librenms/librenms (Packagist) < 26.3.0.
Is there a fix for This vulnerability?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is This vulnerability attacked?
It is attacked over the network, in a network appliance.
Am I affected?
Check whether you run Librenms or librenms/librenms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

LibreNMS versions prior to 26.3.0 contain an OS command injection vulnerability. The application allows administrative users to configure absolute binary paths for network diagnostic tools (like whois or ping) via the 'Binary Locations' settings. An attacker can modify these paths to point to other system binaries, such as 'wget' or 'bash'. By then invoking the '/ajax/netcmd' endpoint and bypassing the 'ip_or_hostname' input filter, the attacker can download a malicious script and subsequently execute it. This exploit requires administrative privileges but results in full remote code execution as the web server user. The issue is addressed in version 26.3.0.

Affected products

  • LibreNMS LibreNMS >= 1.48, < 26.3.0

Timeline

  • 2026-03-24: advisory: Original advisory GHSA-pr3g-phhr-h8fh published
  • 2026-04-13: disclosed: CVE-2026-6204 published and duplicate advisory GHSA-7549-ggpq-22w8 created
  • 2026-04-14: other: Duplicate advisory GHSA-7549-ggpq-22w8 withdrawn in favor of original

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.