CVE-2025-54138
HIGH 7.5CVSS 3.1LibreNMS has Authenticated Remote 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
- 22 Jul 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-98
- Also known as
- GHSA-gq96-8w38-hhj2
- Sources
- NVDJSONOSV GHSA-gq96-8w38-hhj2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | librenms | librenmscpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:* |
< 25.7.0 | 25.7.0 |
| OSV | Packagist | librenms/librenms | < 25.7.0 | 25.7.0 |
References
- https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81 · Patch, WEB
- https://github.com/librenms/librenms/pull/17990 · Issue Tracking, WEB
- https://github.com/librenms/librenms/releases/tag/25.7.0 · Release Notes, WEB
- https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-54138 · ADVISORY
- https://github.com/librenms/librenms · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 22 Jul 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 Jul 2025)