{"id":"EUVD-2026-60379","revision":null,"records":[{"revision":"2a913066366644d987aa32eee86ccbcb","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-64657","aliases":[],"title":"Budibase: Database Connector SQL Injections in PostgreSQL, MS SQL, and MySQL","description":"Budibase is an open-source low-code platform. Prior to 3.39.19, the PostgreSQL datasource connector in packages/server/src/integrations/postgres.ts interpolates the user-controlled schema configuration field into a SET search_path statement without escaping embedded double quotes, allowing an authenticated administrator who saves or tests the datasource to execute arbitrary SQL through the simple query protocol. This issue is fixed in version 3.39.19.","state":0,"publishedAt":"2026-08-17T20:24:59.7+00:00","modifiedAt":"2026-08-18T15:30:33.751+00:00","affected":[{"ecosystem":"Vendor product","name":"budibase","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Budibase\",\n                    \"product\": \"budibase\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.39.19\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":8.4,"severity":"HIGH"}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-qqf5-x7mj-v43p","https://github.com/Budibase/budibase/commit/67572a82c3850964f388bfd969779dc025a80224"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-64657","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-64657","identifiers":["CVE-2026-64657"]},"retained":false,"historicalAffected":[]},{"revision":"5e33489dadca4874a01f3e38878191de","observedAt":"2026-11-18T06:39:41.156+00:00","statement":{"source":"euvd","id":"EUVD-2026-60379","aliases":["CVE-2026-64657"],"title":"Budibase is an open-source low-code platform. Prior to 3.39.19, the PostgreSQL datasource connector in packages/server/src/integrations/postgres.ts interpolates the user-controlled schema configuration field into a SET search_path statement…","description":"Budibase is an open-source low-code platform. Prior to 3.39.19, the PostgreSQL datasource connector in packages/server/src/integrations/postgres.ts interpolates the user-controlled schema configuration field into a SET search_path statement without escaping embedded double quotes, allowing an authenticated administrator who saves or tests the datasource to execute arbitrary SQL through the simple query protocol. This issue is fixed in version 3.39.19.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":8.4,"severity":null}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-qqf5-x7mj-v43p","https://github.com/Budibase/budibase/commit/67572a82c3850964f388bfd969779dc025a80224"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-60379","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 17, 2026, 8:24:59 PM","dateUpdated":"Aug 18, 2026, 3:30:33 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2026-2000","title":"Budibase: Schwachstelle ermöglicht SQL-Injection und Codeausführung","vulnerabilityIds":["CVE-2026-64657"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-60379","identifiers":["EUVD-2026-60379","CVE-2026-64657"]},"retained":false,"historicalAffected":[]},{"revision":"de2ab3b132af45ff86d472a808259d82","observedAt":"2026-10-25T15:18:45.851+00:00","statement":{"source":"nvd","id":"CVE-2026-64657","aliases":[],"title":"Budibase is an open-source low-code platform. Prior to 3.39.19, the PostgreSQL datasource connector in packages/server/src/integrations/postgres.ts interpolates the user-controlled schema configuration field into a SET search_path statement…","description":"Budibase is an open-source low-code platform. Prior to 3.39.19, the PostgreSQL datasource connector in packages/server/src/integrations/postgres.ts interpolates the user-controlled schema configuration field into a SET search_path statement without escaping embedded double quotes, allowing an authenticated administrator who saves or tests the datasource to execute arbitrary SQL through the simple query protocol. This issue is fixed in version 3.39.19.","state":0,"publishedAt":"2026-08-17T21:16:46.34+00:00","modifiedAt":"2026-09-08T21:03:08.41+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":8.4,"severity":"HIGH"}],"references":["https://github.com/Budibase/budibase/commit/67572a82c3850964f388bfd969779dc025a80224","https://github.com/Budibase/budibase/security/advisories/GHSA-qqf5-x7mj-v43p"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-64657","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-89"],"productCriteria":[],"sourceDates":{"published":"2026-08-17T21:16:46.340","lastModified":"2026-09-08T21:03:08.410"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-64657","identifiers":["CVE-2026-64657"]},"retained":false,"historicalAffected":[]},{"revision":"aa0f4dcfd1d842f8af1ee23ba6597da4","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-qqf5-x7mj-v43p","aliases":["CVE-2026-64657"],"title":"budibase: Database Connector SQL Injections in PostgreSQL, MS SQL, and MySQL","description":"### Summary\nThis advisory covers three distinct SQL Injection vulnerabilities within Budibase's database connectors (PostgreSQL, Microsoft SQL Server, and MySQL). Because user-controlled schema and table configurations are interpolated directly into raw SQL queries without proper escaping or parameterization during database introspection, an authenticated administrator can break out of string delimiters. This allows for arbitrary DDL/DML execution, database compromise, and potential underlying OS command execution (e.g., via MS SQL `xp_cmdshell`).\n\n### Details\n\n### Vulnerability Type & Title\n**PostgreSQL `SET search_path` SQL Injection**\n\n### Description & Root Cause\nThe `schema` datasource config field is interpolated directly into a raw SQL statement without proper escaping. Double quotes inside the schema name are not escaped, allowing an attacker to break out of the string literal and inject arbitrary SQL.\n\n**Vulnerable Code:**\n**File:** `packages/server/src/integrations/postgres.ts`, lines 355–358\n\n```typescript\nconst search_path = this.config.schema\n  .split(\",\")\n  .map(item => `\"${item.trim()}\"`)                // NO escaping of embedded \"\nawait this.client.query(`SET search_path TO ${search_path.join(\",\")};`)\n```\n\n`node-postgres` sends this via the **simple query protocol**, which supports multi-statement execution with semicolons.\n\n### Step-by-Step Reproduction\n1. Edit a PostgreSQL datasource configuration.\n2. Set the schema field to:\n   `public\"; CREATE TABLE pwned AS SELECT usename, passwd FROM pg_shadow; --`\n3. Save or trigger a connection test.\n4. The query executes as:\n   `SET search_path TO \"public\"; CREATE TABLE pwned AS SELECT usename, passwd FROM pg_shadow; --;`\n5. PostgreSQL executes both statements.\n\n### Impact\n- Full database compromise. The attacker can read `pg_shadow` hashes, call `pg_read_file()`, or execute any DDL/DML.\n\n---\n\n### Vulnerability Type & Title\n**Microsoft SQL Server Schema Introspection SQL Injection**\n\n### Description & Root Cause\nThree methods used during schema introspection (`buildSchema`) interpolate user-controlled values directly into SQL strings using single-quote delimiters with no escaping.\n\n**Vulnerable Code:**\n**File:** `packages/server/src/integrations/microsoftSqlServer.ts`, lines 388–414\n\n```typescript\ngetDefinitionSQL(tableName: string, schemaName: string) {\n  return `select * from INFORMATION_SCHEMA.COLUMNS\n          where TABLE_NAME='${tableName}' AND TABLE_SCHEMA='${schemaName}'`\n}\n```\n\n`schemaName` comes directly from `this.config.schema` (user config).\n\n### Step-by-Step Reproduction\n1. Edit an MS SQL Server datasource configuration.\n2. Set the schema field to: `dbo'; EXEC xp_cmdshell('whoami'); --`\n3. Trigger schema introspection (fetch tables).\n4. The OS command executes on the SQL server if `xp_cmdshell` is enabled.\n\n### Impact\n- Arbitrary SQL execution, potentially leading to OS command execution via `xp_cmdshell`.\n\n---\n\n### Vulnerability Type & Title\n**MySQL `multipleStatements: true` + `DESCRIBE` Backtick Injection**\n\n### Description & Root Cause\nThe MySQL integration enables `multipleStatements: true`, allowing semicolon-separated multi-statement execution. When introspecting tables, table names are interpolated into a `DESCRIBE` query wrapped in backticks, but the backticks are not escaped.\n\n**Vulnerable Code:**\n**File:** `packages/server/src/integrations/mysql.ts`, lines 172, 305\n\n```typescript\nthis.config = { ...config, multipleStatements: true, ... }  // line 172\n...\n{ sql: `DESCRIBE \\`${tableName}\\`;` }  // line 305 — backtick NOT escaped\n```\n\n### Step-by-Step Reproduction\n1. An attacker (or malicious database user) creates a table named ``foo`; DROP TABLE users; --``.\n2. In Budibase, an admin triggers schema introspection for the database.\n3. Budibase reads the malicious table name from `INFORMATION_SCHEMA.TABLES` and inserts it into the `DESCRIBE` query.\n4. The backtick breaks out, and the secondary `DROP TABLE` payload executes.\n\n### Impact\n- Arbitrary SQL execution triggered during schema discovery. Requires prior database catalog manipulation.","state":0,"publishedAt":"2026-06-18T17:24:47+00:00","modifiedAt":"2026-08-18T13:26:20.0956945+00:00","affected":[{"ecosystem":"npm","name":"budibase","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.39.19"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-qqf5-x7mj-v43p","https://github.com/Budibase/budibase"],"sourceUrl":"https://github.com/advisories/GHSA-qqf5-x7mj-v43p","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qqf5-x7mj-v43p","identifiers":["GHSA-qqf5-x7mj-v43p","CVE-2026-64657"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T09:40:31.8345493+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T09:40:31.8345493+00:00","lastSuccessAt":"2026-11-19T09:40:32.3515264+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:32.3515283+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-9e2db0084925c841be762919585cd511a893087e7961941f7ebd76ab552c4302","complete":true,"records":428265,"lastAttemptAt":"2026-11-19T09:40:24.3145117+00:00","lastSuccessAt":"2026-11-19T09:40:24.1463366+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:24.3145117+00:00","snapshotPublishedAt":"2026-11-19T09:30:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6e19c69ebb974886991d5dad9f632f81","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T09:50:13.3657605+00:00","lastSuccessAt":"2026-11-19T09:50:12.338+00:00","error":"272 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T09:50:12.338+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13636,"expectedIdentifiers":13908,"failedIdentifiers":272},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T09:40:31.8345493+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T09:40:31.8345493+00:00","lastSuccessAt":"2026-11-19T09:40:32.3815873+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:32.3815895+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8b5fdf678977402cb60bbe3c5e89bf16","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T09:40:33.0523055+00:00","lastSuccessAt":"2026-11-19T09:22:49.229+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:22:49.229+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T09:40:25.2441782+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:25.2441782+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T09:40:24.3875329+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:24.3875329+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-313d8afdba3867de110bc2f0cc252c7b787cb94e08a055d09b0542017e147ca8","complete":true,"records":3194,"lastAttemptAt":"2026-11-19T09:40:31.7231448+00:00","lastSuccessAt":"2026-11-19T09:40:31.5988269+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:31.7231448+00:00","snapshotPublishedAt":"2026-11-19T09:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-151b9ac741fba7353ad731a68476d546237cc5b2becb54fa011ca91249746bea","complete":true,"records":232733,"lastAttemptAt":"2026-11-19T09:40:24.5744302+00:00","lastSuccessAt":"2026-11-19T08:24:21.1829126+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:24.5744302+00:00","snapshotPublishedAt":"2026-11-19T07:32:56+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}