Executive brief
Cacti is an open-source platform used by organizations to monitor network performance and manage IT infrastructure. A security flaw in the SNMP agent management component allows an authorized user with high-level permissions to execute unauthorized database commands. This could lead to the theft of sensitive monitoring data, modification of system configurations, or a complete shutdown of the monitoring service.
Technical details
A SQL injection vulnerability exists in Cacti's 'managers.php' component due to improper handling of deserialized data. The application uses 'cacti_unserialize()' on the 'selected_graphs_array' parameter; while this function disables class instantiation to prevent PHP Object Injection, it still allows the creation of arbitrary string arrays. These array values are subsequently passed to 'implode()' and concatenated directly into a DELETE SQL statement without integer validation or parameterization. An attacker with SNMP agent management permissions can exploit this to execute arbitrary SQL commands. The issue is resolved in version 1.2.31 by applying 'array_map' with 'intval' to ensure all inputs are treated as integers.
Affected products
- Cacti Cacti <= 1.2.30
Timeline
- 2026-06-15: patched: Version 1.2.31 released
- 2026-06-19: advisory: GitHub Security Advisory GHSA-j9jv-6xjq-9hhj published
- 2026-06-25: disclosed: CVE-2026-40083 published to NVD