CVE-2026-39948
Cacti is an open source performance and fault management framework. In ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD.
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.24 | cacti | 1.2.31-0 |
| alpine edge | cacti | 1.2.31-0 |
| debian 11 | cacti | no fix listed |
| debian 12 | cacti | no fix listed |
| debian 13 | cacti | no fix listed |
| debian 14 | cacti | 1.2.31+ds1-1 |
| echo | cacti | no fix listed |
| rapidfort debian 12 | cacti | 0:1.2.31+ds1-1 |
| rapidfort debian 13 | cacti | 0:1.2.31+ds1-1 |