CVE Catalog

CVE-2026-53554

HighCVSS 7.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.36%

30th percentile - higher than 30% of all known CVEs

Summary

In SQLBot prior to 1.9.0, the POST /api/v1/datasource/parseExcel endpoint uses attacker-controlled multipart filename data to select where uploaded content is stored, writes content before validation completes, and can transform a double-extension filename into a Python source file. The file lands in alembic/versions/ and is imported on SQLBot startup.

Risk Assessment

An attacker can plant a malicious Python file that executes on SQLBot startup or migration, leading to remote code execution in the application context. This may result in full system takeover.

Recommendation

Upgrade SQLBot to version 1.9.0 or later. Verify the contents of the alembic/versions/ directory and restrict file uploads by unprivileged users.

Other vulnerabilities in SQLBot

See all
Original NVD description (English source)

SQLBot is an intelligent Text-to-SQL system based on large language models and RAG. Prior to 1.9.0, the POST /api/v1/datasource/parseExcel endpoint in backend/apps/datasource/api/datasource.py uses attacker-controlled multipart filename data when selecting where uploaded content is stored, writes the content before spreadsheet parsing and validation finish, and can transform a double-extension filename into a Python source file. An attacker able to submit a crafted multipart upload can use these behaviors to place attacker-controlled content in /opt/sqlbot/app/alembic/versions/ even when a spreadsheet parsing failure after the file write causes the endpoint to return an error. The planted file remains on disk, and subsequent SQLBot startup or migration processing causes Alembic to import the module and execute its module-level statements in the SQLBot application runtime. This issue is fixed in version 1.9.0.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS