Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Budibase administrator credentials
-
DeliveryNavigate to PostgreSQL datasource configuration
-
ExploitSet schema field to double-quote injection payload
-
ExecutionTrigger save or connection test action
-
Persistnode-postgres executes multi-statement payload via simple query protocol
-
ImpactRead pg_shadow hashes or execute arbitrary DDL/DML against PostgreSQL
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 an authenticated Budibase administrator account - the highest privilege tier within the platform (CVSS PR:H). The administrator must have permission to create or edit PostgreSQL datasource configurations. The vulnerability is triggered specifically when the administrator performs a save or connection-test action on a PostgreSQL datasource containing a malicious schema field value (CVSS UI:R); passive browsing of the configuration does not trigger execution. A PostgreSQL datasource must be present or creatable on the target Budibase instance. Exploitation is not possible from regular Budibase user accounts, unauthenticated callers, or through any data-query path - it is confined entirely to the datasource administration flow. The limiting factors for defenders are: (1) attacker must control a Budibase admin account, (2) instance must have or permit PostgreSQL datasources, and (3) the malicious action must be taken by or as the admin. These conditions make mass automated exploitation implausible but insider or compromised-admin scenarios realistic. |
| Impact | The CVSS 8.4 score is driven primarily by the scope change (S:C) reflecting that injected SQL executes in the PostgreSQL database context - a separate security domain with data potentially far beyond Budibase's own schema. PR:H correctly limits exploitation to Budibase administrators, and UI:R captures that the administrator must explicitly save or test the datasource configuration to trigger execution. These two constraints materially reduce real-world risk: this is not opportunistically exploitable by low-privilege users or unauthenticated callers. No EPSS data was provided in the input, so probabilistic exploitation likelihood cannot be quantified. No KEV listing means CISA has not confirmed active exploitation. The GHSA advisory provides a complete reproduction procedure, making the vulnerability trivially exploitable by any administrator who encounters it - but the prerequisite of administrator credentials limits the realistic attacker population to insiders, supply-chain compromise of admin accounts, or credential theft. In multi-tenant or SaaS Budibase deployments where multiple organizations share an instance, a rogue administrator could leverage this to compromise the underlying shared PostgreSQL instance and cross tenant boundaries if schemas are co-located. The severity of impact (C:H/I:H/A:H with S:C) is well-supported by the evidence: pg_shadow access, arbitrary DDL execution, and potential OS file reads make full database compromise a realistic outcome. |
| Exploit ScenarioDerived | A malicious Budibase administrator navigates to the PostgreSQL datasource configuration panel and sets the schema field to public"; CREATE TABLE exfil AS SELECT usename, passwd FROM pg_shadow; --. Upon saving or testing the datasource, Budibase constructs SET search_path TO "public"; CREATE TABLE exfil AS SELECT usename, passwd FROM pg_shadow; -- and passes it to node-postgres via the simple query protocol, causing PostgreSQL to execute both statements. The attacker then queries the exfil table to retrieve all PostgreSQL user password hashes, or issues follow-on payloads using pg_read_file() to read OS-level files accessible to the database service account. The GHSA advisory provides this exact reproduction sequence, making exploitation require no original research. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
SQL injection in Budibase's PostgreSQL datasource connector allows an authenticated administrator to execute arbitrary DDL and DML statements against the connected PostgreSQL database by supplying a crafted schema name containing embedded double quotes. The vulnerable code in packages/server/src/integrations/postgres.ts interpolates the schema field directly into a SET search_path statement using the simple query protocol, which permits semicolon-delimited multi-statement execution. Impact includes full database read and write access - including extraction of pg_shadow password hashes and potential OS-level file reads via pg_read_file(). No public exploit or CISA KEV listing identified at time of analysis; however, the GHSA advisory provides a complete, step-by-step reproduction procedure making this trivially reproducible. Fixed in version 3.39.19.
RemediationAI
Upgrade Budibase to version 3.39.19 or later, which is the vendor-released patch for this vulnerability. The fix is implemented in commit 67572a82c3850964f388bfd969779dc025a80224 (https://github.com/Budibase/budibase/commit/67572a82c3850964f388bfd969779dc025a80224) and replaces the unsafe identifier wrapping with the quotePostgresIdentifier utility that properly doubles embedded double quotes. Full advisory is at https://github.com/Budibase/budibase/security/advisories/GHSA-qqf5-x7mj-v43p. As a compensating control prior to patching, restrict Budibase administrator access to the minimum necessary set of trusted personnel and audit all existing PostgreSQL datasource schema configuration fields for anomalous values - specifically any values containing double quotes, semicolons, or SQL keywords. Note that restricting admin access is not a complete mitigation in environments where insider threat is a concern; patching is the only definitive fix. If the PostgreSQL database user provisioned for Budibase datasources holds DDL privileges (CREATE TABLE, DROP TABLE), consider reducing those to the minimum necessary read/write DML permissions as a defense-in-depth measure to limit the blast radius of successful exploitation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Budibase's PostgreSQL integration uses the node-postgres (pg) library. The vulnerable path (packages/server/src/integrations/postgres.ts, lines 355-358) splits the user-controlled schema config field on commas and wraps each token in double quotes without escaping embedded double quotes, then passes the resulting string to client.query() as a raw SQL string. The node-postgres client.query() method invoked with a plain string uses the PostgreSQL simple query protocol, which - unlike the extended query protocol used for parameterized statements - permits multiple semicolon-separated statements in a single call. This is the mechanism that enables statement stacking. CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) is the root cause: user-controlled data from the schema configuration field flows into a raw SQL identifier position without sanitization. The fix introduced in 3.39.19 adds a quotePostgresIdentifier utility that doubles embedded double quotes (replacing each " with ""), conforming to PostgreSQL's standard double-quoted identifier escaping rules. The same GHSA advisory (GHSA-qqf5-x7mj-v43p) also covers related SQL injection issues in the MS SQL Server and MySQL connectors, though CVE-2026-64657 is scoped specifically to the PostgreSQL connector.
Know when Budibase gets its next vulnerability
- 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:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Budibase is network-accessible (AV:N), exploitation is straightforward with no race or timing conditions (AC:L), administrator credentials are mandatory (PR:H), save or test action required (UI:R), and SQL injection crosses into the PostgreSQL database as a separate security scope (S:C) enabling full C/I/A impact there.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
Budibase's PostgreSQL connector contains a SQL injection flaw that allows authorized administrators to circumvent database access controls and directly manipulate database contents or extract sensitive information like password hashes. This puts organizations at risk of confidentiality and integrity breaches within their database tier, particularly when PostgreSQL instances contain regulated or mission-critical data.
Apply vendor patch.
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.
Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal
SQL injection in Budibase's MySQL integration (all versions prior to 3.40.0) lets attackers execute arbitrary, stacked S
Authorization bypass in Budibase 3.31.4 and earlier. The authorized() middleware can be bypassed, enabling injection att
Authentication bypass in Budibase low-code platform (versions prior to 3.35.4) allows remote unauthenticated attackers t
Budibase is a low code platform for creating internal tools, workflows, and admin panels. [CVSS 8.8 HIGH]
Unauthenticated remote attackers can defeat the one-time initialization lock on self-hosted, single-tenant Budibase depl
Unauthenticated user enumeration and metadata disclosure in Budibase prior to 3.39.32 exposes tenant identifiers, email
Server-Side Request Forgery (SSRF) in Budibase's REST datasource connector (versions prior to 3.33.4) allows authenticat
OAuth2 access and refresh token theft in Budibase's automation testing pipeline exposes SSO-authenticated builder creden
Improper Control of Dynamically-Managed Code Resources in GitHub repository budibase/budibase prior to 1.3.20. Rated med
Path traversal in Budibase low-code platform 3.31.5 and earlier allows attackers to read arbitrary files through the app
Remote code execution in Budibase self-hosted server before 3.41.3 lets authenticated administrators run arbitrary JavaS
EUVD-2026-60379
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB