Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. librenms/librenms
  4. ›
  5. CVE-2024-51092

CVE-2024-51092: LibreNMS has an Authenticated OS Command Injection

November 15, 2024

An authenticated attacker can create dangerous directory names on the system and alter sensitive configuration parameters through the web portal. Those two defects combined then allows to inject arbitrary OS commands inside shell_exec() calls, thus achieving arbitrary code execution.

With all this, an authenticated attacker can:

  • Create a malicious Device with shell metacharacters inside its hostname
  • Force the creation of directory containing shell metacharacters through the PollDevice job
  • Modify the snmpget configuration variable to point to a valid system binary, while also using the directory created in the previous step via a path traversal (i.e: /path/to/install/dir/rrd/<DEVICE_HOSTNAME>/../../../../../../../bin/ls)
  • Trigger a code execution via the shell_exec() call contained in the AboutController.php script

References

  • github.com/advisories/GHSA-x645-6pf9-xwxw
  • github.com/librenms/librenms
  • github.com/librenms/librenms/security/advisories/GHSA-x645-6pf9-xwxw
  • nvd.nist.gov/vuln/detail/CVE-2024-51092

Code Behaviors & Features

Detect and mitigate CVE-2024-51092 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 24.10.0

Fixed versions

  • 24.10.0

Solution

Upgrade to version 24.10.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/librenms/librenms/CVE-2024-51092.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:06 +0000.