{"id":"CVE-2026-61851","aliases":["CVE-2026-61851"],"related":[],"kind":"vulnerability","state":"published","title":"Chartbrew: Incomplete Read-Only Keyword Blocklist in AI runQuery Tool","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-21T21:40:53.699Z","modified":"2026-09-24T21:25:27.050Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-184"],"affected":[{"ranges":[{"version":"< 5.2.2","status":"affected"}],"vendor":"chartbrew","product":"chartbrew","source":"cvelist"}],"references":[{"url":"https://github.com/chartbrew/chartbrew/security/advisories/GHSA-cp8j-2xwc-hxg8","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/chartbrew/chartbrew/commit/8c8412edce56093e81b524e0235a796c7dd42336","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/chartbrew/chartbrew/releases/tag/v5.2.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-22T14:12:09.684Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61851","url":"https://www.cve.org/CVERecord?id=CVE-2026-61851","licence":"CVE Terms of Use","modified":"2026-09-22T15:38:35.549Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61851","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61851","licence":"Public domain","modified":"2026-09-24T21:25:27.050Z"}],"updatedAt":"2026-11-25T22:59:40.399Z","epss":{"score":0.00269,"percentile":0.20416,"date":"2026-12-01T12:00:22.000Z"}}