# CVE-2026-39948: Cacti has SQL Injection via rfilter parameter in RLIKE clauses

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-06-24T23:06:39.057Z
- Modified: 2026-06-26T05:16:27.033Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Cacti cacti: < 1.2.31; before 1.2.31

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Cacti/cacti/security/advisories/GHSA-9jqv-4cpm-vm2c> (patch, vendor-advisory)
- <https://github.com/Cacti/cacti/commit/136ae6ef0715e77bca69c0eb60781f5e17df0795> (patch)

## Sources

- CVE List: [CVE-2026-39948](https://www.cve.org/CVERecord?id=CVE-2026-39948), CVE Terms of Use, modified 2026-06-26
- NVD: [CVE-2026-39948](https://nvd.nist.gov/vuln/detail/CVE-2026-39948), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-39948 · Whole record: https://cve.day/CVE-2026-39948.json · Rebuilt by cve.day 2026-11-25T22:59:25.769Z
