CVE-2025-54138 in Librenms
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-controlle...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Librenms | Librenms | < 25.7.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-54138 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-277843-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2025-07-22 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-98: CWE-98
Related attack patterns (CAPEC)
CAPEC-193 PHP Remote File Inclusion via CWE-98
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
LibreNMS versions 25.6.0 and below are vulnerable to Remote File Inclusion (RFI) via the ajax_form.php endpoint, allowing attackers to execute arbitrary code.
The vulnerability arises from the application's use of the 'type' parameter in POST requests to dynamically include files. An attacker can manipulate this parameter to include and execute arbitrary files on the server.
Questions
What is CVE-2025-54138?
LibreNMS versions 25.6.0 and below are vulnerable to Remote File Inclusion (RFI) via the ajax_form.php endpoint, allowing attackers to execute arbitrary code.
What is the CVSS score for CVE-2025-54138?
CVE-2025-54138 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.5%.
Is CVE-2025-54138 actively exploited?
No confirmed active exploitation of CVE-2025-54138 as of 2026-09-25.
How do I remediate CVE-2025-54138?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2025-54138?
CVE-2025-54138 affects Librenms Librenms.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Librenms","product":"Librenms","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.