/

CVE-2026-119759

Severity:

HIGH RISK

(8.1)

IDOR (CWE-639) in TrailBase FileUpload Metadata Access

CVE-2026-119759

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference (IDOR)

CWE:

CWE-639

Impact:

Unauthorized file access or deletion

Severity:

HIGH RISK

(8.1)

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

TrailBase's FileUpload handling can let an authenticated user reference a file object they do not own when inserting or updating a record. Depending on the operation, this may expose another user's file contents or permanently delete their file; a $like filter may also help recover stripped file IDs.

Affected context

The issue occurs in TrailBase deployments using std.FileUpload columns where insert and update operations accept object-store IDs without verifying that the requesting user owns the referenced file. The description identifies TrailBase 0.28.2 before 0.35.10 as affected. Risk depends on whether authenticated users can write records and query or delete their own records containing file references.

Exploit preconditions

  • Attack surface: Authenticated record insert, update, filter, and delete operations involving std.FileUpload columns
  • Required access: An account able to create or modify records it owns
  • Trigger point: Supplying or manipulating file ID metadata, then accessing or deleting the affected record
  • Why exploitation is possible: File ownership is not checked when IDs are associated with records, and file-column filtering may allow incremental ID discovery

Why this happens

The application treats a client-supplied object-store ID as sufficient authority to associate a file with a record. Without an authorization check that confirms the file belongs to the requesting user and is permitted for the target table, a user may act on another user's object through a record they control. This is an authorization bypass involving user-controlled object identifiers, mapping to CWE-639: Authorization Bypass Through User-Controlled Key.

Potential impact

  • An attacker could read another user's file bytes through a record they control.
  • An attacker could permanently delete a victim's file by deleting or nulling their own record.
  • A $like filter could help an attacker recover stripped file IDs character by character.
  • Exposed or deleted files could cause privacy, availability, or data-integrity harm.

General mitigation guidance

Defensive patterns focus on enforcing authorization at the point where file references are attached, queried, and removed.

  • Verify ownership and access rights for every file ID on both insert and update operations.
  • Scope file lookups and filters to the authenticated user and authorized table context.
  • Prevent record deletion or field nulling from deleting files the caller is not authorized to manage.
  • Prefer server-assigned opaque identifiers and avoid exposing identifiers that enable enumeration.
  • Apply least privilege to object-store operations and minimize the data returned by file queries.
  • Treat client-supplied IDs as untrusted, even when they appear in otherwise authorized records.

How teams detect issues like this

  • Review insert and update paths for std.FileUpload columns and confirm that file ownership is checked server-side.
  • Use static analysis or code review rules to flag object lookups and mutations based on client-supplied IDs without authorization checks.
  • Test that users cannot attach, query, or delete files belonging to another user or table.
  • Monitor for repeated file-column filters or sequential-looking identifier probes, alongside unexpected file deletions.
  • Enforce policies requiring resource-level authorization checks for object-store access.

Sources

SourceLink
github.comgithub.com/trailbaseio/trailbase/releases#release-v0.35.10
vulncheck.comvulncheck.com/advisories/trailbase-idor-via-record-api-file-column

Frequently asked

questions

The described attack uses TrailBase operations available to authenticated users; exposure depends on whether those operations are reachable in the deployment.

An attacker needs an account that can create or modify records and interact with std.FileUpload fields. The issue is that this access may be used to reference files the account does not own.

Enforce server-side ownership and authorization checks for every file reference during writes, reads, and deletion-related operations.

Treat identifiers supplied by clients as untrusted, scope queries to authorized resources, and test cross-user access boundaries in code review and automated security testing.

Find out what's already
exploitable in your codebase.