HIGHCVSS v3.1 8.2Vulnerability

CVE-2026-122247

## Description ### Summary On a self-hosted, single-tenant Budibase instance (`multiTenancy:false`), the public bootstrap endpoint `POST /api/global/users/init` remains fully exploitable **after** the instance has been provisioned. Its "already initialised" guard (`checkAnyUserExists()`) is evaluated inside a **tenant-scoped** database context derived from an **attacker-controlled `tenantId`** in the request body. Because the tenancy layer never constrains that `tenantId` to the only legitimate tenant (`default`) on a single-tenant deployment, an unauthenticated attacker simply supplies any unused tenant name to make the guard see an empty user list, and the endpoint then creates a brand-new CouchDB database (`<tenantId>_global-db`) and a **global-admin** user document (`admin.global = true`, `builder.global = true`) inside it - with no authentication and no CSRF token. This is (a) a bypass of the security control meant to permanently close first-run setup, and (b) an unauthenticated, persistent write primitive that lets an anonymous attacker create an unbounded number of databases and admin-user documents - a resource-exhaustion / denial-of-service vector against the CouchDB datastore, plus creation of latent rogue admin accounts. ### Details Root cause chain (source, tag v3.44.0): 1. `packages/worker/src/api/index.ts:41` - `POST /api/global/users/init` is in `PUBLIC_ENDPOINTS`, so `auth.buildAuthMiddleware(PUBLIC_ENDPOINTS)` marks it `publicEndpoint` and the "no public access to worker" gate (`api/index.ts:159-165`) lets it through **without any session**. It is also in `NO_TENANCY_ENDPOINTS` (`api/index.ts:83`), so the tenancy middleware does **not** pin the request to `default` - the tenant is taken verbatim from the request body - and in `NO_CSRF_ENDPOINTS`. 2. `packages/worker/src/middleware/cloudRestricted.ts:10,25` - the `cloudRestricted` guard only enforces the internal API key when `!env.SELF_HOSTED && !env.DISABLE_ACCOUNT_PORTAL`. On a self-hosted i

Properties

Severity
high
Summary
Budibase: Unauthenticated global-admin & database creation via tenant-confusion bypass of the one-time init guard (`POST /api/global/users/init`)
Nvd fetched at
2026-11-22T12:30:49.958423+00:00
Epss score
0.00838
Cvss severity
HIGH
Cvss score
8.2
Retrieved at
2026-11-22T12:32:26+00:00
Ghsa published
2026-11-20T23:50:01Z
Source url
https://github.com/advisories/GHSA-25qc-m4pw-2w8r
Ghsa updated
2026-11-20T23:50:04Z
Ghsa id
GHSA-25qc-m4pw-2w8r
Last source
FIRST EPSS
Score
8.2
Cvss version
3.1
Cve id
CVE-2026-122247
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
First seen by Signal
2026-11-20T19:45:57+00:00
Name
CVE-2026-122247
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Related Entities (6)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-122247 (CVSS v3.1 8.2) — Ninja Signal Threat Intelligence | Ninja Signal