Summary
CVE-2026-39955 is a critical pre-authentication SQL injection vulnerability affecting Cacti, the open-source network performance and fault management framework, in all versions up to and including 1.2.30. The flaw arises from an unanchored FILTER_VALIDATE_REGEXP validation in graph_view.php, allowing unauthenticated remote attackers to inject arbitrary SQL commands via the rfilter parameter. A patch was released in version 1.2.31, and immediate upgrade is strongly recommended.
Technical details
- Root cause: The
rfilterparameter ingraph_view.phpis validated using PHP’sFILTER_VALIDATE_REGEXP, but the regular expression is unanchored — it confirms the input is a valid regex pattern but does not constrain its content, allowing SQL metacharacters to pass through and reach the underlying database query unescaped (CWE-89). - Trigger conditions: The vulnerable endpoint is reachable without any authentication. An attacker only needs network access to a Cacti instance to craft a malicious HTTP request targeting
graph_view.php. - Attack vector: Remote, over the network (AV:N), with low complexity (AC:L), requiring no privileges (PR:N) and no user interaction (UI:N).
- Impact: Full compromise of confidentiality, integrity, and availability of the Cacti database (C:H/I:H/A:H), including potential access to stored credentials and sensitive monitoring data.
Affected software
- Cacti versions 1.2.30 and prior
Severity
CVSS v3.1 Base Score: 9.8 (Critical)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to Cacti 1.2.31, which contains the fix for this vulnerability (addressed via pull requests #7039, #7054, and #7055 in the Cacti repository).
- If immediate upgrade is not feasible, restrict network access to the Cacti web interface at the firewall or network layer to prevent unauthenticated internet-facing exposure.
IONIX Status
The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

