{"id":"CVE-2026-54352","published":"2026-06-26T20:32:51Z","modified":"2026-06-27T03:12:11Z","title":"Budibase: Arbitrary file read by workspace-builder via PWA-zip symlink upload","vendor":"Budibase","product":"budibase","tier":"tail","description":{"text":"Budibase is an open-source low-code platform. Prior to 3.39.9, `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. 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. This vulnerability is fixed in 3.39.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00494,"percentile":0.43307,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-w7mq-r738-x278","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":8.66},{"name":"CVSS severity","points":6.72}]},"vendorSlug":"budibase","affectedVersions":[{"vendor":"Budibase","product":"budibase","versions":["< 3.39.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-27T03:11:42.439522Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@budibase/server","vulnerableRanges":["<3.39.9"],"patched":["3.39.9"],"from":["GHSA-w7mq-r738-x278"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-39910","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-50137","published":"2026-06-26","fixed":"3.39.0","kev":false},{"cve":"CVE-2026-50136","published":"2026-06-26","fixed":"3.39.2","kev":false,"link":{"from":"CVE-2026-50136","to":"CVE-2026-54352","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@budibase/server","fromFixed":"3.39.2","toFixed":"3.39.9","daysApart":0}]}},{"cve":"CVE-2026-54351","published":"2026-06-26","fixed":"3.39.9","kev":false},{"cve":"CVE-2026-54352","published":"2026-06-26","fixed":"3.39.9","kev":false},{"cve":"CVE-2026-54350","published":"2026-06-26","fixed":"3.39.12","kev":false,"link":{"from":"CVE-2026-54352","to":"CVE-2026-54350","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@budibase/server","fromFixed":"3.39.9","toFixed":"3.39.12","daysApart":0}]}},{"cve":"CVE-2026-73304","published":"2026-08-13","fixed":"3.39.25","kev":false},{"cve":"CVE-2026-35219","published":"2026-08-17","fixed":"3.41.3","kev":false}],"package":"npm:@budibase/server"}}