Skip to content

SQLBot

SQLBot: Second-Order SQL Injection via Excel Datasource Leading to Remote Command Execution

CVE-2026-53557Published 17 Sep 2026, 21:41 UTC

Real-world risk

1.2/ 10Low

Routine

If the vulnerable configuration applies to you: 2.6

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.7

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

SQLBot is an intelligent Text-to-SQL system based on large language models and RAG. Prior to 1.9.0, an authenticated user can supply a crafted sheet["tableName"] value in the Excel datasource configuration submitted through POST /api/v1/datasource/, and SQLBot stores that value without safe identifier handling. When the same datasource is later removed through DELETE /api/v1/datasource/{id}, the stored value is interpolated into datasource cleanup SQL and executed by PostgreSQL. This second-order SQL injection can invoke PostgreSQL COPY TO PROGRAM and execute arbitrary operating-system commands with the privileges of the postgres process inside the SQLBot container. This issue is fixed in version 1.9.0.

Am I affected?

ProductAffected versions (from the sources)Fixed in
SQLBotNiche< 1.9.01.9.0

What to do

Update to a fixed version: 1.9.0.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Reference tagged as exploit (link)

EPSS 0.3% chance of exploitation in 30 days (percentile 20), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together0.122
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 1 × prerequisites 0.1215 × threat 0.951.154
  4. Rounded to one decimal between 0.1 and 101.2

How the score works

Exploitation and evidence timeline

  1. 17 Sep 2026 Published
  2. 3 Dec 2026 Reference tagged as exploit first seen
  3. 3 Dec 2026 Risk 1.2 (cvss fallback)

Weakness

CWE-89

References

Get alerts for SQLBot

Free email or text alerts when a vulnerability in SQLBot reaches risk 8 or higher. Nothing else.