CVE-2026-40083: Cacti - SQL Injection
- Cve: CVE-2026-40083
- Name: Cacti - SQL Injection
- 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.
- Impact: Attackers with SNMP agent management permissions can execute arbitrary SQL commands, potentially leading to data compromise or manipulation.
- Remediation: Upgrade to version 1.2.31 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: sql_injection, data_tampering
- Requirement type: logged_in
- Requirements: Attacker needs SNMP agent management permissions
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00502
- Epss percentile: 0.43799
- Assignee: [email protected]
- Published at: 2026-06-25T23:17:02Z
- Age in days: 152
- Modified at: 2026-06-30T05:18:56Z
- Patch available: yes
- Public exploits total: 2
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40083
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj | nvd | 2026-06-25 |
| https://github.com/hakaioffsec/CVE-2026-40083 | poc-in-github | 2026-06-27 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj | nvd | Exploit, Mitigation, Vendor Advisory |
| https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31 | nvd | Product, Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cacti:cacti | < 1.2.31 | no | nvd | /v1/products/cacti/cacti |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Cacti/cacti | releases, security_advisory | yes | /v1/repositories/Cacti/cacti |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2026-06-25
- Remote: yes
- Authentication required: yes
- Exposed hosts: 5026
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports