Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to SQLBot with valid account
-
ExploitPrompt LLM to emit pg_read_file/lo_export SQL
-
ExecutionBypass empty PostgreSQL denylist in check_sql_read()
-
ImpactRead or write files on database host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires: (1) a valid authenticated SQLBot account (PR:L); (2) the target datasource configured as PostgreSQL - the denylist bypass is specific to the 'pg' type whose rules were disabled; (3) an affected version in the range 1.10.0 through 1.10.3; and (4) the ability to steer LLM-generated SQL into emitting one of the file functions (pg_read_file, pg_read_binary_file, pg_ls_dir, pg_stat_file, pg_write_file, lo_import, lo_export). LIMITING FACTORS: the attack is not fully deterministic (AC:H/AT:P reflects reliance on shaping LLM output and on the PostgreSQL-only code path), and actual file read/write succeeds only if the PostgreSQL role used by the datasource connection holds the privileges those functions demand (historically superuser, or the pg_read_server_files/pg_write_server_files roles). A non-PostgreSQL datasource, or a patched build, is not exploitable via this flaw. |
| Impact | This is a moderate-severity, authenticated vulnerability (CVSS 4.0 6.0; vendor vector CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N) that is a real but not emergency priority. Multiple decision signals point the same direction: it is network-reachable (AV:N) but requires valid SQLBot credentials (PR:L), is not trivially reliable (AC:H plus AT:P, reflecting that the attacker must coax LLM-generated SQL into the right shape and that the bypass only matters for PostgreSQL datasources), and no CISA KEV listing or confirmed exploit code is present. The vuln.today Decision label is 'this_month', consistent with a patch-this-cycle item rather than act_now/emergency. No EPSS score was supplied, so widespread automated exploitation probability cannot be quantified from the input. The root cause is well-evidenced by the vendor commit (CWE-184 incomplete denylist: the table was keyed 'postgresql' while lookups use the DB type code 'pg', silently disabling the entire PostgreSQL rule set), so the mechanism is confirmed, not inferred. The primary impact is confidentiality (server-side file read via pg_read_file/pg_read_binary_file/pg_ls_dir/pg_stat_file) with limited integrity (file write via pg_write_file/lo_export); VC:H/VI:L reflects this read-heavy impact. Net: a genuine security-relevant flaw worth patching this cycle, not a high-CVSS-but-no-real-risk item, but gated behind authentication, PostgreSQL usage, and the database role's own file-access privileges. |
| Exploit ScenarioDerived | An authenticated SQLBot user connected to a PostgreSQL datasource prompts the LLM to generate a query that invokes pg_read_file('/etc/passwd') (or pg_write_file/lo_export); because the denylist key mismatch leaves check_sql_read() with no PostgreSQL dangerous-function rules, the query passes validation and executes on the database host. No public exploit code is identified at time of analysis, though the GitHub issue (1438) and VulnCheck advisory describe the flaw in detail. Success further depends on the underlying PostgreSQL role holding the privileges these file functions require. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 17, 2026
Authenticated SQLBot users on versions 1.10.0 through 1.10.3 can bypass the product's PostgreSQL dangerous-function denylist and invoke server-side file functions - pg_read_file, pg_write_file, lo_import or lo_export - against the database host, because the denylist is keyed 'postgresql' while runtime lookups use the datasource type 'pg'. Exploitation is not deterministic: it requires a PostgreSQL-configured datasource, the ability to steer LLM-generated SQL past check_sql_read(), and a database role holding the privileges those functions demand (historically superuser, or pg_read_server_files/pg_write_server_files), which is why it scores CVSS 4.0 6.0 (AV:N/AC:H/AT:P/PR:L/UI:N) rather than critical. No public exploit has been identified at time of analysis and no EPSS or KEV signal is present; the vendor has published an upstream fix commit, and the vuln.today decision label is this_month.
RemediationAI
Upstream fix available (commit 67d213fc3920c29e8ca7c27c5ea2334bdebe284d); a released patched version number is not independently confirmed, so deployments on 1.10.0-1.10.3 should apply that commit or move to the first build containing it, verifying afterwards that get_dangerous_functions('pg') resolves the PostgreSQL file-function set. Where the update cannot be applied immediately, reduce exposure by pointing PostgreSQL datasources at a low-privilege role that is neither superuser nor a member of pg_read_server_files/pg_write_server_files - the file functions then fail on permission checks, at the cost of any legitimate administrative capability that role provided - and by restricting which accounts may create or query PostgreSQL datasources, since exploitation needs an authenticated user able to influence LLM-generated SQL. Deployments without PostgreSQL datasources are not reachable through this flaw and need no compensating change. Vendor references: https://github.com/dataease/SQLBot/commit/67d213fc3920c29e8ca7c27c5ea2334bdebe284d and https://github.com/dataease/SQLBot/issues/1438.
Affected VersionsENISA
Affected Packages
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
SQLBot generates SQL from natural-language prompts and gates execution through check_sql_read(), which consults a per-datasource deny table (DS_SPECIFIC_DANGEROUS_FUNCTIONS) via get_dangerous_functions(ds.type). The PostgreSQL entry was written under the key 'postgresql', but the DB enum in apps/db/constant.py exposes the PostgreSQL type code as 'pg', so the PostgreSQL-specific rules never matched and the entire dialect rule set was silently inactive - a CWE-184 incomplete-list-of-disallowed-inputs logic error rather than a parsing or sanitisation bug. The commit 67d213fc3920c29e8ca7c27c5ea2334bdebe284d renames the key to 'pg' and broadens the set to pg_read_file, pg_read_binary_file, pg_ls_dir, pg_stat_file, pg_write_file, lo_import and lo_export, noting that even read-only connections can be used to read local files on the database host. The added regression tests pin every denylist key to a DB type code and drive the real check_sql_read() guard, asserting that write statements (INSERT/UPDATE/DELETE/TRUNCATE/COPY/DROP) are rejected while ordinary SELECTs still pass and that other dialects (MSSQL xp_cmdshell, MySQL LOAD_FILE) keep their own scoped rules. CPE cpe:2.3:a:dataease:sqlbot:*:*:*:*:*:*:*:* identifies DataEase SQLBot as the affected product; the trigger depends on LLM output shaping and the PostgreSQL-only code path, and successful file read or write further depends on the privileges of the PostgreSQL role configured for the datasource.
Know when Sqlbot 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
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable but requires a valid account (PR:L) and non-deterministic LLM/SQL steering plus PostgreSQL-only path (AC:H); server-side file read drives C:H, limited file write gives I:L, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SQLBot 1.10.0 through 1.10.3 fails to apply its PostgreSQL dangerous-function denylist because DS_SPECIFIC_DANGEROUS_FUNCTIONS uses 'postgresql' while lookups use the 'pg' type. Authenticated users can steer LLM-generated SQL past check_sql_read() using pg_read_file, pg_write_file, lo_import or lo_export to read or write files on the database host.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
SQLBot is an intelligent data query system based on a large language model and RAG. [CVSS 6.1 MEDIUM]
Prompt injection in SQLBot 1.7.0 and earlier allows authenticated attackers to execute arbitrary SQL statements through
Stored cross-site scripting in SQLBot's SQText dashboard component allows any authenticated low-privilege user who can e
Remote code execution in SQLBot 1.5.0 and below allows authenticated users to inject malicious prompts through unsanitiz
SQLBot, an intelligent data query system based on large language models and RAG, contains a critical SQL injection vulne
Cross-workspace IDOR in SQLBot (DataEase) versions prior to 1.8.0 allows authenticated low-privilege users to read and m
A Server-Side Request Forgery (SSRF) vulnerability in SQLBot, an intelligent data query system based on large language m
Authenticated workspace members in DataEase SQLBot through 1.10.1 can rename and rewrite other users' private dashboards
A vulnerability was found in Dataease SQLBot up to 1.5.1. This impacts the function validateEmbedded of the file backend
A vulnerability has been found in Dataease SQLBot up to 1.4.0. This affects an unknown function of the file backend/apps
Server-side request forgery (SSRF) in Dataease SQLBot up to version 1.6.0 allows high-privileged remote attackers to man
SQLBot stores local account passwords - including administrator credentials - as unsalted MD5 digests in sys_user.passwo
EUVD-2026-127009
GHSA-f9wg-44c5-frh4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB