Description
Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. In 5.2.2, the AI SQL blocklist omitted sibling PostgreSQL filesystem functions and failed to match double-quoted identifier forms of denied functions. The vulnerable surface is the AI query tool's PostgreSQL SQL-validation blocklist. A team Owner or Admin uses an AI-enabled PostgreSQL connection whose database role can call server-side file functions and causes generated SQL to use an unlisted sibling function or a double-quoted denied function. Unlisted sibling functions remain allowed, and double-quoted function identifiers bypass the denylist regular expressions and reach PostgreSQL. AI features must be enabled and the user must have elevated Chartbrew privileges. A PostgreSQL superuser or pg_read_server_files role can resolve absolute paths to files readable by the PostgreSQL OS user, while a non-superuser is limited to the source-stated PGDATA-relative scope. This vulnerability is fixed in 5.2.3.
Published: 2026-11-06
Score: 4.6 Medium
EPSS: n/a
KEV: No
Impact: Arbitrary File Read via SQL blocklist bypass
Action: Apply Patch
AI Analysis

Impact

Chartbrew's AI query tool contains a flaw in the PostgreSQL SQL‑validation blocklist that omits sibling functions such as pg_stat_file and allows double‑quoted identifiers to bypass the denylist. If an owner or admin user enables AI for a PostgreSQL connection whose database role can invoke server‑side file functions, the validator will accept a crafted query that references an unlisted sibling or a double‑quoted function. The resulting SQL is executed with the database role’s privileges, letting the attacker read arbitrary files that the PostgreSQL process can access, such as files within the PGDATA directory or other server‑side paths. This provides a local file‑read vulnerability that can expose configuration files, credentials, or other sensitive data, depending on the PostgreSQL role’s permissions.

Affected Systems

Chartbrew versions prior to 5.2.3 are affected, specifically 5.2.2 where the vulnerability exists. The product is chartbrew/chartbrew, an open‑source web application that connects to databases and APIs to build charts. The fix is included in release 5.2.3, which restores the proper denylist checks and removes the ability to use the vulnerable functions via double‑quoted identifiers.

Risk and Exploitability

The CVSS score of 4.6 places the vulnerability in the low severity range, and no EPSS score is available for current exploitation data. It is not listed in the CISA KEV catalog. Exploitation requires that AI features be enabled, the user have owner or admin rights in Chartbrew, and the connected PostgreSQL role possess file‑access functionality such as pg_read_server_files or must be a superuser. Once those conditions are met, an attacker can craft a single query that bypasses the blocklist and retrieve arbitrary files. Based on the description, it is inferred that the attack vector requires an attacker who already has Owner or Admin rights within Chartbrew and has access to an AI‑enabled PostgreSQL connection. The lack of publicly documented exploits suggests the threat is limited to environments where the above conditions align.

Generated by OpenCVE AI on November 6, 2026 at 22:23 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Chartbrew to version 5.2.3 or later, where the SQL‑blocklist has been fixed.
  • If an upgrade is not possible, temporarily disable the AI query functionality until a patch is applied.
  • Ensure that only trusted users with the necessary privileges use AI queries and that PostgreSQL roles are restricted from server‑side file functions such as pg_stat_file or pg_ls_*
  • Review PostgreSQL role permissions to limit file‑system access, especially for non‑superuser roles.

Generated by OpenCVE AI on November 6, 2026 at 22:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 23:00:00 +0000

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

Fri, 06 Nov 2026 21:30: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. In 5.2.2, the AI SQL blocklist omitted sibling PostgreSQL filesystem functions and failed to match double-quoted identifier forms of denied functions. The vulnerable surface is the AI query tool's PostgreSQL SQL-validation blocklist. A team Owner or Admin uses an AI-enabled PostgreSQL connection whose database role can call server-side file functions and causes generated SQL to use an unlisted sibling function or a double-quoted denied function. Unlisted sibling functions remain allowed, and double-quoted function identifiers bypass the denylist regular expressions and reach PostgreSQL. AI features must be enabled and the user must have elevated Chartbrew privileges. A PostgreSQL superuser or pg_read_server_files role can resolve absolute paths to files readable by the PostgreSQL OS user, while a non-superuser is limited to the source-stated PGDATA-relative scope. This vulnerability is fixed in 5.2.3.
Title Chartbrew: AI orchestrator run_query SQL blocklist bypass enables arbitrary file read on connected PostgreSQL (quoted-identifier + pg_stat_file/pg_ls_* sibling gap)
Weaknesses CWE-184
CWE-22
References
Metrics cvssV4_0

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


Subscriptions

Chartbrew Chartbrew
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-06T21:17:12.971Z

Reserved: 2026-08-03T15:20:30.217Z

Link: CVE-2026-69128

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-06T22:17:59.570

Modified: 2026-11-06T22:17:59.700

Link: CVE-2026-69128

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T22:45:11Z

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')