{"id":"CVE-2026-27702","published":"2026-02-25T15:11:16Z","modified":"2026-02-25T20:43:35Z","title":"Budibase Vulnerable to Remote Code Execution via Unsafe eval() in View Filter Map Function (Budibase Cloud)","vendor":"Budibase","product":"budibase","tier":"tail","description":{"text":"Budibase is a low code platform for creating internal tools, workflows, and admin panels. Prior to version 3.30.4, an unsafe `eval()` vulnerability in Budibase's view filtering implementation allows any authenticated user (including free tier accounts) to execute arbitrary JavaScript code on the server. This vulnerability ONLY affects Budibase Cloud (SaaS) - self-hosted deployments use native CouchDB views and are not vulnerable. The vulnerability exists in `packages/server/src/db/inMemoryView.ts` where user-controlled view map functions are directly evaluated without sanitization. The primary impact comes from what lives inside the pod's environment: the `app-service` pod runs with secrets baked into its environment variables, including `INTERNAL_API_KEY`, `JWT_SECRET`, CouchDB admin credentials, AWS keys, and more. Using the extracted CouchDB credentials, we verified direct database access, enumerated all tenant databases, and confirmed that user records (email addresses) are readable. Version 3.30.4 contains a patch.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.004,"percentile":0.34962,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-rvhr-26g4-p2r8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Budibase/budibase/pull/18087","tags":["x_refsource_MISC"]},{"url":"https://github.com/Budibase/budibase/commit/348659810cf930dda5f669e782706594c547115d","tags":["x_refsource_MISC"]},{"url":"https://github.com/Budibase/budibase/releases/tag/3.30.4","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":6.99},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"budibase","affectedVersions":[{"vendor":"Budibase","product":"budibase","versions":["< 3.30.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-02-25T20:43:20.935389Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"budibase","vulnerableRanges":["<3.30.4"],"patched":["3.30.4"],"from":["GHSA-rvhr-26g4-p2r8"],"provenance":"source"}],"summary":{"text":"A code injection flaw in the view filtering implementation (packages/server/src/db/inMemoryView.ts) of Budibase's cloud (SaaS) offering allows user-controlled view map functions to be passed to an unsafe eval() call, affecting versions before 3.30.4; self-hosted deployments are not affected. An attacker needs only a valid authenticated account, including a free-tier one, with no user interaction or special configuration required, and can use the resulting server-side JavaScript execution to reach secrets in the app-service environment and read tenant database contents.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:05Z"},"euvd":{"id":"EUVD-2026-8646","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27702","published":"2026-02-25","fixed":"3.30.4","kev":false},{"cve":"CVE-2026-45061","published":"2026-05-27","fixed":"3.35.10","kev":false,"link":{"from":"CVE-2026-27702","to":"CVE-2026-45061","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:budibase","fromFixed":"3.30.4","toFixed":"3.35.10","daysApart":91}]}},{"cve":"CVE-2026-45718","published":"2026-05-27","fixed":"3.38.1","kev":false},{"cve":"CVE-2026-46426","published":"2026-05-27","fixed":"3.38.2","kev":false}],"package":"npm:budibase"}}