CVE-2026-33324
JSON

9.4critical

SQLBot prompt injection allows arbitrary SQL execution and remote code execution

Severity
9.4critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

SQLBot is an intelligent Text-to-SQL system based on large language models and RAG. In versions 1.7.0 and earlier, the Text2SQL chat interface is vulnerable to prompt injection. The user-provided question parameter is directly concatenated into the LLM prompt without filtering or escaping, and the SQL extracted from the LLM response is executed against the database without validation or sanitization. An authenticated attacker can craft a malicious question to manipulate the LLM into generating and executing arbitrary SQL statements. When connected to a PostgreSQL data source, this can lead to remote code execution via COPY FROM PROGRAM. This issue has been fixed in version 1.7.1.

Affected

Product or packageVersionsReported by
dataease SQLBot< 1.7.1CVE List
fit2cloud sqlbotbefore 1.7.1NVD

All scores

GitHub_M9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-89

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

SQLBot is an intelligent Text-to-SQL system based on large language models and RAG. In versions 1.7.0 and earlier, the Text2SQL chat interface is vulnerable to prompt injection. The user-provided question parameter is directly concatenated into the LLM prompt without filtering or escaping, and the SQL extracted from the LLM response is executed against the database without validation or sanitization. An authenticated attacker can craft a malicious question to manipulate the LLM into generating and executing arbitrary SQL statements. When connected to a PostgreSQL data source, this can lead to remote code execution via COPY FROM PROGRAM. This issue has been fixed in version 1.7.1.

NVD (es)

SQLBot es un sistema inteligente Text-to-SQL basado en grandes modelos de lenguaje y RAG. En las versiones 1.7.0 y anteriores, la interfaz de chat Text2SQL es vulnerable a la inyección de prompts. El parámetro de pregunta proporcionado por el usuario se concatena directamente en el prompt del LLM sin filtrar ni escapar, y el SQL extraído de la respuesta del LLM se ejecuta contra la base de datos sin validación ni saneamiento. Un atacante autenticado puede elaborar una pregunta maliciosa para manipular el LLM y hacer que genere y ejecute sentencias SQL arbitrarias. Cuando se conecta a una fuente de datos PostgreSQL, esto puede llevar a la ejecución remota de código a través de COPY FROM PROGRAM. Este problema ha sido solucionado en la versión 1.7.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-33324 changed 2026-05-05CVE Terms of Use
NVDCVE-2026-33324 changed 2026-07-24Public domain