{"id":"CVE-2025-54138","published":"2025-07-22T21:33:59Z","modified":"2025-07-23T18:26:50Z","title":"LibreNMS has Authenticated Local File Inclusion in ajax_form.php that Allows RCE","vendor":"librenms","product":"librenms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01464,"percentile":0.73883,"provenance":"source"},"cwes":[{"id":"CWE-98","name":"Improper Control of Filename for Include/Require Statement in PHP Program"}],"references":[{"url":"https://github.com/librenms/librenms/security/advisories/GHSA-gq96-8w38-hhj2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/librenms/librenms/pull/17990","tags":["x_refsource_MISC"]},{"url":"https://github.com/librenms/librenms/commit/ec89714d929ef0cf2321957ed9198b0f18396c81","tags":["x_refsource_MISC"]},{"url":"https://github.com/librenms/librenms/releases/tag/25.7.0","tags":["x_refsource_MISC"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":14.78},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"librenms","affectedVersions":[{"vendor":"librenms","product":"librenms","versions":["< 25.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-07-23T18:26:36.521542Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"librenms/librenms","vulnerableRanges":["<25.7.0"],"patched":["25.7.0"],"from":["GHSA-gq96-8w38-hhj2"],"provenance":"source"}],"summary":{"text":"LibreNMS (versions 25.6.0 and below) has a flaw in the ajax_form.php endpoint, where the user-supplied POST parameter \"type\" is used directly to include .inc.php files from includes/html/forms/ without validation or allowlisting. An attacker with low-privilege authenticated access and the ability to stage a file in that include path (for example via a symlink, a development misconfiguration, or a chained vulnerability) could achieve remote code execution, with the attack complexity rated high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:34Z"},"euvd":{"id":"EUVD-2025-22384","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-23201","published":"2025-01-16","fixed":"24.11.0","kev":false},{"cve":"CVE-2024-56144","published":"2025-01-16","fixed":"24.12.0","kev":false},{"cve":"CVE-2025-47931","published":"2025-05-17","fixed":"25.5.0","kev":false,"link":{"from":"CVE-2025-47931","to":"CVE-2025-54138","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:librenms/librenms","fromFixed":"25.5.0","toFixed":"25.7.0","daysApart":66}]}},{"cve":"CVE-2025-54138","published":"2025-07-22","fixed":"25.7.0","kev":false},{"cve":"CVE-2025-62365","published":"2025-10-13","fixed":"25.7.0","kev":false},{"cve":"CVE-2025-55296","published":"2025-08-18","fixed":"25.8.0","kev":false,"link":{"from":"CVE-2025-54138","to":"CVE-2025-55296","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:librenms/librenms","fromFixed":"25.7.0","toFixed":"25.8.0","daysApart":27}]}},{"cve":"CVE-2025-62411","published":"2025-10-16","fixed":"25.10.0","kev":false}],"package":"Packagist:librenms/librenms"}}