PHP file inclusion in Cacti - CVE-2024-31459

 

PHP file inclusion in Cacti - CVE-2024-31459

Published: June 3, 2024


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

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

Cacti
Fedora
cacti
cacti-spine

How to mitigate CVE-2024-31459

Install update from vendor's website.

Cacti - update to 1.2.27
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

External References

Related Security Bulletins