module

LibreNMS Authenticated RCE (CVE-2024-51092)

Disclosed
Nov 15, 2024
Created
Jan 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.

Authors

murrant (Tony Murray)
Takahiro Yokoyama

Platform

Linux,Unix

Architectures

cmd

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.