Junglewise Threat Intelligence

CVE-2026-39951: Cacti stored SQL injection in Reports feature

CVE-2026-39951 · Severity: high · CVSS 7.6 · Published 2026-06-25

Technologies: Cacti. Vendors: Cacti.

Executive brief

Cacti, an open-source network monitoring and fault management framework, contains a security vulnerability in its reporting feature. An attacker with low-level user privileges can inject malicious database commands, potentially allowing them to access sensitive information or disrupt operations. This could lead to unauthorized data exposure or a loss of system integrity within the monitoring environment.

Technical details

A stored SQL injection vulnerability exists in Cacti versions 1.2.30 and prior within the Reports feature. The vulnerability is rooted in the 'graph_name_regexp' parameter, which fails to properly neutralize special elements before they are used in SQL commands. An authenticated attacker with low privileges can exploit this over the network to execute arbitrary SQL queries against the underlying database. This can result in unauthorized data retrieval (High confidentiality impact) and minor modifications or service disruptions. The fix, introduced in version 1.2.31, involves auditing SQL sinks to use 'db_qstr_rlike()' and ensuring HTML output is properly escaped.

Affected products

  • Cacti Cacti <= 1.2.30

Timeline

  • 2026-04-12: patched: Fix addressed in commit 4c09efaebf3a9faec66969d0b5c4aceaf397f37f
  • 2026-06-18: advisory: GitHub Security Advisory published
  • 2026-06-25: disclosed: NVD publication date

References

Related threats