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.
Published: 2026-09-21
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: Potential for unauthorized database access, data exfiltration, and remote code execution
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 21 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Chartbrew
Chartbrew chartbrew
Vendors & Products Chartbrew
Chartbrew chartbrew

Mon, 21 Sep 2026 22:00:00 +0000

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'}


Subscriptions

Chartbrew Chartbrew
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-21T21:40:53.699Z

Reserved: 2026-07-10T20:28:17.513Z

Link: CVE-2026-61851

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-21T22:16:58.000

Modified: 2026-09-21T22:16:58.000

Link: CVE-2026-61851

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T23:30:18Z

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs