CVE-2026-39951

Cacti: Stored SQL Injection via graph_name_regexp in Reports feature

Published Jun 24, 2026 CVSS 3.1 · 7.6 High EPSS < 1% KEV · Not listed
Description
Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior have a Stored SQL Injection vulnerability through graph_name_regexp in the Reports feature. This issue has been fixed in version 1.2.31.

Analysis

AI-generated

Technical impact

Cacti, an open‑source performance and fault management system, has a stored SQL injection flaw in its Reports feature through the graph_name_regexp parameter. An attacker who can supply a crafted value for this parameter can inject arbitrary SQL statements into the underlying query, enabling the attacker to read, modify, or delete data stored in the database. If the database accounts used by the application have elevated privileges, the injection could be leveraged to compromise the entire system.

Affected Systems

The vulnerability affects all installations of Cacti version 1.2.30 and earlier. The defect was fixed in Cacti 1.2.31 and subsequent releases. All deployments using the Reports feature are at risk.

Risk and Exploitability

The CVSS score of 7.6 categorises the defect as high severity. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to have access to the Cacti web interface for the Reports page, where they can submit the graph_name_regexp value. If the application runs with high‑privilege database credentials, the injected code could provide the attacker with read or write access to sensitive data or enable further exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Cacti application to version 1.2.31 or later to apply the vendor patch.
  • If an upgrade cannot be performed immediately, limit or disable access to the Reports feature for users who do not require it.
  • Implement input validation or sanitization for the graph_name_regexp parameter and ensure that database accounts used by Cacti employ the principle of least privilege.

Generated by OpenCVE AI on June 25, 2026 at 01:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cacti
Cacti cacti
Vendors & Products Cacti
Cacti cacti
Type Values Removed Values Added
Description Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior have a Stored SQL Injection vulnerability through graph_name_regexp in the Reports feature. This issue has been fixed in version 1.2.31.
Title Cacti: Stored SQL Injection via graph_name_regexp in Reports feature
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 26, 2026, 6:43 PM
Reserved
Apr 7, 2026, 10:40 PM
Status
Analyzed
Published
Jun 25, 2026, 12:17 AM
Modified
Jun 26, 2026, 7:16 PM