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
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 1% (52nd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-22384
- Weakness: CWE-98
- Affected product: Librenms
- Published:
- Last modified:
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
- https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81
- https://github.com/librenms/librenms/pull/17990
- https://github.com/librenms/librenms/releases/tag/25.7.0
- https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2
Affected products (1)
- cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*
More vulnerabilities in Librenms
- CVE-2022-4070 — Critical (CVSS 9.8): Insufficient Session Expiration in GitHub repository librenms/librenms prior to 22.10.0.
- CVE-2022-29712 — Critical (CVSS 9.8): LibreNMS v22.3.0 was discovered to contain multiple command injection vulnerabilities via the service_ip, hostname, and…
- CVE-2021-44278 — Critical (CVSS 9.8): Librenms 21.11.0 is affected by a path manipulation vulnerability in includes/html/pages/device/showconfig.inc.php.
- CVE-2019-10665 — Critical (CVSS 9.8): An issue was discovered in LibreNMS through 1.47. The scripts that handle the graphing options…
- CVE-2018-20434 — Critical (CVSS 9.8): LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the $_POST['community'] parameter to…
- CVE-2024-51092 — Critical (CVSS 9.1): LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving…
Other CWE-98 (PHP Remote File Inclusion) vulnerabilities
- CVE-2025-25174 — Critical (CVSS 10.0): Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability…
- CVE-2012-10025 — Critical (CVSS 10.0): The WordPress plugin Advanced Custom Fields (ACF) version 3.5.1 and below contains a remote file inclusion (RFI)…
- CVE-2026-41228 — Critical (CVSS 9.9): Froxlor is open source server administration software. Prior to version 2.3.6, the Froxlor API endpoint…
- CVE-2025-31340 — Critical (CVSS 9.9): A improper control of filename for include/require statement in PHP program vulnerability in the retrieve course…
- CVE-2023-5199 — Critical (CVSS 9.9): The PHP to Page plugin for WordPress is vulnerable Local File Inclusion to Remote Code Execution in versions up to, and…
- CVE-2026-7515 — Critical (CVSS 9.8): The BetterDocs Pro plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 3.8.0…
Browse all CWE-98 (PHP Remote File Inclusion) vulnerabilities →