CVE-2026-65980
Received Received - Intake

ClickHouse SQL Injection in Chartbrew

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

Publication date: 2026-09-21

Last updated on: 2026-09-21

Assigner: GitHub, Inc.

Description

Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. Prior to 5.2.3, Chartbrew's ClickHouse protocol in server/sources/plugins/clickhouse/clickhouse.protocol.js calls applySqlVariables() from server/sources/shared/sql/sql.variables.js without enabling the escapeBackslash option. For a ClickHouse-backed chart with variable binding, an attacker can supply a backslash before a quote so quote doubling does not keep the value within its intended SQL string literal. Public dashboards can expose this path without authentication, and successful exploitation can execute arbitrary ClickHouse SQL to disclose data or, when the database configuration permits, access files or internal network resources. This issue is fixed in version 5.2.3.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-21
Last Modified
2026-09-21
Generated
2026-09-22
AI Q&A
2026-09-22
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
chartbrew chartbrew 5.2.3

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

Chartbrew before 5.2.3 has a flaw in its ClickHouse protocol where backslashes are not properly escaped in SQL queries. Attackers can inject backslashes before quotes to bypass quote doubling, allowing arbitrary SQL execution. Public dashboards without authentication can expose this issue, enabling data disclosure or access to files/internal network resources if the database allows it.

Detection Guidance

To detect this vulnerability, check if your Chartbrew instance is running a version prior to 5.2.3. Inspect the file server/sources/plugins/clickhouse/clickhouse.protocol.js for the use of applySqlVariables() without the escapeBackslash option enabled. Verify if public dashboards are accessible without authentication and test for SQL injection via ClickHouse variable binding with backslash-quote sequences.

Impact Analysis

If you use Chartbrew with ClickHouse and have public dashboards, attackers could exploit this to run malicious SQL queries. This may lead to unauthorized data access, data leaks, or even file system or internal network access depending on the database configuration.

Compliance Impact

This vulnerability could lead to unauthorized data access or leaks, violating GDPR's data protection principles or HIPAA's security requirements for protected health information. Non-compliance risks include fines, legal penalties, and reputational damage.

Mitigation Strategies

Upgrade Chartbrew to version 5.2.3 or later to address the vulnerability in the ClickHouse protocol handling.

Chat Assistant

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

EPSS Chart