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

Critical 9.3 Published Updated

Unauthenticated attackers can inject SQL via the rfilter parameter in Cacti when guest graph viewing is enabled, compromising database integrity and availability.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-39948?

CVE-2026-39948 is a critical SQL injection vulnerability in Cacti Cacti, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-89

Which versions are affected by CVE-2026-39948?

It affects 1 product.

Products include Cacti Cacti.

How do I fix CVE-2026-39948?

Upgrade to a fixed version.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-39948 being exploited?

There is no known exploitation of CVE-2026-39948 in the wild and no public exploit code.

All Cacti Cacti vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-39948, GHSA-9jqv-4cpm-vm2c, UBUNTU-CVE-2026-39948.

Is CVE-2026-39948 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free