CVE-2026-40083

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 $selected_items by calling cacti_unserialize(stripslashes(gnrv('selected_graphs_array'))). The cacti_unserialize() function calls unserialize() with allowed_classes 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 db_execute('DELETE FROM snmpagent_managers WHERE id IN (' . implode(',', $selected_items) . ')'), 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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*

History

29 Jun 2026, 18:48

Type Values Removed Values Added
References () https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31 - () https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31 - Product, Release Notes
References () https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj - () https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj - Exploit, Mitigation, Vendor Advisory
First Time Cacti
Cacti cacti
CPE cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*

27 Jun 2026, 04:17

Type Values Removed Values Added
References () https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj - () https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj -

25 Jun 2026, 23:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-25 23:17

Updated : 2026-06-30 05:18


NVD link : CVE-2026-40083

Mitre link : CVE-2026-40083

CVE.ORG link : CVE-2026-40083


JSON object : View

Products Affected

cacti

  • cacti
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')