Skip to main content

Chartbrew CVE-2026-69128

| EUVDEUVD-2026-118511 MEDIUM
Path Traversal (CWE-22)
2026-11-06 GitHub_M
4.6
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as team Owner/Admin
  2. Delivery
    Steer AI assistant via /ai/orchestrate question
  3. Exploit
    Model emits quoted or sibling PG file function
  4. Execution
    SELECT bypasses DANGEROUS_SQL_PATTERNS blocklist
  5. Impact
    Raw Sequelize execute reads files from PostgreSQL host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires ALL of: (1) Chartbrew AI features enabled, i.e. an OpenAI key configured on the instance (non-default); (2) the attacker authenticated as teamOwner or teamAdmin for the target teamId passed to POST /ai/orchestrate (enforced by checkAccess - above a plain team member); (3) an AI-enabled PostgreSQL connection whose stored database role can call server-side file functions. The attacker supplies no PostgreSQL credentials - Chartbrew holds them - but the DB role determines scope: a PostgreSQL superuser or pg_read_server_files member can resolve arbitrary absolute paths readable by the PostgreSQL OS user, while a non-superuser role is limited to the source-stated PGDATA-relative scope. The specific bypass primitives are the double-quoted identifier form of denied functions ("pg_read_file"(...), convert_from("pg_read_binary_file"(...),'UTF8')) and unlisted sibling functions (pg_stat_file, pg_ls_logdir/waldir/tmpdir/archive_statusdir, pg_current_logfile). Limiting factors: PR:H elevated Chartbrew privilege, dependence on the AI feature being enabled, and the connected DB role's filesystem privileges - absent a file-capable role there is no file disclosure.

Impact

This is a genuinely medium/low-urgency issue rather than a top-priority emergency, and the signals are internally consistent. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H/UI:N, VC:N/VI:N/VA:N, SC:H) scores 4.6 (Medium): network-reachable but gated behind PR:H (team Owner/Admin) and AT:P (specific attack requirements - AI features enabled plus a PostgreSQL role that can call server-side file functions). The only impact is subsequent-system confidentiality (SC:H): arbitrary file read on the connected PostgreSQL host; there is no integrity or availability impact and no direct impact to Chartbrew itself. Exploitation status is 'no public exploit identified at time of analysis' in the KEV/POC sense - not in CISA KEV and no EPSS score was supplied - but this must be qualified: the GHSA advisory itself publishes concrete proof-of-concept payloads (e.g. SELECT "pg_read_file"('/etc/passwd')) and a full end-to-end reproduction driver against a pinned 5.2.2, so working exploitation detail is public even though it is not catalogued as actively exploited. The vuln.today decision label is 'this_month', consistent with Medium severity and high privilege requirements rather than act_now/emergency. Net: a real, confirmed defense-in-depth bypass worth patching on a normal cycle, but the PR:H + AT:P gating and confidentiality-only impact keep it well below the priority of an unauthenticated RCE. Note a fix-version conflict in the sources (see confidence_notes) that should be resolved before remediation tracking.

Exploit ScenarioDerived

An authenticated Chartbrew team Owner or Admin on an instance with AI features enabled (OpenAI key configured) uses the AI assistant against a PostgreSQL connection whose stored DB role can call filesystem functions, and steers the model to emit SQL using a double-quoted denied function or an unlisted sibling (e.g. SELECT "pg_read_file"('/etc/passwd') or SELECT pg_stat_file(...)). The blocklist's \b-anchored regexes miss the quoted form and never enumerated the siblings, so the SELECT passes the gate and executes raw, returning file contents from the PostgreSQL host. A detailed PoC and reproduction exist publicly in the GHSA advisory; practical reach depends on the DB role (superuser/pg_read_server_files for arbitrary absolute paths, otherwise PGDATA-relative).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Arbitrary file read from the host of a connected PostgreSQL database is possible in Chartbrew 5.2.2 because the AI orchestrator's SQL denylist is incomplete, allowing a team Owner or Admin to steer the assistant's generated SQL into double-quoted identifier calls such as "pg_read_file"('/etc/passwd') or unlisted sibling functions such as pg_stat_file, pg_ls_waldir and pg_current_logfile that pass the gate and reach the raw Sequelize execute. Exploitation requires Chartbrew AI features to be enabled (an OpenAI key configured on the instance), an authenticated teamOwner or teamAdmin for the target team, and a connected PostgreSQL connection whose stored database role can call server-side file functions - a superuser or pg_read_server_files role can resolve arbitrary absolute paths, while a non-superuser is limited to the PGDATA-relative scope stated in the source. The advisory documents proof-of-concept payloads and an end-to-end reproduction against 5.2.2; no active exploitation is confirmed and the vendor shipped a fix in 5.2.3.

RemediationAI

Upgrade to the fixed release: the advisory and release tag identify Chartbrew 5.2.3 (https://github.com/chartbrew/chartbrew/releases/tag/v5.2.3) as the patched version, while package metadata lists 5.3.0 as the fixed version, so confirm your distribution's resolved version against both. The upstream fix in commit b83f656a8757beccba461f0f6c5abb1a25dc3b4c replaces the three per-function regexes with a single family-wide pattern, /(?:\b|")pg_(?:read|stat|ls|current_logfile)[a-z0-9_]*"?\s*\(/i, which covers the sibling functions and the double-quoted identifier form, and adds unit tests in runQueryTool.test.js for quoted-identifier and sibling-function payloads. If upgrading immediately is not possible, two evidence-supported measures reduce exposure: disable AI features (remove the configured OpenAI key from the instance), which removes the only reachable attack surface at the cost of losing the assistant; and replace the stored PostgreSQL credentials for AI-enabled connections with a non-superuser role that is not a member of pg_read_server_files, which restricts any residual bypass to PGDATA-relative file access rather than arbitrary absolute paths readable by the PostgreSQL OS user, at the cost of narrowing legitimate file-related queries. Review access so that teamOwner and teamAdmin roles are limited to trusted operators, since that privilege level is the attacker requirement. Full details: https://github.com/chartbrew/chartbrew/security/advisories/GHSA-jw2r-hrxg-cfgc.

Affected VersionsENISA

chartbrew 5.2.2, < 5.2.3

Affected Packages

euvd chartbrew fix: 5.2.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Chartbrew's AI assistant exposes a run_query tool at POST /ai/orchestrate that executes LLM-generated SQL against a team's connected database. The only gate on that SQL before it reaches the live engine is normalizeSqlQuery in server/modules/ai/orchestrator/tools/runQuery.js, which enforces a SELECT/WITH prefix allowlist, rejects semicolons and SQL comments, and applies a DANGEROUS_SQL_PATTERNS denylist (CWE-184, incomplete denylist). The denylist enumerates three PostgreSQL filesystem functions by literal token (pg_read_file, pg_read_binary_file, pg_ls_dir) and anchors each regex on \b<token>\s*\(. Two gaps defeat it: the enumeration omits the rest of PostgreSQL's SELECT-callable filesystem family (pg_stat_file, pg_ls_logdir, pg_ls_waldir, pg_ls_tmpdir, pg_ls_archive_statusdir, pg_current_logfile), and the \b anchor does not match PostgreSQL's interchangeable double-quoted identifier form, so "pg_read_file"(...) and convert_from("pg_read_binary_file"(...),'UTF8') execute while the regex never fires. The tool's query argument is taken verbatim from the model's tool call (JSON.parse of toolCall.function.arguments), and only team_id is injected server-side, so whoever controls the natural-language question - directly or via prompt injection in data the model reads - controls the SQL transitively. The separate validateQuery tool is a stub returning valid:true, leaving normalizeSqlQuery as the sole control; passing payloads are forwarded unchanged via getQueryToExecute in server/sources/shared/sql/sql.protocol.js to dbConnection.query using Sequelize.QueryTypes.SELECT against credentials Chartbrew holds. This maps to CWE-22 in that the primitive is unauthorized file path access on the database host, with the weak-denylist aspect tracked as CWE-184.

Know when Chartbrew gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 4.6 MEDIUM
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
vuln.today AI 5.8 MEDIUM

Network-reachable but PR:H (team Owner/Admin) and AC:H for the DB-role/AI-enabled attack requirements; S:C since files are read on the separate PostgreSQL host, C:H, no integrity/availability impact.

3.1 AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 22:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche self-hosted open-source BI/charting tool, limited enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2026-27005 CRITICAL POC
9.8 Mar 06

SQL injection in Chartbrew before 4.8.3. PoC available.

CVE-2026-25888 HIGH POC
8.8 Mar 06

Remote code execution in Chartbrew prior to version 4.8.1 allows authenticated attackers to execute arbitrary code throu

CVE-2026-27603 HIGH POC
7.5 Mar 06

Chartbrew versions up to 4.8.4 is affected by missing authentication for critical function (CVSS 7.5).

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2026-25877 MEDIUM POC
6.5 Mar 06

Chartbrew versions before 4.8.1 fail to validate chart ownership during modification operations, allowing authenticated

CVE-2026-27605 MEDIUM POC
6.3 Mar 06

Chartbrew versions prior to 4.8.4 allow authenticated users to upload arbitrary files by bypassing file type validation,

CVE-2026-68935 CRITICAL
9.1 Nov 06

Chartbrew 4.8.5 through 5.2.2 lets an authenticated user who can create or update API connections persist an internal `a

CVE-2026-40600 HIGH
8.1 Apr 30

Authenticated users in Chartbrew 4.9.0 can modify or delete dashboard sharing policies across projects they don't own du

CVE-2026-40904 HIGH
8.1 Apr 30

Horizontal privilege escalation in Chartbrew 4.9.0 allows authenticated low-privilege team members to access datasets, d

CVE-2026-65980 HIGH
7.9 Sep 21

SQL injection in Chartbrew versions prior to 5.2.3 allows an unauthenticated remote attacker to break out of an intended

CVE-2026-30232 HIGH
7.8 Apr 10

Server-Side Request Forgery in Chartbrew versions prior to 4.8.5 allows authenticated users to create API data connectio

CVE-2026-32252 HIGH
7.7 Apr 10

Cross-tenant authorization bypass in Chartbrew versions prior to 4.9.0 allows authenticated attackers to exfiltrate sens

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy