CVE-2026-39893 Cacti: Pre-authentication SQL injection via rfilter RLIKE clause in graph_view.php
Pre-authentication SQL injection in Cacti allows attackers to read or modify database contents if guest viewing is enabled.
- 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-39893?
CVE-2026-39893 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 variable was concatenated into a RLIKE SQL clause without sanitization. The endpoint does not require authentication (graph viewing supports guest access via the configured guest user), so the SQLi was reachable pre-auth on installs with guest viewing enabled. This issue was fixed in version 1.2.31.
Weakness: CWE-89
Which versions are affected by CVE-2026-39893?
It affects 1 product.
Products include Cacti Cacti.
How do I fix CVE-2026-39893?
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-39893 being exploited?
There is no known exploitation of CVE-2026-39893 in the wild and no public exploit code.
Other vulnerabilities in Cacti Cacti
- CVE-2022-46169 Cacti Command Injection
- CVE-2026-39938 Cacti: Unauthenticated RCE on Graph Image
- CVE-2026-39955 Cacti has Pre-Authentication SQL Injection via unanchored FILTER_VALIDATE_REGEXP in graph_view.php
- CVE-2023-39361 Unauthenticated SQL Injection in graph_view.php in Cacti
- CVE-2022-0730 Auth bypass in Cati
Sources
Also known as DEBIAN-CVE-2026-39893, GHSA-69gg-mjfm-jjpc, UBUNTU-CVE-2026-39893.