# CVE-2026-40083: Cacti: SQL Injection in managers.php

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-25T22:39:17.541Z
- Modified: 2026-06-30T05:18:56.360Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Cacti cacti: < 1.2.31; before 1.2.31

## References

- <https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj> (exploit, mitigation, vendor-advisory)
- <https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31> (product, release-notes)

## Sources

- CVE List: [CVE-2026-40083](https://www.cve.org/CVERecord?id=CVE-2026-40083), CVE Terms of Use, modified 2026-06-30
- NVD: [CVE-2026-40083](https://nvd.nist.gov/vuln/detail/CVE-2026-40083), Public domain, modified 2026-06-30

---

Page: https://cve.day/CVE-2026-40083 · Whole record: https://cve.day/CVE-2026-40083.json · Rebuilt by cve.day 2026-11-25T22:59:26.444Z
