CVE-2026-40083 Details
Description
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.
A SQL injection vulnerability has been identified in Cacti versions through 1.2.30. The issue arises in managers.php, where unsanitized data from a user-controlled array is deserialized and then directly inserted into an SQL query without proper validation. This flaw allows authenticated users with SNMP agent management permissions to manipulate SQL commands, potentially leading to unauthorized data access or modification.
Users can upgrade to Cacti version 1.2.31, which addresses this vulnerability by sanitizing the deserialized array values before they are used in SQL statements.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31 | [email protected] | ProductRelease Notes |
| https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cacti cacti | < 1.2.31 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 30, 2026 | CVE Modified | CISA-ADP |
| Jun 29, 2026 | Initial Analysis | [email protected] |
| Jun 27, 2026 | CVE Modified | CISA-ADP |
| Jun 27, 2026 | CVE Modified | CISA-ADP |
| Jun 25, 2026 | New CVE Received | [email protected] |