Technical impact
SQLBot 1.10.0 through 1.10.3 contains a logic flaw that allows a key mismatch in the PostgreSQL dangerous‑function denylist. The DS_SPECIFIC_DANGEROUS_FUNCTIONS dictionary uses the key ‘postgresql’ while the lookup routine expects the key ‘pg’, causing the functions pg_read_file, pg_write_file, lo_import, and lo_export to bypass the check_sql_read() check. Authenticated users can incorporate these functions into LLM‑generated SQL, enabling the reading or writing of arbitrary files on the database host. This is a type of input validation error described by CWE‑184.
Affected Systems
All deployments of DataEase SQLBot version 1.10.0, 1.10.1, 1.10.2, and 1.10.3, wherever the impacted code paths in db.py are active. The issue is independent of the hosting environment and will affect any installation that generates SQL through the LLM component.
Risk and Exploitability
The CVSS score of 6.0 indicates a moderate severity. The EPSS score is not available, so the precise likelihood of exploitation cannot be quantified, but the flaw can be triggered by any authenticated user with access to the LLM‑generated SQL path. The vulnerability is not listed in the CISA KEV catalog. Attackers with legitimate credentials can read or write files on the database host, representing a local privilege escalation that could exfiltrate sensitive data or alter system files.