CVE-2025-54138
CVE-2025-54138 — LibreNMS has Authenticated Local File Inclusion in ajax_form.php that Allows RCE
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
1%
chance of exploitation in 30 days
CVSS base
7.5
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.5 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-98
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /MySQL/SNMP, /html/forms/.
References
4 on the record
- github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2
x_refsource_CONFIRM
- github.com/librenms/librenms/pull/17990
x_refsource_MISC
- github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81
x_refsource_MISC
- github.com/librenms/librenms/releases/tag/25.7.0
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-68645 Synacor Zimbra Collaboration Suite (ZCS) PHP Remote File Inclusion VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2026-87902 WordPress Core Remote File Inclusion VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2026-12227 Visual Composer Website Builder <= 45.16.0 - Unauthenticated Local File Inclusion via 'vcv-template' ParameterCVSS 9.8
- CVE-2026-131795 WordPress Aora theme <= 1.3.5 - Local File Inclusion vulnerabilityCVSS 8.1
- CVE-2026-89095 Shortcodes and extra features for Phlox theme <= 2.17.22 - Unauthenticated Local File Inclusion via 'extra_template_path' ParameterCVSS 8.1
- CVE-2026-130331 WP Statistics <= 14.16.19 - Authenticated (Subscriber+) Local File Inclusion via 'tab' ParameterCVSS 7.5
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.