Skip to content
High 8.8 Web Application

SQL Injection in Cacti

CVE-2026-71287 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Cactiのsanitize_sql_column()関数では、ORDER BY句に使われる列名の無害化が不十分なため、認証済みの利用者がデータベースに対して時間差型のSQLインジェクションを実行できるおそれがあります。権限の高低にかかわらず悪用される可能性があるため注意が必要です。最新の情報を確認してください。

What is the problem

Cactiの関数sanitize_sql_column()の不適切なサニタイズによるSQLインジェクションの脆弱性。

Affected scope

lib/functions.php内のsanitize_sql_column()関数。

Severity

認証済みのCactiユーザーがタイムベースのブラインドSQLインジェクションを実行可能。

How to fix

正規表現の見直しおよびパラメータ化されたクエリの使用を考慮する。

Workaround

時間がかかってもSQLクエリの内容を手動で確認する。

Detection

GETパラメータsort_columnに対する入力の確認とアクセスログの精査。

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Cacti's sanitize_sql_column() (lib/functions.php) sanitizes user-supplied ORDER BY column names using the regex preg_replace('/[^a-zA-Z0-9_().]/', '', $column). Because this allowlist retains letters, digits, underscore, parentheses, and dot (intended to support expressions like COUNT(id) and table.column), a payload such as SLEEP(5) passes through completely unmodified. The sanitized value is concatenated directly into raw SQL ORDER BY clauses (which cannot be parameterized) driven by a sort_column GET parameter in at least user_log.php, utilities.php, user_domains.php, and user_group_admin.php, allowing any authenticated Cacti user, regardless of privilege level, to perform time-based blind SQL injection against the Cacti database.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details