CVE-2026-39948

Cacti has SQL Injection via rfilter parameter in RLIKE clauses

Published Jun 24, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Cacti versions 1.2.30 and earlier allow an unauthenticated SQL injection attack through the rfilter request parameter. The parameter is read via a raw accessor and inserted directly into RLIKE clauses in lib/html_graph.php and lib/html_tree.php. By crafting an unbalanced-quote payload that bypasses the intended regex validation, an attacker can inject arbitrary SQL to compromise the confidentiality, integrity, and availability of the database.

Affected Systems

The vulnerability affects the open source performance and fault management framework Cacti, specifically any installation running version 1.2.30 or earlier. The affected files are accessed through graph_view.php when guest graph viewing is enabled.

Risk and Exploitability

The CVSS score of 9.3 indicates a high‑severity risk. The vulnerability can be exploited without authentication on systems that permit guest graph viewing, meaning an external attacker can reach the vulnerable endpoints over the network. While the EPSS score is not available and the issue is not listed in CISA’s KEV catalog, the combination of an unfiltered input, public reachability, and critical database impact make the exploit probability high for exposed deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Cacti to version 1.2.31 or later, which removes the vulnerable rfilter handling.
  • Disable guest graph viewing to block unauthenticated access to the vulnerable graph_view.php endpoints.
  • Audit configuration files to ensure that raw accessors are not used in SQL statements or consult the vendor’s changelog for additional security hardening instructions.

Generated by OpenCVE AI on June 25, 2026 at 01:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cacti
Cacti cacti
Vendors & Products Cacti
Cacti cacti
Type Values Removed Values Added
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.
Title Cacti has SQL Injection via rfilter parameter in RLIKE clauses
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 9.3, 'vector': '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'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 26, 2026, 3:55 AM
Reserved
Apr 7, 2026, 10:40 PM
Status
Analyzed
Published
Jun 24, 2026, 11:16 PM
Modified
Jun 26, 2026, 5:16 AM