Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-61852— Chartbrew: SQL Injection via row_limit Parameter in AI runQuery Tool

Quick assessment

Affected
chartbrew chartbrew
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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 interpolates the AI tool's

CVSS 5.8 · Medium EPSS 0.29% · P21

Affected Version Matrix 1

VendorProduct Version RangeStatus
chartbrew chartbrew < 5.2.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-61852

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Chartbrew: SQL Injection via row_limit Parameter in AI runQuery Tool
Source: CVE Program / CVE List V5
Vulnerability 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 interpolates the AI tool's row_limit parameter into a SQL LIMIT clause without runtime integer validation. The read-only keyword check runs before this value is appended, so an authenticated user who can influence a model-generated non-integer row_limit can add SQL that bypasses the earlier check. Successful exploitation can execute arbitrary statements against the connected database, including reading or changing data and, where database permissions permit, accessing files or executing operating-system commands. This issue is fixed in version 5.2.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
chartbrew chartbrew < 5.2.2 -

II. Public POCs for CVE-2026-61852

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-61852

登录查看更多情报信息。

Patches & Fixes for CVE-2026-61852 (1)

Other References for CVE-2026-61852 (2)

Same Patch Batch · chartbrew · 2026-09-21 · 4 CVEs total

CVE-2026-65980 7.9 HIGH Chartbrew: SQL Injection via Missing Backslash Escaping in ClickHouse Variable Substitutio
CVE-2026-61851 6.5 MEDIUM Chartbrew: Incomplete Read-Only Keyword Blocklist in AI runQuery Tool
CVE-2026-61743 6.3 MEDIUM Chartbrew: DNS Rebinding SSRF Bypass in Outbound Request Validation

IV. Related Vulnerabilities

V. Comments for CVE-2026-61852

No comments yet


Leave a comment