CVE-2025-54138

High

Description

LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems. LibreNMS versions 25.6.0 and below contain an architectural vulnerability in the ajax_form.php endpoint that permits Remote File Inclusion based on user-controlled POST input. The application directly uses the type parameter to dynamically include .inc.php files from the trusted path includes/html/forms/, without validation or allowlisting. This pattern introduces a latent Remote Code Execution (RCE) vector if an attacker can stage a file in this include path — for example, via symlink, development misconfiguration, or chained vulnerabilities. This is fixed in version 25.7.0.

SeverityHigh
CVSS7.5
Exploit probability—
ProductLibrenms
PublishedJul 22, 2025
First seenJul 22, 2025
Weakness typeCWE-98CWE-98

How to fix

Update
  • librenms librenms25.7.0 or later
  • librenms/librenms25.7.0 or later

Affected products

ProductAffected versionsFixed in
librenms librenmsv < 25.7.025.7.0
librenms/librenmsPackagistv < 25.7.025.7.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.