Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Cacti's sanitize_sql_column() (lib/functions.php) sanitizes user-supplied ORDER BY column names using the regex preg_replace('/[^a-zA-Z0-9_().]/',… (CVE-2026-71287)

0
High
Published: 08/05/2026 (08/05/2026, 15:32:21 UTC)
Source: GCVE Database

Description

Cacti's sanitize_sql_column() function inadequately sanitizes user-supplied ORDER BY column names, allowing time-based blind SQL injection via the sort_column GET parameter. The sanitization regex permits characters that enable payloads like SLEEP(5) to pass unmodified. This vulnerability affects multiple PHP files and can be exploited by any authenticated user regardless of privilege level.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 18:57:28 UTC

Technical Analysis

The sanitize_sql_column() function in Cacti's lib/functions.php attempts to sanitize ORDER BY column names using a regex that removes characters except letters, digits, underscore, parentheses, and dot. This allowlist unintentionally permits SQL expressions such as SLEEP(5) to pass through unaltered. The sanitized input is directly concatenated into raw SQL ORDER BY clauses in user_log.php, utilities.php, user_domains.php, and user_group_admin.php. Since ORDER BY clauses cannot be parameterized, this leads to a time-based blind SQL injection vulnerability exploitable by any authenticated user regardless of privilege level.

Potential Impact

An attacker with any authenticated access to Cacti can exploit this vulnerability to perform time-based blind SQL injection against the Cacti database. This can lead to unauthorized data disclosure, data modification, or denial of service. The vulnerability has a high CVSS score of 8.8, indicating significant confidentiality, integrity, and availability impacts.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict authenticated user access to trusted users only and monitor for suspicious activity related to SQL injection attempts in the affected endpoints. Avoid relying on the sanitize_sql_column() function for sanitizing ORDER BY inputs.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-7v66-c77r-g454
Osv Schema Version
1.4.0
Aliases
["CVE-2026-71287"]
Ecosystems
[]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a738524bf8831d5394effec

Added to database: 08/05/2026, 18:47:00 UTC

Last enriched: 08/05/2026, 18:57:28 UTC

Last updated: 08/06/2026, 01:49:04 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses