Skip to main content

Budibase EUVDEUVD-2026-60379

| CVE-2026-64657 HIGH
SQL Injection (CWE-89)
2026-08-17 GitHub_M
8.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Budibase administrator credentials
  2. Delivery
    Navigate to PostgreSQL datasource configuration
  3. Exploit
    Set schema field to double-quote injection payload
  4. Execution
    Trigger save or connection test action
  5. Persist
    node-postgres executes multi-statement payload via simple query protocol
  6. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

budibase < 3.39.19

Affected Packages

npm budibase fix: 3.39.19

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

Vendor (GitHub_M) PRIMARY 8.4 HIGH
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
vuln.today AI 8.4 HIGH

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.

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 17, 2026 - 21:17 EUVD
CVE Published
Aug 17, 2026 - 20:24 cve.org
HIGH 8.4

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
niche open-source low-code platform, limited enterprise production footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2026-27702 CRITICAL POC
9.9 Feb 25

Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal

CVE-2026-73300 CRITICAL POC
9.6 Aug 12

SQL injection in Budibase's MySQL integration (all versions prior to 3.40.0) lets attackers execute arbitrary, stacked S

CVE-2026-31816 CRITICAL POC
9.1 Mar 09

Authorization bypass in Budibase 3.31.4 and earlier. The authorized() middleware can be bypassed, enabling injection att

CVE-2026-41428 CRITICAL POC
9.1 Apr 24

Authentication bypass in Budibase low-code platform (versions prior to 3.35.4) allows remote unauthenticated attackers t

CVE-2026-25040 HIGH POC
8.8 Jan 29

Budibase is a low code platform for creating internal tools, workflows, and admin panels. [CVSS 8.8 HIGH]

CVE-2026-122247 HIGH POC
8.2 Nov 20

Unauthenticated remote attackers can defeat the one-time initialization lock on self-hosted, single-tenant Budibase depl

CVE-2026-73406 HIGH POC
7.5 Aug 12

Unauthenticated user enumeration and metadata disclosure in Budibase prior to 3.39.32 exposes tenant identifiers, email

CVE-2026-31818 CRITICAL
9.9 Apr 03

Server-Side Request Forgery (SSRF) in Budibase's REST datasource connector (versions prior to 3.33.4) allows authenticat

CVE-2026-73308 MEDIUM POC
5.7 Aug 12

OAuth2 access and refresh token theft in Budibase's automation testing pipeline exposes SSO-authenticated builder creden

CVE-2022-3225 MEDIUM POC
5.7 Sep 16

Improper Control of Dynamically-Managed Code Resources in GitHub repository budibase/budibase prior to 1.3.20. Rated med

CVE-2026-30240 CRITICAL
9.6 Mar 09

Path traversal in Budibase low-code platform 3.31.5 and earlier allows attackers to read arbitrary files through the app

CVE-2026-82244 CRITICAL
9.4 Aug 28

Remote code execution in Budibase self-hosted server before 3.41.3 lets authenticated administrators run arbitrary JavaS

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy