CVE-2026-40083: Cacti: SQL Injection in managers.php
Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior have SQL Injection through unsanitized unserialize+implode in managers.php. At line 756 of managers.php, the application assigns $selecteditems by calling cactiunserialize(stripslashes(gnrv('selectedgraphsarray'))). The cactiunserialize() function calls unserialize() with allowedclasses set to false, which prevents object injection but still allows arbitrary string arrays to be deserialized. Then, at lines 760 to 766, the deserialized array values are passed directly into dbexecute('DELETE FROM snmpagentmanagers WHERE id IN (' . implode(',', $selecteditems) . ')'), where they are imploded into the SQL statement without any integer validation, resulting in SQL Injection when using SNMP agent management permissions. This issue has been fixed in version 1.2.31.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Cactito a version that resolves this vulnerability.Fixed in 1.2.31
Event History
Frequently Asked Questions
What is the severity of CVE-2026-40083?
The severity of CVE-2026-40083 is rated high with a score of 7.2.
What type of vulnerability is CVE-2026-40083?
CVE-2026-40083 is an SQL Injection vulnerability found in the Cacti application.
How do I fix CVE-2026-40083?
To fix CVE-2026-40083, upgrade to Cacti version 1.2.31 or later.
What versions of Cacti are affected by CVE-2026-40083?
CVE-2026-40083 affects Cacti versions 1.2.30 and prior.
What are the consequences of exploiting CVE-2026-40083?
Exploiting CVE-2026-40083 can lead to unauthorized SQL commands being executed, potentially compromising data integrity.