← Back to search

CVE-2026-54349

9.8 CRITICALpublic exploit available

Published 2026-11-06 · Updated 2026-11-09

AI risk analysis

Summary
Chartbrew prior to 5.2.1 allows unauthenticated SQL injection via unsanitized URL-controlled variables in dashboard/chart queries, where attacker-supplied JavaScript replacement strings bypass intended escaping and alter SQL logic independently of the database engine, with a secondary backslash-escape flaw in MySQL/MariaDB contexts enabling further injection.
Exploitability
Exploitation is straightforward for unauthenticated attackers targeting public or embedded charts that use URL variables in stored SQL queries; no authentication or special privileges required.
Blast radius
Successful exploitation enables full compromise of the database accessible to the application’s database account, including data exfiltration, modification, or deletion.
Detection
Look for SQL syntax anomalies in application logs for requests to public/embedded chart endpoints with URL filter parameters containing dollar-sign sequences (e.g., $${...}) or unexpected backslash patterns in SQL query contexts; however, no reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to Chartbrew version 5.2.1 or later, which fixes both the unsafe variable substitution and the MySQL/MariaDB backslash-escape handling.
sql-injectionwebauth-bypassdata-exfiltrationopen-source-app

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.1, SQL dashboard-variable substitution used attacker-controlled JavaScript replacement strings unsafely across SQL connectors and separately failed to escape backslashes for MySQL and MariaDB quoted contexts. The vulnerable surface is public and embedded dashboard/chart requests that call applyMysqlOrPostgresVariables. An unauthenticated user sends crafted URL filter values to a public or embedded chart backed by a stored SQL query. Replacement-string dollar sequences can alter SQL independently of the database engine, while MySQL and MariaDB backslash handling provides a second quoted-string escape path. The target must expose a public or embedded chart using URL-controlled variables in a SQL query; only the backslash branch is specific to MySQL and MariaDB. Injected SQL can read, modify, or delete data available to the configured database account. This issue is fixed in version 5.2.1.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-89

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.