CVE-2026-40083 Cacti: SQL Injection in managers.php
Attackers with SNMP agent management permissions can execute arbitrary SQL commands via unsanitized input in managers.php, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-40083?
CVE-2026-40083 is a high-severity SQL injection vulnerability in Cacti Cacti, published on 25 Jun 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2026-40083?
It affects 1 product.
Products include Cacti Cacti.
How do I fix CVE-2026-40083?
Upgrade to a fixed version.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-40083 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40083 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Cacti Cacti
- CVE-2022-46169 Cacti Command Injection
- CVE-2026-39893 Cacti: Pre-authentication SQL injection via rfilter RLIKE clause in graph_view.php
- CVE-2026-39938 Cacti: Unauthenticated RCE on Graph Image
- CVE-2026-39955 Cacti has Pre-Authentication SQL Injection via unanchored FILTER_VALIDATE_REGEXP in graph_view.php
- CVE-2023-39361 Unauthenticated SQL Injection in graph_view.php in Cacti
Sources
Also known as DEBIAN-CVE-2026-40083, GHSA-j9jv-6xjq-9hhj, UBUNTU-CVE-2026-40083.