CVE-2026-39955 Cacti has Pre-Authentication SQL Injection via unanchored FILTER_VALIDATE_REGEXP in graph_view.php
Attackers can execute arbitrary SQL commands without authentication in Cacti, potentially reading or modifying database contents.
- 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-39955?
CVE-2026-39955 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. Versions 1.2.30 and prior have pre-authentication SQL Injection via unanchored FILTER_VALIDATE_REGEXP in graph_view.php. This issue has been fixed in version 1.2.31.
Weakness: CWE-89
Which versions are affected by CVE-2026-39955?
It affects 1 product.
Products include Cacti Cacti.
How do I fix CVE-2026-39955?
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-39955 being exploited?
There is no known exploitation of CVE-2026-39955 in the wild and no public exploit code.
Other vulnerabilities in Cacti Cacti
Sources
Also known as DEBIAN-CVE-2026-39955, GHSA-gp82-qhrg-crv7, UBUNTU-CVE-2026-39955.