SQL injection in Cacti - CVE-2024-31460
Published: June 3, 2024
Vulnerability details
The vulnerability allows a remote user to execute arbitrary SQL queries in database.
The vulnerability exists due to insufficient sanitization of user-supplied data within the automation_tree_rules_form_save() function in automation_tree_rules.php. A remote user can store a specially crafted payload in database, which is later executed in lib/api_automation.php, and execute arbitrary SQL commands within the application database.
Affected software
Fedora
cacti
cacti-spine
How to mitigate CVE-2024-31460
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