CVE-2024-51092: LibreNMS OS command injection in AboutController and SettingsController

CVE-2024-51092 · Severity: critical · CVSS 9.1 · Published 2026-05-08

LibreNMS, a popular open-source network monitoring system, contains a vulnerability that allows an authenticated user to take full control of the server. By creating a device with a specially crafted name and modifying system settings, an attacker can force the server to execute malicious commands. This could lead to a complete compromise of the monitoring infrastructure, unauthorized access to network data, and a foothold for further attacks within the corporate network.

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

Quick answers

Is CVE-2024-51092 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-51092 being exploited in the wild.
How severe is CVE-2024-51092?
Critical severity, with a CVSS score of 9.1, published 8 May 2026.
Which products and versions are affected?
Librenms < 24.10.0, <= 24.9.1; librenms/librenms (Packagist) <= 24.9.1, ECOSYSTEM:introduced=0,fixed=24.10.0.
Is there a fix for CVE-2024-51092?
Yes. librenms/librenms (Packagist): upgrade to 24.10.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-51092 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2024-51092?
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.

How to fix

  • librenms/librenms (Packagist): upgrade to 24.10.0 or later
    composer require librenms/librenms:^24.10.0

Technical details

LibreNMS is vulnerable to a multi-stage OS command injection. An authenticated attacker can first exploit a lack of sanitization in the 'Add Device' hostname field to create a directory containing shell metacharacters via the PollDevice job. Next, the attacker can use the SettingsController to update the 'snmpget' configuration parameter, pointing it to a system binary using a path traversal that includes the malicious directory. Finally, by visiting the 'About' page, the AboutController executes a shell_exec() call using the poisoned 'snmpget' path, resulting in arbitrary code execution with the privileges of the web server user. This vulnerability is addressed in version 24.10.0.

Affected products

  • LibreNMS LibreNMS < 24.10.0

Identifiers

  • CVE-2024-51092
  • GHSA-x645-6pf9-xwxw

Timeline

  • 2024-11-14: advisory: Vendor security advisory published (GHSA-x645-6pf9-xwxw)
  • 2024-11-15: other: Metasploit module released
  • 2026-05-08: disclosed: NVD publication date

References

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