What’s Vulnerable › Vulnerabilities
CVE-2026-39948: Cacti has SQL Injection via rfilter parameter in RLIKE clauses
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-24 · updated 2026-06-26
- Weakness: CWE-89
Description
Cacti is an open source performance and fault management framework. In versions 1.2.30 and prior, the rfilter request parameter is retrieved via the raw accessor grv() (rather than gfrv() with FILTER_VALIDATE_IS_REGEX validation) and concatenated directly into RLIKE SQL clauses in lib/html_graph.php and lib/html_tree.php, which are reachable pre-authentication through graph_view.php on installations with guest graph viewing enabled. Because the unbalanced-quote payload bypasses the regex validation that would otherwise reject it, an unauthenticated attacker can inject arbitrary SQL to compromise the confidentiality, integrity, and availability of the database. This advisory is similar to GHSA-69gg-mjfm-jjpc. This issue has been fixed in version 1.2.31.
Affected products
- cacti: before 1.2.31 — fixed in 1.2.31
How to fix
Upgrade to a fixed version: cacti 1.2.31. Check the vendor advisory for mitigations.
References
- https://github.com/Cacti/cacti/commit/136ae6ef0715e77bca69c0eb60781f5e17df0795
- https://github.com/Cacti/cacti/security/advisories/GHSA-9jqv-4cpm-vm2c
Get alerted when CVE-2026-39948 or the next vulnerability affects your stack