Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain MySQL DDL write access
-
DeliveryCreate table with backtick-injected payload in name
-
ExploitWait for Budibase admin to trigger schema discovery
-
ExecutionBudibase interpolates malicious table name into DESCRIBE query
-
PersistmultipleStatements executes injected SQL
-
ImpactArbitrary database operations complete
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two independent prerequisites that must both be satisfied. First, the attacker must have the ability to create a table with an arbitrary name (including backtick characters) in the MySQL database that the Budibase instance is connected to - this requires DDL privileges (CREATE TABLE) on that database, which is not granted to typical read-write application users in well-hardened deployments. Second, a Budibase administrator must actively trigger schema introspection for that datasource (the fetch-schema operation), which is a deliberate UI action, not an automated background process. Exploitation is limited to Budibase deployments using a MySQL datasource connector specifically; other database connectors are unaffected by this CVE. Environments where Budibase's database user has no DDL privileges are not exploitable regardless of other conditions. The attacker does not need any Budibase account or credentials - only database-level table-creation access. CVSS PR:H reflects these elevated database-side prerequisites. |
| Impact | The CVSS 3.1 vector (AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H) scores 7.6, which accurately reflects a vulnerability with high prerequisites but severe impact when those prerequisites are met. AC:H and PR:H together capture the two-part attacker requirement: write access to the MySQL database to create a maliciously named table, plus a Budibase administrator who must independently trigger schema discovery (UI:R). The Scope:Changed metric is justified because the injected SQL executes against the underlying database system, not just Budibase itself. The EPSS score is not provided in the input data, so exploitation probability cannot be quantified numerically. The vulnerability is not in the CISA KEV catalog and no public exploit code has been confirmed, suggesting exploitation is not currently widespread. The real-world risk is conditional: organizations where the Budibase application database user also has DDL privileges (CREATE TABLE) available to lower-trust parties - multi-tenant databases, shared hosting environments, or insufficiently segmented permissions - face meaningful exposure. Environments where Budibase has a dedicated, narrowly-scoped database user with only SELECT/INSERT/UPDATE/DELETE on application tables are not exploitable via this vector. The C:H/I:H/A:H impact accurately reflects that arbitrary SQL execution can exfiltrate all data, corrupt records, or drop tables depending on the database user's runtime privileges. |
| Exploit ScenarioDerived | An attacker with write access to the MySQL database backing a Budibase instance - for example, a lower-privileged application user in a shared database environment - creates a table named foo |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
SQL injection via MySQL backtick escape failure in Budibase's schema discovery feature allows an attacker with MySQL table-creation privileges to achieve arbitrary SQL execution on the underlying database. Affected versions prior to 3.39.18 interpolate raw table names into DESCRIBE queries while the MySQL connection has multipleStatements enabled, meaning a maliciously named table breaks out of the backtick-quoted identifier and executes attacker-controlled SQL when a Budibase administrator next triggers schema introspection. No public exploit code has been identified and the vulnerability is not listed in the CISA KEV catalog, but the GHSA advisory provides a detailed step-by-step reproduction sufficient for exploit development.
RemediationAI
The primary fix is upgrading @budibase/server to version 3.39.18 or later, available at https://github.com/Budibase/budibase/releases/tag/3.39.18; the upstream patch commit is d232bd92144c768884ff8c48cb2e28673d9ffde0. For organizations that cannot immediately upgrade, the most effective compensating control is restricting the MySQL user account that Budibase uses to connect so that it holds no DDL privileges (no CREATE TABLE, DROP TABLE, or ALTER TABLE grants) and no access to INFORMATION_SCHEMA beyond what is strictly necessary - this prevents an attacker from pre-planting the malicious table name, removing the injection prerequisite entirely. As a secondary control, disabling or restricting access to Budibase's schema discovery/introspection feature (the fetch-schema endpoint) limits the UI:R trigger surface, though this may impair legitimate administrator workflows. Note that removing multipleStatements: true from the connection configuration would also neutralize this specific attack vector, but this would require a local code patch and may break other integration behaviors; it is not an officially documented workaround. All mitigations short of patching should be treated as temporary.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Budibase's MySQL integration (packages/server/src/integrations/mysql.ts) configures the underlying mysql2 connection with multipleStatements: true, which instructs the MySQL driver to permit semicolon-separated multi-statement execution in a single query round trip. During table introspection (schema discovery), the integration reads table names from INFORMATION_SCHEMA.TABLES and interpolates them directly into the string DESCRIBE ${tableName} without escaping embedded backtick characters. CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) precisely describes this root cause: user-influenced data - here the table name from the database itself - is concatenated into a query structure rather than parameterized or properly escaped. Because backticks delimit MySQL identifiers, an embedded backtick in a table name terminates the identifier early; the trailing content, including a semicolon payload, is then parsed and executed as a second statement, enabled by the multipleStatements flag. The fix introduces a quoteMySqlIdentifier utility that doubles all embedded backticks before wrapping the identifier, preventing break-out.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
AV:N because Budibase is a web-accessible platform; PR:H because exploiting requires DDL privileges on the target MySQL database; UI:R because an admin must trigger schema discovery; S:C because injected SQL executes against the underlying database beyond Budibase's own scope.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Budibase is an open-source low-code platform. Prior to 3.39.18, packages/server/src/integrations/mysql.ts enabled multipleStatements and inserted an unescaped tableName into a DESCRIBE statement. An attacker able to create a MySQL table with a backtick and stacked statement in its name could wait for a Budibase administrator to run schema discovery, causing the second statement to execute. The fix applies quoteMySqlIdentifier before constructing the query. This issue is fixed in version 3.39.18.
Executive ViewAI
Budibase versions prior to 3.39.18 contain a SQL injection vulnerability in schema discovery that allows arbitrary database manipulation when administrators trigger schema introspection. With no vendor patch currently available, organizations using Budibase with MySQL must immediately assess their deployments and implement interim mitigations to prevent database compromise.
Disable or strictly restrict schema introspection to trusted administrator access; disable multipleStatements on all MySQL database connections; implement principle of least privilege to remove unnecessary table-creation permissions from Budibase service accounts; monitor database query logs for suspicious CREATE TABLE statements; isolate Budibase instances on restricted network segments with access controls.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-58526
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB