{"id":"CVE-2026-53557","state":"PUBLISHED","title":"SQLBot: Second-Order SQL Injection via Excel Datasource Leading to Remote Command Execution","description":"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.","publishedAt":"2026-09-17T21:41:45.155Z","updatedAt":"2026-09-22T01:54:15.476Z","severity":{"score":7.7,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["dataease SQLBot"],"affected":[{"vendor":"dataease","product":"SQLBot","versions":[{"version":"< 1.9.0","status":"affected"}]}],"references":["https://github.com/dataease/SQLBot/security/advisories/GHSA-vxwj-843f-9c9g","https://github.com/dataease/SQLBot/commit/5d5a92a5266e62da7de4a84ffc8317498497b193","https://github.com/dataease/SQLBot/releases/tag/v1.9.0"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53557.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53557","state":"PUBLISHED","datePublished":"2026-09-17T21:41:45.155Z","dateUpdated":"2026-09-22T01:54:15.476Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-09T18:13:07.263Z"},"containers":{"cna":{"title":"SQLBot: Second-Order SQL Injection via Excel Datasource Leading to Remote Command Execution","descriptions":[{"lang":"en","value":"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":[{"vendor":"dataease","product":"SQLBot","versions":[{"version":"< 1.9.0","status":"affected"}]}],"references":[{"url":"https://github.com/dataease/SQLBot/security/advisories/GHSA-vxwj-843f-9c9g","name":"https://github.com/dataease/SQLBot/security/advisories/GHSA-vxwj-843f-9c9g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dataease/SQLBot/commit/5d5a92a5266e62da7de4a84ffc8317498497b193","name":"https://github.com/dataease/SQLBot/commit/5d5a92a5266e62da7de4a84ffc8317498497b193","tags":["x_refsource_MISC"]},{"url":"https://github.com/dataease/SQLBot/releases/tag/v1.9.0","name":"https://github.com/dataease/SQLBot/releases/tag/v1.9.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","vectorString":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-17T21:41:45.155Z"},"source":{"advisory":"GHSA-vxwj-843f-9c9g","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/dataease/SQLBot/security/advisories/GHSA-vxwj-843f-9c9g","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-22T01:53:38.445986Z","id":"CVE-2026-53557","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-22T01:54:15.476Z"}}]}}}