CVE-2026-40083 Cacti: SQL Injection in managers.php
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- PHPUbuntuDebian
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.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/cacti(Debian 12) | = 1.2.24+ds1-1; = 1.2.24+ds1-1+deb12u1; = 1.2.24+ds1-1+deb12u2; = 1.2.24+ds1-1+deb12u3 +19 more | No fix listed | No fix yet |
| debian/cacti(Debian 13) | = 1.2.30+ds1-1; = 1.2.30+ds1-2; = 1.2.30+ds1-3; = 1.2.31+ds1-1 +4 more | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| cacti | < 1.2.31; = < 1.2.31 | 1.2.31 | Fixed |
| debian/cacti(Debian 14) | < 1.2.31+ds1-1; = 1.2.30+ds1-1; = 1.2.30+ds1-2; = 1.2.30+ds1-3 | 1.2.31+ds1-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cacti | = < 1.2.31 | No fix listed |
| debian/cacti(Debian:12) | All versions | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u2 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u3 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u4 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u5 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.25+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.25+ds1-2 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.26+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.27+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.27+ds1-2 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.28+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.28+ds1-2 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.28+ds1-3 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.28+ds1-4 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.30+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.30+ds1-2 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.30+ds1-3 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.31+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.31+ds1-2 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.31+ds1-3 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.31+ds1-4 | No fix listed |
| debian/cacti(Debian:13) | All versions | No fix listed |
Show 16 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cacti(Debian:13) | = 1.2.30+ds1-1 | No fix listed |
| debian/cacti(Debian:13) | = 1.2.30+ds1-2 | No fix listed |
| debian/cacti(Debian:13) | = 1.2.30+ds1-3 | No fix listed |
| debian/cacti(Debian:13) | = 1.2.31+ds1-1 | No fix listed |
| debian/cacti(Debian:13) | = 1.2.31+ds1-2 | No fix listed |
| debian/cacti(Debian:13) | = 1.2.31+ds1-3 | No fix listed |
| debian/cacti(Debian:13) | = 1.2.31+ds1-4 | No fix listed |
| debian/cacti(Debian:14) | < 1.2.31+ds1-1 | 1.2.31+ds1-1 |
| debian/cacti(Debian:14) | = 1.2.30+ds1-1 | No fix listed |
| debian/cacti(Debian:14) | = 1.2.30+ds1-2 | No fix listed |
| debian/cacti(Debian:14) | = 1.2.30+ds1-3 | No fix listed |
| ubuntu/cacti(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/cacti(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/cacti(Ubuntu:26.10) | All versions | No fix listed |
| cacti | < 1.2.31 | 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
- Debian Security Tracker CVE-2026-40083 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking