CVE-2025-54138

CVE-2025-54138 is a high-severity vulnerability in Librenms with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-98.

Key facts

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.

Frequently asked questions

What is CVE-2025-54138?
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.
How severe is CVE-2025-54138?
CVE-2025-54138 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2025-54138 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (52nd percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-54138?
CVE-2025-54138 affects Librenms. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-54138?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2025-54138 have an EU (EUVD) identifier?
Yes. CVE-2025-54138 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-22384.
When was CVE-2025-54138 published?
CVE-2025-54138 was published on 2025-07-22 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Librenms

All CVEs affecting Librenms →

Other CWE-98 (PHP Remote File Inclusion) vulnerabilities

Browse all CWE-98 (PHP Remote File Inclusion) vulnerabilities →