{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-54138","id":"CVE-2025-54138","title":"LibreNMS has Authenticated Local File Inclusion in ajax_form.php that Allows RCE","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 inclu","descriptionLong":"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","updated":"2026-10-28T02:30:35.367581720Z","reserved":"2025-07-16T23:53:40.510Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["librenms"],"affectedProducts":[{"vendor":"librenms","product":"librenms","defaultStatus":null,"versions":[{"version":"< 25.7.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"librenms/librenms","purl":"pkg:composer/librenms/librenms","ranges":["<25.7.0"],"fixed":["25.7.0"],"advisory":"GHSA-gq96-8w38-hhj2"}],"cwes":["CWE-98"],"aliases":["GHSA-gq96-8w38-hhj2"],"references":[{"url":"https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/librenms/librenms/pull/17990","tags":["x_refsource_MISC","Issue Tracking","fix","web"]},{"url":"https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/librenms/librenms/releases/tag/25.7.0","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54138.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54138","tags":["advisory"]},{"url":"https://github.com/librenms/librenms","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01243,"epssPercentile":0.69833,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-54138","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54138","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-54138","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gq96-8w38-hhj2","ok":true,"note":"GHSA-gq96-8w38-hhj2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-54138","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}