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

Source: https://junglewise.ai/threats/cve-2024-51092-librenms-authenticated-os-command-injection-in-aboutcontroller  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-08. Updated: 2026-05-14  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/librenms), [librenms/librenms (Packagist)](https://junglewise.ai/threats/technologies/librenms-librenms). Vendors: [Librenms](https://junglewise.ai/threats/vendors/librenms), [Packagist](https://junglewise.ai/threats/vendors/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

  ```sh
  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

- [https://github.com/librenms/librenms/security/advisories/GHSA-x645-6pf9-xwxw](https://github.com/librenms/librenms/security/advisories/GHSA-x645-6pf9-xwxw)
- [https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/librenms_authenticated_rce_cve_2024_51092.rb](https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/librenms_authenticated_rce_cve_2024_51092.rb)

## Related threats

- [LibreNMS LDAP filter injection in external authorization modes](https://junglewise.ai/threats/cve-2026-109357-librenms-before-26-9-0-contains-an-ldap-filter-injection-in-ldap)
- [LibreNMS missing authorization in PortsController::purge](https://junglewise.ai/threats/cve-2026-109356-librenms-before-26-9-0-contains-a-missing-authorization)
- [LibreNMS stored cross-site scripting in Oxidized node list](https://junglewise.ai/threats/cve-2026-109355-librenms-before-26-9-0-contains-a-stored-cross-site-scripting)
- [LibreNMS path traversal in NFSen channel parameter](https://junglewise.ai/threats/cve-2026-109354-librenms-before-26-9-0-contains-a-path-traversal-vulnerability)
- [LibreNMS SQL injection in notifications.inc.php](https://junglewise.ai/threats/cve-2026-109353-librenms-before-26-9-0-contains-an-sql-injection-vulnerability)
