← Vulnerability feed

Vulnerability record · CVE-2026-40083 · published 25 June 2026

CVE-2026-40083: Cacti sql injection vulnerability

Cacti · Cacti

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.

7.2 CVSS 3.1 High EPSS 0.50% · top 59.5% CWE-89 · SQL injection
7.2CVSS 3.1 base score
0.50%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References, 2 tagged exploit
30 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-40083 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-46169Cacti remote_agent.php auth bypass leads to OS command injectionCacti's remote_agent.php trusts attacker-controlled HTTP headers when resolving the client IP, letting an unauthenticated attacker spoof the poller h…KEVEPSS 100%analysed9.8CVE-2026-39938Cacti path traversal vulnerabilityCacti is an open source performance and fault management framework. Versions 1.2.30 and prior have unauthenticated LFI through graph_theme and rrdtoo…EPSS 0.69%9.8CVE-2026-39955Cacti sql injection vulnerabilityCacti is an open source performance and fault management framework. Versions 1.2.30 and prior have pre-authentication SQL Injection via unanchored FI…EPSS 0.59%9.8CVE-2026-39893Cacti sql injection vulnerabilityCacti is an open source performance and fault management framework. In versions 1.2.30 and prior, the rfilter request variable was concatenated into …EPSS 0.67%9.8CVE-2025-26520Cacti sql injection vulnerabilityCacti through 1.2.29 allows SQL injection in the template function in host_templates.php via the graph_template parameter. NOTE: this issue exists be…EPSS 0.48%9.8CVE-2023-39361Cacti graph_view.php SQL injection allows unauthenticated guest accessCacti's graph_view.php is vulnerable to SQL injection. Guest users can reach graph_view.php without authentication by default, so when guest access i…EPSS 89%analysed9.8CVE-2022-0730Cacti improper authentication vulnerabilityUnder certain ldap conditions, Cacti authentication can be bypassed with certain credential types.EPSS 3.5%9.8CVE-2017-12065Cacti vulnerabilityspikekill.php in Cacti before 1.1.16 might allow remote attackers to execute arbitrary code via the avgnan, outlier-start, or outlier-end parameter.EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2026-40083), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.