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

Published Sep 17, 2026
·
Updated

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.

Affected Software

1 affected component
SQLBot<1.9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade SQLBot to a version that resolves this vulnerability.

    Fixed in 1.9.0
  2. Compensating control

    Review and restrict access to the datasource management API endpoints (/api/v1/datasource/ via POST and /api/v1/datasource/{id} via DELETE) so only trusted/admin users can create or delete Excel datasources.

  3. Operational

    After upgrading to 1.9.0, assume possible exploitation and check for and remediate any operating-system commands that may have run inside the SQLBot container (postgres process privileges).

Event History

Sep 17, 2026
CVE Published
via MITRE·09:41 PM
Data Sourced
via MITRE·09:41 PM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated SQLBot user who can submit an Excel datasource configuration through POST /api/v1/datasource/ can store a crafted sheet["tableName"] value. Exploitation is triggered later when that datasource is deleted through DELETE /api/v1/datasource/{id}.

2

What level of access can successful exploitation provide?

The SQL injection can use PostgreSQL COPY TO PROGRAM to run arbitrary operating-system commands. Those commands run with the privileges of the postgres process inside the SQLBot container.

3

Are current deployments affected?

SQLBot versions prior to 1.9.0 are affected. Version 1.9.0 fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203