{"id":"CVE-2025-54138","aliases":["GHSA-gq96-8w38-hhj2"],"url":"https://o3.security/vulnerability/CVE-2025-54138","summary":"LibreNMS has Authenticated Local File Inclusion in ajax_form.php that Allows RCE","details":"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":"2025-07-22T21:33:59.149Z","modified":"2026-08-12T03:51:08.988019853Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.01065,"percentile":0.63077,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"librenms/librenms","fixedVersion":"25.7.0"}],"fix":{"url":"https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81","label":"librenms/librenms@ec89714"},"references":[{"type":"WEB","url":"https://github.com/librenms/librenms/releases/tag/25.7.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54138.json"},{"type":"ADVISORY","url":"https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54138"},{"type":"FIX","url":"https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81"},{"type":"FIX","url":"https://github.com/librenms/librenms/pull/17990"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:08.988019853Z"}}