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

Published Jun 24, 2026
·
Updated

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 FILTERVALIDATEISREGEX validation) and concatenated directly into RLIKE SQL clauses in lib/htmlgraph.php and lib/htmltree.php, which are reachable pre-authentication through graphview.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.

Affected Software

2 affected components
Cacti Cacti<=1.2.30
Cacti Cacti<1.2.31

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cacti to a version that resolves this vulnerability.

    Fixed in 1.2.31

Event History

Jun 24, 2026
CVE Published
via MITRE·11:06 PM
Data Sourced
via MITRE·11:06 PM
DescriptionWeakness
Data Sourced
via NVD·11:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39948?

CVE-2026-39948 has a critical severity rating of 9.3.

2

What type of vulnerability is CVE-2026-39948?

CVE-2026-39948 is a SQL Injection vulnerability affecting Cacti.

3

How do I fix CVE-2026-39948?

To fix CVE-2026-39948, upgrade to a Cacti version later than 1.2.30 that implements proper validation on the rfilter parameter.

4

What versions of Cacti are affected by CVE-2026-39948?

CVE-2026-39948 affects Cacti versions 1.2.30 and prior.

5

What components of Cacti are impacted by CVE-2026-39948?

CVE-2026-39948 impacts the lib/html_graph.php component where the rfilter parameter is used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203