Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Cacti cacti
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Cacti是Cacti团队开源的一款日志分析与审计软件。 Cacti 1.2.30及之前版本存在SQL注入漏洞,该漏洞源于通过grv()原始访问器检索rfilter请求参数并直接拼接到RLIKE SQL子句中,可能导致未经身份验证的攻击者在启用访客图表查看时注入任意SQL,从而破坏数据库的机密性、完整性和可用性。

AI Predicted 9.8 Difficulty: Easy EPSS 0.85% · P57

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
Cacti cacti < 1.2.31 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-39948

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Cacti has SQL Injection via rfilter parameter in RLIKE clauses
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Cacti SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Cacti是Cacti团队开源的一款日志分析与审计软件。 Cacti 1.2.30及之前版本存在SQL注入漏洞,该漏洞源于通过grv()原始访问器检索rfilter请求参数并直接拼接到RLIKE SQL子句中,可能导致未经身份验证的攻击者在启用访客图表查看时注入任意SQL,从而破坏数据库的机密性、完整性和可用性。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Cacti cacti < 1.2.31 -

II. Public POCs for CVE-2026-39948

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-39948

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-39948 (1)

Vendor Advisories for CVE-2026-39948 (1)

Same Patch Batch · Cacti · 2026-06-24 · 10 CVEs total

CVE-2026-39955 9.8 CRITICAL Cacti has Pre-Authentication SQL Injection via unanchored FILTER_VALIDATE_REGEXP in graph
CVE-2026-39893 9.8 CRITICAL Cacti: Pre-authentication SQL injection via rfilter RLIKE clause in graph_view.php
CVE-2026-39938 9.8 CRITICAL Cacti: Unauthenticated RCE on Graph Image
CVE-2026-39951 7.6 HIGH Cacti: Stored SQL Injection via graph_name_regexp in Reports feature
CVE-2026-39894 2.9 LOW Cacti: RRDtool metric shift via LC_NUMERIC locale comma decimal formatting
CVE-2026-39900 Cacti: Reflected XSS via tab parameter in auth_profile.php JavaScript context
CVE-2026-39897 Cacti has a Reflected XSS Vulnerability via html_auth_footer
CVE-2026-39899 Cacti: Path Traversal via filename parameter in package_import.php
CVE-2026-40079 Cacti: Command Injection via escape_command() no-op in RRDtool execution

IV. Related Vulnerabilities

V. Comments for CVE-2026-39948

No comments yet


Leave a comment