CVE-2026-122247: Unauthenticated Global-Admin and Database Creation via Tenant-Confusion Bypass in Budibase
Vulnerability ID: CVE-2026-122247
CVSS Score: 8.2
Published: 2026-11-20
A tenant-confusion vulnerability in the user initialization endpoint of the Budibase worker service (prior to version 3.50.0) allows unauthenticated remote attackers to bypass the one-time administrative setup guard. By supplying arbitrary tenant identifiers in POST requests to /api/global/users/init, an attacker can force the underlying CouchDB datastore to dynamically provision unlimited tenant databases and persist latent global administrator accounts. This results in datastore resource exhaustion, denial of service, and unauthorized administrative account creation inside non-default tenant contexts.
TL;DR
Budibase versions prior to 3.50.0 fail to validate the tenantId parameter or enforce internal API key authentication on the POST /api/global/users/init initialization endpoint. Unauthenticated attackers can pass arbitrary tenantId strings to bypass the single-tenant initialization check, causing CouchDB to allocate new tenant databases on disk and create global administrator accounts within those databases.
⚠️ Exploit Status: POC
Technical Details
- CVE ID: CVE-2026-122247 (GHSA-25qc-m4pw-2w8r)
- Primary CWE: CWE-306: Missing Authentication for Critical Function
- Related CWEs: CWE-284, CWE-770, CWE-863
- CVSS v3.1 Score: 8.2 HIGH (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H)
- Attack Vector: Unauthenticated HTTP POST to /api/global/users/init
- Primary Impact: CouchDB Resource Exhaustion (DoS) & Latent Global-Admin Creation
- Affected Versions: Budibase < 3.50.0
- CISA KEV Status: Not Listed
Affected Systems
- Budibase Worker Service (packages/worker)
- Budibase Self-Hosted Platform (< 3.50.0)
-
Budibase: < 3.50.0 (Fixed in:
3.50.0)
Code Analysis
Commit: 362a7fe
Fix unauthenticated tenant initialization (#171)
@@ -1,6 +1,7 @@
import {
utils as backendCoreUtils,
cache,
+ constants,
context,
db,
events,
@@ -229,6 +230,19 @@ export const adminUser = async (
const { email, password, tenantId, ssoId, givenName, familyName } =
ctx.request.body
+ if (
+ context.isMultiTenant() ||
+ (tenantId && tenantId !== constants.DEFAULT_TENANT_ID)
+ ) {
+ const apiKey = ctx.request.headers[constants.Header.API_KEY]
+ if (
+ typeof apiKey !== "string" ||
+ !backendCoreUtils.isValidInternalAPIKey(apiKey)
+ ) {
+ ctx.throw(403, "Unauthorized")
+ }
+ }
+
await tenancy.doInTenant(tenantId, async () => {
// account portal sends a pre-hashed password - honour param to prevent double hashing
const hashPassword = parseBooleanParam(ctx.request.query.hashPassword)
Exploit Details
- GitHub: Official fix commit and functional test cases demonstrating the unauthenticated tenant initialization bypass.
- GitHub Security Advisory: Official advisory detailing the tenant-confusion attack vector against POST /api/global/users/init.
Mitigation Strategies
- Upgrade Budibase to version 3.50.0, 4.0.0, or later to enforce internal API key validation on non-default tenant initialization requests.
- Block external network access to the POST /api/global/users/init endpoint at the reverse proxy or WAF after initial single-tenant bootstrapping is complete.
- Audit the underlying CouchDB datastore for unauthorized _global-db databases and purge any unrecognized tenant namespaces.
Remediation Steps:
- Update the Budibase worker and platform container images or packages to version 3.50.0 or 4.0.0+.
- If patching is delayed, apply a reverse proxy rule (e.g., Nginx location block) returning 403 Forbidden for all requests to /api/global/users/init.
- Query CouchDB via 'curl -s -u "$COUCHDB_USER:$COUCHDB_PASSWORD" http://127.0.0.1:5984/_all_dbs' to list all databases.
- Identify any database matching '_global-db' where '' is not 'default' (on single-tenant instances) or not on the approved tenant list.
- Delete unauthorized databases using 'curl -X DELETE -u "$COUCHDB_USER:$COUCHDB_PASSWORD" http://127.0.0.1:5984/_global-db'.
References
- National Vulnerability Database (NVD) - CVE-2026-122247
- CVE.org Official Record - CVE-2026-122247
- GitHub Security Advisory (GHSA-25qc-m4pw-2w8r)
- Official Security Fix Commit (362a7fe9aea594531ece1cf15be76cc00bfb88b9)
- Budibase Release v3.50.0
- Budibase Release v4.0.0
- CVEProject Data Record - CVE-2026-122247
Read the full report for CVE-2026-122247 on our website for more details including interactive diagrams and full exploit analysis.
Top comments (0)