All vulnerabilities

Servers and applications

GHSA-pxwc-66g3-5f27

Arbitrary File Write via retrieveDirectory S3-Key Path Traversal

Severity
Critical 9.1
Published
22 Jul 2026
Last changed
22 Jul 2026
Added to UpHeron
3 Nov 2026
Weakness
Path traversal (CWE-22)CWE-73Insecure default (CWE-1188)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

Budibase writes user-controlled content into the APPS object store using S3 keys that include a user-supplied filename component (e.g. AI knowledge file uploads, worker global config uploads). The sanitizeKey helper (packages/backend-core/src/objectStore/objectStore.ts:94-96) - backed by [email protected] - is intended to neutralise dangerous path sequences, but it preserves .. segments verbatim: the library only strips "unsafe" punctuation, keeping / and . (and \ after the .replace(/\/g, "/") in sanitizeKey). As a result, a builder can store an S3 object whose key literally contains traversal segments like app_prod_x/ai/knowledge-bases/.../files/f_x/../../../../etc/cron.d/evil.

When the same workspace is later exported via POST /api/backups/export (builder-gated), exportWorkspace calls retrieveDirectory(APPS, "${workspaceId}/") (packages/server/src/sdk/workspace/backups/exports.ts:129).

From Budibase/budibase's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
BudibaseServers and applications · github:budibase/budibase
  • Version 3.40.0

About Budibase

low-code development platform

From Wikidata, CC0 1.0.
Docker Hub pulls
2,327,272Docker Hub, 15 Nov 2026
GitHub stars
28,419GitHub, 15 Nov 2026
Forks
2,238GitHub, 15 Nov 2026
Latest release
v4.0.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
First published on GitHub
7 Jun 2019GitHub

References