Skip to content
CVE-2026-137494 Elastic Security · Elastic

Detect Budibase Cross-Tenant Object Authorization Bypass (CVE-2026-137494) in Elastic Security

Detects exploitation of CVE-2026-137494, a broken object-level authorization (IDOR / CWE-639) vulnerability in Budibase before 4.0.0. Authenticated users holding table write access in one tenant can supply an attachment key (object reference) belonging to a different tenant, causing cross-tenant file deletion or reference. This detection surfaces authenticated API requests to attachment/row endpoints where the referenced object key or tenant identifier is inconsistent with the caller's own tenant context, repeated attachment-key manipulation, and anomalous file-deletion volume. Because the flaw is a server-side authorization gap, detection relies on application and proxy access logs correlating the authenticated user's tenant to the tenant encoded in the manipulated attachment key.

Based on VulnCheck Advisory: Budibase before 4.0.0 cross-tenant file deletion via attachment key

MITRE ATT&CK

Tactic
Privilege Escalation Impact Collection

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-a46e8cb1b8 · https://df00tech.com/detections/CVE-2026-137494 · licence: https://df00tech.com/detections/licence
sequence by source.ip with maxspan=10m
  [ any where http.request.method in ("DELETE", "PATCH", "POST", "PUT") and
    url.path : ("*/api/attachments*", "*/api/rows*", "*/api/tables*") and
    http.response.status_code in (200, 204) and
    not endswith~(user.id, url.domain) ]
high severity low confidence

Detects authenticated Budibase mutation requests to attachment/row/table endpoints that succeed, as a precursor to cross-tenant key-manipulation correlation; pair with an ingest-time enrichment that tags the attachment key's tenant.

Data Sources

Elastic APM HTTP transactionsFilebeat Budibase access logs

Required Tables

logs-*apm-*-transaction

False Positives & Tuning

  • Administrative bulk operations by multi-tenant operators
  • Automated data-sync integrations touching many tenants
  • Shared attachment buckets outside tenant isolation

Other platforms for CVE-2026-137494


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Cross-tenant attachment deletion via manipulated key

    Expected signal: Access log entry for DELETE /api/attachments with attacker session/tenant and a key prefix matching victim tenant B, status 200/204.

  2. Test 2 Cross-tenant row reference via attachment key in row write

    Expected signal: Row mutation log entry carrying an attachment key whose tenant prefix differs from the authenticated tenant.

  3. Test 3 Enumeration of cross-tenant attachment keys

    Expected signal: Burst of DELETE requests to /api/attachments with varying keys carrying non-caller tenant prefixes.


Response Playbook

Triage

  1. Identify the authenticated user, API key, and session associated with the flagged request and confirm which tenant the account legitimately belongs to.
  2. Decode the attachment key in the request and determine its owning tenant; confirm whether it differs from the caller's tenant, establishing a genuine cross-tenant reference.
  3. Review the response status and endpoint (DELETE vs PATCH/POST) to determine whether a cross-tenant file was actually deleted, modified, or merely referenced.
  4. Check the Budibase version in use; versions before 4.0.0 are vulnerable to CVE-2026-137494 and corroborate exploitability.

Containment

  1. Suspend or restrict the implicated user account and revoke active API keys/sessions to stop further cross-tenant operations.
  2. Apply a WAF/proxy rule to block attachment/row requests whose embedded key tenant does not match the authenticated tenant until the platform is patched.
  3. Upgrade Budibase to 4.0.0 or later to remediate the broken object-level authorization flaw.

Evidence Collection

  1. Preserve application access logs, reverse-proxy logs, and audit records covering the implicated session and attachment keys.
  2. Snapshot the affected tenants' attachment stores and database row/table metadata to document deleted or altered objects for recovery and forensics.

Escalation Criteria

  • !Escalate to incident response if confirmed cross-tenant file deletion or data modification occurred affecting a victim tenant's production data.
  • !Escalate to the data protection/privacy team if cross-tenant access exposed or destroyed another customer's regulated or personal data.

Investigation Guide

Forensic Artifacts

  • >Budibase application access logs showing attachment keys with mismatched tenant prefixes
  • >Reverse-proxy/load-balancer request logs with authenticated user and tenant context
  • >Budibase audit/event records of file deletion and row/table mutations

Tuning Guidance

Baseline legitimate multi-tenant operator and automation accounts and exclude them, or route them through a dedicated service identity. Confirm that the attachment-key format in your Budibase version actually encodes a tenant prefix and adjust the regex accordingly; if keys are opaque, enrich with a lookup mapping key->tenant. Raise the cross_tenant_ops threshold or correlate with deletion volume to cut noise once the key-to-tenant mapping is reliable.


Hunting Queries

Surface accounts performing high-volume attachment deletions or touching more than one tenant's attachment keys, a hallmark of cross-tenant IDOR abuse.

Hunting — KQL
kql
// df00tech DF00-a46e8cb1b8 · https://df00tech.com/detections/CVE-2026-137494 · licence: https://df00tech.com/detections/licence
AppServiceHTTPLogs | where CsUriStem has "/api/attachments" and CsMethod == "DELETE" | extend AttachmentKey = extract(@"([A-Za-z0-9]+)/attachments/", 1, CsUriStem) | summarize Deletions=count(), Keys=make_set(AttachmentKey, 50) by CIp, bin(TimeGenerated, 1h) | where Deletions > 20
Hunting — SPL
spl
``` df00tech DF00-a46e8cb1b8 · https://df00tech.com/detections/CVE-2026-137494 · licence: https://df00tech.com/detections/licence ```
index=budibase uri_path="*/api/attachments*" method=DELETE | rex field=uri_path "(?<attachment_tenant>[A-Za-z0-9]+)/attachments/" | stats count AS deletions dc(attachment_tenant) AS tenants values(attachment_tenant) AS tenant_list by user src_ip | where tenants > 1

Atomic Red Team Tests

Test 1 Cross-tenant attachment deletion via manipulated key
linux

As an authenticated user in tenant A with table write access, issue a DELETE against an attachment key belonging to tenant B to simulate the IDOR.

Command

bash
curl -s -X DELETE "https://budibase.lab.local/api/attachments/process/${VICTIM_TENANT_KEY}" -H "x-budibase-app-id: ${ATTACKER_APP_ID}" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -o /dev/null -w '%{http_code}\n'

Cleanup

bash
echo 'Lab only: restore deleted attachment from the tenant B snapshot taken before the test.'

Expected Telemetry

Access log entry for DELETE /api/attachments with attacker session/tenant and a key prefix matching victim tenant B, status 200/204.

Expected Detection

KQL/SPL cross-tenant rule fires on attachment_tenant != caller_tenant.

Test 2 Cross-tenant row reference via attachment key in row write
linux

Authenticated tenant-A user submits a row PATCH embedding tenant B's attachment key to reference another tenant's object.

Command

bash
curl -s -X PATCH "https://budibase.lab.local/api/rows" -H "Content-Type: application/json" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -d '{"tableId":"ta_attacker","attachments":[{"key":"'"${VICTIM_TENANT_KEY}"'"}]}' -o /dev/null -w '%{http_code}\n'

Cleanup

bash
curl -s -X PATCH "https://budibase.lab.local/api/rows" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -d '{"tableId":"ta_attacker","attachments":[]}' >/dev/null

Expected Telemetry

Row mutation log entry carrying an attachment key whose tenant prefix differs from the authenticated tenant.

Expected Detection

Rules flag mismatched attachment_tenant vs caller_tenant on /api/rows.

Test 3 Enumeration of cross-tenant attachment keys
linux

Attacker iterates candidate attachment keys across tenant namespaces to find deletable cross-tenant objects.

Command

bash
for k in key1 key2 key3; do curl -s -X DELETE "https://budibase.lab.local/api/attachments/process/other_tenant_${k}" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -o /dev/null -w '%{http_code}\n'; done

Cleanup

bash
echo 'Lab only: no persistent artifacts beyond any successfully deleted test attachments; restore from snapshot.'

Expected Telemetry

Burst of DELETE requests to /api/attachments with varying keys carrying non-caller tenant prefixes.

Expected Detection

High-volume / multi-tenant hunting query and the cross-tenant rule both fire.

Related Detections