Loading advisory.
Loading advisory.
@budibase/server: Command Injection in PostgreSQL Dump Command
Location: packages/server/src/integrations/postgres.ts:529-531
Published 2026-03-09 16:56 UTC · Modified 2026-03-10 18:46 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @budibase/server | npm | < 3.23.32 | 3.23.32 | npm install @budibase/server@3.23.32 |
Location: packages/server/src/integrations/postgres.ts:529-531
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.
const dumpCommand = `PGPASSWORD="${
this.config.password
}" pg_dump --schema-only "${dumpCommandParts.join(" ")}"`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 "
Remote code execution
System compromise
Data exfiltration
Use environment variables for sensitive values instead of command-line arguments
Validate and sanitize all configuration values
Use proper escaping for shell arguments
Consider using a PostgreSQL library's native dump functionality instead of shell commands
import { execFile } from "child_process"
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("pg_dump", args, { env })
return stdout
} catch (error) {
// Handle error
}No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.008 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.008 | 0.005 | v2026.06.15 |