PHP file inclusion in Cacti - CVE-2024-31459
Published: June 3, 2024
Vulnerability details
The vulnerability allows a remote user to include and execute arbitrary PHP files on the server.
The vulnerability exists due to incorrect input validation when including PHP files within the api_plugin_hook() function in the lib/plugin.php. A remote user can combine a SQL injection vulnerability #VU90699 (CVE-2024-31460) to include and execute arbitrary PHP code on the server.
Affected software
Fedora
cacti
cacti-spine
How to mitigate CVE-2024-31459
cacti - addressed in versions 1.2.27-1.el7, 1.2.27-1.el8, 1.2.27-1.el9, 1.2.27-1.fc39
cacti-spine - addressed in versions 1.2.27-1.el7, 1.2.27-1.el8, 1.2.27-1.el9, 1.2.27-1.fc39