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.0: 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/E:U/U:Clear
CVE-ID: CVE-2025-54138
CWE-ID: CWE-98
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: LibreNMS Project
Affected software:
LibreNMS

Detailed vulnerability description

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.


How to mitigate CVE-2025-54138

Install security update from vendor's website.

Sources