# CVE-2026-32950: SQLBot: RCE via SQL Injection in Excel Upload Endpoint

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-20T04:14:45.640Z
- Modified: 2026-06-17T10:36:37.353Z
- Weaknesses: CWE-78, CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

SQLBot is an intelligent data query system based on a large language model and RAG. Versions prior to 1.7.0 contain a critical SQL Injection vulnerability in the /api/v1/datasource/uploadExcel endpoint that enables Remote Code Execution (RCE), allowing any authenticated user (even the lowest-privileged) to fully compromise the backend server. The root cause is twofold: Excel Sheet names are concatenated directly into PostgreSQL table names without sanitization (datasource.py#L351), and those table names are embedded into COPY SQL statements via f-strings instead of parameterized queries (datasource.py#L385-L388). An attacker can bypass the 31-character Sheet name limit using a two-stage technique—first uploading a normal file whose data rows contain shell commands, then uploading an XML-tampered file whose Sheet name injects a TO PROGRAM 'sh' clause into the SQL. Confirmed impacts include arbitrary command execution as the postgres user (uid=999), sensitive file exfiltration (e.g., /etc/passwd, /etc/shadow), and complete PostgreSQL database takeover. This issue has been fixed in version 1.7.0.

(As written by CVE List.)

## Affected

- dataease SQLBot: < 1.7.0
- fit2cloud sqlbot: before 1.7.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/dataease/SQLBot/security/advisories/GHSA-7hww-8rj5-7rmm> (exploit, vendor-advisory)
- <https://github.com/dataease/SQLBot/commit/39f2203cec4bb4b0aa541710733fe7608e3d3c48> (patch)
- <https://github.com/dataease/SQLBot/releases/tag/v1.7.0> (release-notes)

## Sources

- CVE List: [CVE-2026-32950](https://www.cve.org/CVERecord?id=CVE-2026-32950), CVE Terms of Use, modified 2026-03-24
- NVD: [CVE-2026-32950](https://nvd.nist.gov/vuln/detail/CVE-2026-32950), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32950 · Whole record: https://cve.day/CVE-2026-32950.json · Rebuilt by cve.day 2026-11-25T22:59:16.273Z
