CVE-2026-39893
Analyzed Analyzed - Analysis Complete

SQL Injection in Cacti via Unsanitized rfilter Parameter

Vulnerability report for CVE-2026-39893, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-24

Last updated on: 2026-06-26

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-24
Last Modified
2026-06-26
Generated
2026-07-15
AI Q&A
2026-06-25
EPSS Evaluated
2026-07-13
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
cacti cacti to 1.2.31 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Cacti versions 1.2.30 and prior, where the 'rfilter' request variable is concatenated directly into a RLIKE SQL clause without proper sanitization. Because the endpoint does not require authentication and supports guest access for graph viewing, an attacker can exploit this SQL injection vulnerability without needing to log in.

Impact Analysis

The vulnerability has a high severity with a CVSS score of 9.8, indicating it can be exploited remotely without authentication. Successful exploitation can lead to full compromise of confidentiality, integrity, and availability of the affected system, allowing attackers to execute arbitrary SQL commands, potentially accessing or modifying sensitive data and disrupting service.

Mitigation Strategies

The vulnerability in Cacti versions 1.2.30 and prior is fixed in version 1.2.31.

To mitigate this vulnerability, you should immediately upgrade your Cacti installation to version 1.2.31 or later.

Additionally, if guest viewing is enabled, consider disabling it temporarily to reduce exposure until the upgrade can be applied.

Detection Guidance

This vulnerability involves an unauthenticated SQL injection via the rfilter request variable in Cacti versions 1.2.30 and prior. Detection can focus on monitoring HTTP requests to the vulnerable endpoint and analyzing logs for suspicious rfilter parameter usage.

You can detect attempts to exploit this vulnerability by inspecting web server access logs for requests to graph_view.php containing the rfilter parameter with suspicious or unusual SQL-like patterns.

Example command to search for suspicious rfilter usage in Apache logs:

  • grep -i 'graph_view.php' /var/log/apache2/access.log | grep 'rfilter='

To detect potential SQL injection payloads, you can look for common SQL metacharacters or patterns in the rfilter parameter, such as pipes (|), braces ({, }), or SQL keywords.

  • grep -E 'rfilter=.*(\||\{|\}|select|union|or|and)' /var/log/apache2/access.log

Additionally, network intrusion detection systems (NIDS) can be configured with rules to alert on HTTP requests to graph_view.php containing suspicious rfilter values.

Compliance Impact

The vulnerability is a high severity SQL injection in Cacti versions 1.2.30 and prior, allowing unauthenticated attackers to execute arbitrary SQL commands. This can lead to unauthorized access, data disclosure, and data integrity issues.

Such security weaknesses can impact compliance with standards like GDPR and HIPAA, which require protection of personal and sensitive data against unauthorized access and breaches.

If exploited, this vulnerability could result in exposure or alteration of protected data, potentially causing non-compliance with these regulations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-39893. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart