MODULE

LibreNMS Authenticated RCE (CVE-2024-51092)

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

LibreNMS Authenticated RCE (CVE-2024-51092)

Disclosed
11/15/2024
Created
01/20/2025

Description

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.

Author(s)

  • murrant (Tony Murray)
  • Takahiro Yokoyama

Platform

Linux

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/librenms_authenticated_rce_cve_2024_51092
msf exploit(librenms_authenticated_rce_cve_2024_51092) > show targets
    ...targets...
msf exploit(librenms_authenticated_rce_cve_2024_51092) > set TARGET < target-id >
msf exploit(librenms_authenticated_rce_cve_2024_51092) > show options
    ...show and set options...
msf exploit(librenms_authenticated_rce_cve_2024_51092) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;