CVE-2026-25041: Budibase has a Command Injection in PostgreSQL Dump Command

Published Mar 9, 2026
·
Updated

Location: packages/server/src/integrations/postgres.ts:529-531

Description The PostgreSQL integration constructs shell commands using user-controlled configuration values (database name, host, password, etc.) without proper sanitization. The password and other connection parameters are directly interpolated into a shell command.

Code Reference 529:531:packages/server/src/integrations/postgres.ts const dumpCommand = PGPASSWORD="${ this.config.password }" pgdump --schema-only "${dumpCommandParts.join(" ")}"

Attack Vector An attacker who can control database configuration values (e.g., through compromised credentials or configuration injection) can inject shell commands. For example: - Password: password"; malicious-command; echo " - Database name: db"; rm -rf /; echo "

Impact - Remote code execution - System compromise - Data exfiltration

Recommendation 1. Use environment variables for sensitive values instead of command-line arguments 2. Validate and sanitize all configuration values 3. Use proper escaping for shell arguments 4. Consider using a PostgreSQL library's native dump functionality instead of shell commands

Example Fix typescript import { execFile } from "childprocess" import { promisify } from "util" const execFileAsync = promisify(execFile)

// Use execFile with proper argument handling const env = { ...process.env, PGPASSWORD: this.config.password }

const args = [ "--schema-only", "--host", this.config.host, "--port", this.config.port.toString(), "--username", this.config.user, "--dbname", this.config.database ]

try { const { stdout } = await execFileAsync("pgdump", args, { env }) return stdout } catch (error) { // Handle error }

Other sources

Budibase is a low code platform for creating internal tools, workflows, and admin panels. In 3.23.22 and earlier, the PostgreSQL integration constructs shell commands using user-controlled configuration values (database name, host, password, etc.) without proper sanitization. The password and other connection parameters are directly interpolated into a shell command. This affects packages/server/src/integrations/postgres.ts.

MITRE

Affected Software

2 affected componentsFixes available
npm/@budibase/server<3.23.32
3.23.32
budibase Budibase<=3.23.22

Event History

Mar 9, 2026
Advisory Published
via GitHub·04:56 PM
Data Sourced
via GitHub·04:56 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·07:53 PM
Data Sourced
via MITRE·07:53 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-25041?

CVE-2026-25041 has a medium severity rating, highlighting the risk of command injection vulnerability.

2

How do I fix CVE-2026-25041?

To fix CVE-2026-25041, upgrade to version 3.23.32 or later of the @budibase/server package.

3

What systems are affected by CVE-2026-25041?

CVE-2026-25041 affects configurations using the @budibase/server package versions prior to 3.23.32.

4

What type of vulnerability is CVE-2026-25041?

CVE-2026-25041 is categorized as a command injection vulnerability in PostgreSQL Dump Command.

5

Is CVE-2026-25041 easy to exploit?

Yes, CVE-2026-25041 can be easily exploited due to improper input sanitization in the shell command construction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203