/

CVE-2026-122247

Severity:

HIGH RISK

(8.2)

Missing Authentication (CWE-306) in Budibase Init API

CVE-2026-122247

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-284, CWE-306, CWE-770, CWE-863

Impact:

Persistent unauthorized writes and denial of service

Severity:

HIGH RISK

(8.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

On self-hosted, single-tenant Budibase deployments, the public user-initialization endpoint can accept an attacker-controlled tenant identifier and check the initialization guard against that tenant rather than the default tenant. An unauthenticated attacker may therefore create tenant-specific databases and administrator records, leading to persistent writes or resource exhaustion; those records are not immediately usable to log in to the default tenant while multi-tenancy is disabled.

Affected context

The issue occurs in Budibase's global user initialization flow on self-hosted, single-tenant deployments. The public POST /api/global/users/init endpoint uses the supplied tenantId when checking whether an administrator already exists, allowing the one-time initialization guard to be bypassed for an unused tenant namespace. The resulting administrator record does not provide default-tenant login while multi-tenancy remains disabled, but could become relevant if multi-tenancy is enabled later or during migration.

Exploit preconditions

  • Attack surface: Public POST /api/global/users/init endpoint on a self-hosted, single-tenant deployment
  • Required access: No authenticated session is required
  • Trigger point: The endpoint processes an attacker-controlled tenantId and checks for an existing user in that tenant's database
  • Why exploitation is possible: The initialization guard is evaluated against the selected tenant rather than the legitimate default tenant, and the request does not require a session or CSRF token
  • Resource impact condition: Repeated requests using unique tenant identifiers can cause creation of additional databases and records

Why this happens

The initialization flow trusts a client-supplied tenant identifier to select the database used for its authorization and one-time-setup check. This permits the guard to be bypassed without authenticating the caller, mapping primarily to CWE-306: Missing Authentication for Critical Function and also involving improper authorization (CWE-284, CWE-863). Repeated creation of tenant databases and records can additionally expose resource-consumption risks described by CWE-770.

Potential impact

  • Repeated requests may exhaust datastore resources and cause denial of service.
  • Unauthorized tenant-specific administrator records may be written and persist.
  • Latent privileged records could become usable if multi-tenancy is enabled later or during migration.
  • The administrator records may not allow login to the default tenant while multi-tenancy remains disabled.

General mitigation guidance

Defensive patterns focus on making initialization an explicitly authorized, single-use operation and preventing untrusted input from selecting security-sensitive storage contexts.

  • Derive the tenant context from trusted server-side configuration rather than accepting it from the request.
  • Require strong authorization for initialization and enforce the guard against the canonical tenant.
  • Make initialization state transitions atomic and resistant to repeated or concurrent requests.
  • Apply quotas and resource limits to tenant database creation, and run datastore operations with least privilege.
  • Keep multi-tenancy and administrative capabilities disabled by default unless they are explicitly configured and needed.

How teams detect issues like this

Review initialization code for public routes that create users, databases, or privileged records without authentication, and check whether client-controlled tenant identifiers influence authorization or guard checks. Static analysis and code review can flag unauthenticated critical operations, untrusted input used to select database namespaces, and resource creation without quotas. Monitor for repeated initialization requests, unusual tenant identifier creation, unexpected administrator records, and abnormal datastore growth; enforce policies requiring authentication and bounded resource allocation for administrative operations.

Sources

SourceLink
github.comgithub.com/Budibase/budibase/commit/362a7fe9aea594531ece1cf15be76cc00bfb88b9
github.comgithub.com/Budibase/budibase/releases/tag/v3.50.0
github.comgithub.com/Budibase/budibase/releases/tag/v4.0.0
github.comgithub.com/Budibase/budibase/security/advisories/GHSA-25qc-m4pw-2w8r

Frequently asked

questions

The affected endpoint is public, so an attacker able to reach it on a vulnerable deployment may submit requests without an authenticated session.

No session or CSRF token is required. The described risk applies to self-hosted, single-tenant deployments where the endpoint is reachable.

Require authorization for critical initialization, use a trusted server-side tenant context, and enforce the one-time guard against the canonical tenant.

Treat tenant selection and initialization state as security-sensitive, test authorization boundaries, make setup operations atomic and single-use, and apply limits to resource creation.

Find out what's already
exploitable in your codebase.