Skip to content
Heist/ feed
Back to feed
High

cacti — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-40083

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.

Products
cacti
Affected versions
0.8.8b+dfsg-3, 0.8.8b+dfsg-5, 0.8.8b+dfsg-5ubuntu0.1, 0.8.8b+dfsg-5ubuntu0.2, 0.8.8b+dfsg-5ubuntu0.2+esm1, 0.8.8b+dfsg-5ubuntu0.2+esm2, 0.8.8f+ds1-2, 0.8.8f+ds1-3, 0.8.8f+ds1-4, 0.8.8f+ds1-4ubuntu1, 0.8.8f+ds1-4ubuntu2, 0.8.8f+ds1-4ubuntu3, 0.8.8f+ds1-4ubuntu4, 0.8.8f+ds1-4ubuntu4.16.04, 0.8.8f+ds1-4ubuntu4.16.04.1, 0.8.8f+ds1-4ubuntu4.16.04.2, 0.8.8f+ds1-4ubuntu4.16.04.2+esm1, 0.8.8f+ds1-4ubuntu4.16.04.2+esm2, 1.1.18+ds1-1, 1.1.27+ds1-2, 1.1.27+ds1-3, 1.1.28+ds1-2, 1.1.35+ds1-1, 1.1.36+ds1-1, 1.1.38+ds1-1, 1.1.38+ds1-1ubuntu0.1~esm1, 1.1.38+ds1-1ubuntu0.1~esm3, 1.1.38+ds1-1ubuntu0.1~esm4, 1.2.10+ds1-1ubuntu1, 1.2.10+ds1-1ubuntu1+esm1, 1.2.10+ds1-1ubuntu1.1, 1.2.10+ds1-1ubuntu1.1+esm1, 1.2.10+ds1-1ubuntu1.1+esm2, 1.2.16+ds1-2ubuntu1, 1.2.19+ds1-2ubuntu1, 1.2.19+ds1-2ubuntu1+esm1, 1.2.19+ds1-2ubuntu1.1, 1.2.19+ds1-2ubuntu1.1+esm1, 1.2.19+ds1-2ubuntu1.1+esm2, 1.2.25+ds1-2, 1.2.26+ds1-1, 1.2.26+ds1-1ubuntu0.1, 1.2.28+ds1-4ubuntu1, 1.2.30+ds1-1ubuntu1, 1.2.30+ds1-1ubuntu2, 1.2.30+ds1-1ubuntu3, 1.2.31+ds1-3ubuntu2, 1.2.4+ds1-2ubuntu3, 1.2.9+ds1-1ubuntu1, 1.2.9+ds1-1ubuntu2
Fixed versions
Not specified
CVEs
CVE-2026-40083
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:02 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-40083

core-osv · Original source

Published 25 Jun 2026, 23:17 UTC

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.

osv:UBUNTU-CVE-2026-40083

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

cacti

Fixed versions: Not specified

Complete source record
{
  "id": "9345ae78b6d6e44bf58ab1ccf5d1d96c77039f8b6d4fb38bee47d7b711e3f827",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40083",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-40083",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-40083",
    "products": [
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.8b+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.8.8b+dfsg-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.8.8b+dfsg-5ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.8.8b+dfsg-5ubuntu0.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.8.8b+dfsg-5ubuntu0.2+esm1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.8.8b+dfsg-5ubuntu0.2+esm2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.8f+ds1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu4.16.04",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu4.16.04.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu4.16.04.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu4.16.04.2+esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.8f+ds1-4ubuntu4.16.04.2+esm2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.18+ds1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.27+ds1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.27+ds1-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.28+ds1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.35+ds1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.36+ds1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.38+ds1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.38+ds1-1ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.38+ds1-1ubuntu0.1~esm3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.1.38+ds1-1ubuntu0.1~esm4",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.4+ds1-2ubuntu3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2.9+ds1-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2.9+ds1-1ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2.10+ds1-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2.10+ds1-1ubuntu1+esm1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2.10+ds1-1ubuntu1.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2.10+ds1-1ubuntu1.1+esm1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2.10+ds1-1ubuntu1.1+esm2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.16+ds1-2ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.2.19+ds1-2ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.2.19+ds1-2ubuntu1+esm1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.2.19+ds1-2ubuntu1.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.2.19+ds1-2ubuntu1.1+esm1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.2.19+ds1-2ubuntu1.1+esm2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.25+ds1-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.2.26+ds1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.2.26+ds1-1ubuntu0.1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.28+ds1-4ubuntu1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.2.30+ds1-1ubuntu1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.30+ds1-1ubuntu2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.2.30+ds1-1ubuntu3",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.2.31+ds1-3ubuntu2",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cacti",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.30+ds1-1ubuntu1",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "1.2.30+ds1-1ubuntu2",
            "evidence": "/affected/8/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-40083",
      "aliases": [
        "UBUNTU-CVE-2026-40083"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "0.8.8b+dfsg-3",
            "0.8.8b+dfsg-5",
            "0.8.8b+dfsg-5ubuntu0.1",
            "0.8.8b+dfsg-5ubuntu0.2",
            "0.8.8b+dfsg-5ubuntu0.2+esm1",
            "0.8.8b+dfsg-5ubuntu0.2+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "0.8.8b+dfsg-5ubuntu0.2+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "0.8.8f+ds1-2",
            "0.8.8f+ds1-3",
            "0.8.8f+ds1-4",
            "0.8.8f+ds1-4ubuntu1",
            "0.8.8f+ds1-4ubuntu2",
            "0.8.8f+ds1-4ubuntu3",
            "0.8.8f+ds1-4ubuntu4",
            "0.8.8f+ds1-4ubuntu4.16.04",
            "0.8.8f+ds1-4ubuntu4.16.04.1",
            "0.8.8f+ds1-4ubuntu4.16.04.2",
            "0.8.8f+ds1-4ubuntu4.16.04.2+esm1",
            "0.8.8f+ds1-4ubuntu4.16.04.2+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "0.8.8f+ds1-4ubuntu4.16.04.2+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.1.18+ds1-1",
            "1.1.27+ds1-2",
            "1.1.27+ds1-3",
            "1.1.28+ds1-2",
            "1.1.35+ds1-1",
            "1.1.36+ds1-1",
            "1.1.38+ds1-1",
            "1.1.38+ds1-1ubuntu0.1~esm1",
            "1.1.38+ds1-1ubuntu0.1~esm3",
            "1.1.38+ds1-1ubuntu0.1~esm4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "1.1.38+ds1-1ubuntu0.1~esm4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "1.2.4+ds1-2ubuntu3",
            "1.2.9+ds1-1ubuntu1",
            "1.2.9+ds1-1ubuntu2",
            "1.2.10+ds1-1ubuntu1",
            "1.2.10+ds1-1ubuntu1+esm1",
            "1.2.10+ds1-1ubuntu1.1",
            "1.2.10+ds1-1ubuntu1.1+esm1",
            "1.2.10+ds1-1ubuntu1.1+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "1.2.10+ds1-1ubuntu1.1+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "1.2.16+ds1-2ubuntu1",
            "1.2.19+ds1-2ubuntu1",
            "1.2.19+ds1-2ubuntu1+esm1",
            "1.2.19+ds1-2ubuntu1.1",
            "1.2.19+ds1-2ubuntu1.1+esm1",
            "1.2.19+ds1-2ubuntu1.1+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "1.2.19+ds1-2ubuntu1.1+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.2.25+ds1-2",
            "1.2.26+ds1-1",
            "1.2.26+ds1-1ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "1.2.26+ds1-1ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.2.28+ds1-4ubuntu1",
            "1.2.30+ds1-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "1.2.30+ds1-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.2.30+ds1-1ubuntu2",
            "1.2.30+ds1-1ubuntu3",
            "1.2.31+ds1-3ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "1.2.31+ds1-3ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cacti",
            "purl": "pkg:deb/ubuntu/cacti?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.2.30+ds1-1ubuntu1",
            "1.2.30+ds1-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40083.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "cacti",
                "binary_version": "1.2.30+ds1-1ubuntu2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:03.910794719Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40083"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-40083",
        "https://www.cve.org/CVERecord?id=CVE-2026-40083",
        "https://github.com/Cacti/cacti/security/advisories/GHSA-j9jv-6xjq-9hhj",
        "https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40083",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360233,
  "published_at": "2026-06-25T23:17:00+00:00"
}