PHP file inclusion in LibreNMS - CVE-2025-54138
Published: April 24, 2026
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.