PHP file inclusion in LibreNMS - CVE-2025-54138

 

PHP file inclusion in LibreNMS - CVE-2025-54138

Published: April 24, 2026


Vulnerability identifier: #VU127442
CSH Severity: Low
CVSS v4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-54138
CWE-ID: CWE-98
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improper control of filename for include statement in ajax_form.php when processing a user-controlled POST type parameter for dynamic inclusion of .inc.php files. A remote user can send a specially crafted request to execute arbitrary code.

Exploitation requires control of a file or symlink at includes/html/forms/{type}.inc.php.


Affected software

LibreNMS

How to mitigate CVE-2025-54138

Install security update from vendor's website.

LibreNMS - update to 25.7.0

External References

Related Security Bulletins