CVE-2026-61851

Chartbrew: Incomplete Read-Only Keyword Blocklist in AI runQuery Tool

Published Sep 21, 2026 CVSS 4.0 · 6.5 Medium EPSS < 1% KEV · Not listed
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.2, Chartbrew's runQuery() implementation in server/modules/ai/orchestrator/tools/runQuery.js attempts to enforce read-only database access with a blocklist containing only seven SQL keywords. An authenticated user with AI feature access can submit dangerous statements or database functions that are absent from the read-only keyword blocklist, causing them to execute without SQL injection or keyword-obfuscation techniques. Depending on the database engine, configuration, and database-user privileges, this can expose or write files, access internal network resources, change database privileges, execute commands, or alter data. This issue is fixed in version 5.2.2.

Analysis

AI-generated

Technical impact

Chartbrew's AI runQuery tool enforces a read‑only policy by filtering SQL statements against a short list of prohibited keywords. The blocklist contains only seven keywords, omitting many dangerous statements and functions such as DROP, EXEC, REVOKE, and sysadmin commands. An authenticated user with AI feature access can submit queries containing these missing tokens, which the tool then executes without any safeguard, leading to unintended data disclosure, modification, or even execution of system commands depending on the underlying database permissions.

Affected Systems

Any deployment of the open‑source Chartbrew web application before version 5.2.2 is affected. The vulnerability resides in the runQuery.js module within the advanced AI orchestrator component and impacts all database connections that the application can reach. Users of the standard Chartbrew instance can exploit it if they have AI feature privileges. Version 5.2.2 and later contain a fixed blocklist that blocks the dangerous keywords, thereby removing the flaw.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity, and because EPSS data is unavailable there is no current evidence of widespread exploitation. The vulnerability is not listed in CISA KEV, and the attack requires an authenticated user with AI access, but once such a user crafts a malicious query the system can read, write, or alter data and potentially execute arbitrary commands if database privileges allow. The risk is therefore significant for installations that grant AI feature rights to broad user groups or expose the application to untrusted networks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Chartbrew version 5.2.2 or later.
  • If an upgrade is impossible, restrict AI feature access to trusted users only or disable it entirely.
  • Reconfigure the database user credentials so the Chartbrew account has no write or privilege‑altering rights.

Generated by OpenCVE AI on September 21, 2026 at 23:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Chartbrew
Chartbrew chartbrew
Vendors & Products Chartbrew
Chartbrew chartbrew
Type Values Removed Values Added
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.2, Chartbrew's runQuery() implementation in server/modules/ai/orchestrator/tools/runQuery.js attempts to enforce read-only database access with a blocklist containing only seven SQL keywords. An authenticated user with AI feature access can submit dangerous statements or database functions that are absent from the read-only keyword blocklist, causing them to execute without SQL injection or keyword-obfuscation techniques. Depending on the database engine, configuration, and database-user privileges, this can expose or write files, access internal network resources, change database privileges, execute commands, or alter data. This issue is fixed in version 5.2.2.
Title Chartbrew: Incomplete Read-Only Keyword Blocklist in AI runQuery Tool
Weaknesses CWE-184
References
Metrics cvssV4_0

{'score': 6.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 22, 2026, 3:38 PM
Reserved
Jul 10, 2026, 8:28 PM
Status
Deferred
Published
Sep 21, 2026, 10:16 PM
Modified
Sep 24, 2026, 9:25 PM