# CVE-2025-54138: LibreNMS has Authenticated Local File Inclusion in ajax_form.php that Allows RCE

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-21T21:10:51.000Z
- Modified: 2026-06-17T09:39:31.210Z
- Also known as: GHSA-gq96-8w38-hhj2
- Weaknesses: CWE-98
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- librenms librenms: < 25.7.0; before 25.7.0
- librenms/librenms (Packagist): before 25.7.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2> (exploit, vendor-advisory, web)
- <https://github.com/librenms/librenms/pull/17990> (issue-tracking, web)
- <https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81> (patch, web)
- <https://github.com/librenms/librenms/releases/tag/25.7.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54138> (advisory)
- <https://github.com/librenms/librenms> (package)

## Sources

- CVE List: [CVE-2025-54138](https://www.cve.org/CVERecord?id=CVE-2025-54138), CVE Terms of Use, modified 2025-07-23
- GitHub Advisory Database: [GHSA-gq96-8w38-hhj2](https://github.com/advisories/GHSA-gq96-8w38-hhj2), CC-BY-4.0, modified 2025-07-23
- NVD: [CVE-2025-54138](https://nvd.nist.gov/vuln/detail/CVE-2025-54138), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54138 · Whole record: https://cve.day/CVE-2025-54138.json · Rebuilt by cve.day 2026-11-25T22:59:01.590Z
