Skip to main content
Vulnerability Database/CVE-2026-109341

CVE-2026-109341: SurrealDB Authorization Bypass Vulnerability

CVE-2026-109341 is an authorization bypass flaw in SurrealDB that allows attackers with table-level write access to read SELECT-restricted fields through JSON Patch operations. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109341 Overview

CVE-2026-109341 is an authorization bypass vulnerability in SurrealDB versions prior to 3.3.0. The flaw allows callers who hold table-level write permission to read fields that are restricted by SELECT permissions. Attackers exploit the issue by issuing JSON Patch operations that resolve pointers against the unreduced record. Specifically, PATCH copy or move operations can relocate hidden fields into readable destinations. PATCH test operations can also be abused as a disclosure oracle through mismatch error responses. The vulnerability is tracked under [CWE-200: Exposure of Sensitive Information to an Unauthorized Actor].

Critical Impact

Authenticated users with write access to a table can read field-level data they are not authorized to view, breaking SurrealDB's per-field permission model.

Affected Products

  • SurrealDB versions prior to 3.3.0
  • Deployments relying on field-level SELECT permissions for data isolation
  • Multi-tenant databases that grant write permissions to lower-trust principals

Discovery Timeline

  • 2026-10-12 - CVE-2026-109341 published to NVD
  • 2026-10-12 - Last updated in NVD database

Technical Details for CVE-2026-109341

Vulnerability Analysis

SurrealDB supports field-level permissions that gate SELECT operations independently from write operations. The vulnerability arises because JSON Patch pointers are resolved against the full, unreduced record before field-level SELECT permissions are applied. A caller with table write permission can therefore reference fields that should be invisible to them. The permission layer trusts the write-side authorization check and does not re-evaluate SELECT access when a patch operation references source fields. This produces an authorization gap between the write-path and the read-path enforcement logic.

Root Cause

The root cause is incomplete authorization enforcement in the JSON Patch handler. The handler evaluates pointer references on the unreduced record instead of a view filtered by the caller's SELECT permissions. Field-level visibility checks are skipped for patch source operands, producing the bypass.

Attack Vector

The attack requires network access to the SurrealDB endpoint and low-privileged authenticated credentials with table-level write permission. An attacker issues a PATCH copy or move operation that targets a restricted source field and writes it to a destination the attacker can read. Alternatively, the attacker submits PATCH test operations against suspected values. The server returns a mismatch error when the test fails, turning the error response into a disclosure oracle that leaks field contents one comparison at a time. For technical specifics, see the GitHub Security Advisory and the VulnCheck Advisory for SurrealDB.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-109341

Indicators of Compromise

  • Unusual volumes of PATCH requests containing copy, move, or test operations from a single authenticated principal.
  • Repeated test operations against the same record path with incrementing or enumerated values, consistent with an oracle attack.
  • PATCH operations whose source pointers reference fields the caller is not configured to SELECT.

Detection Strategies

  • Audit SurrealDB query logs for patch payloads referencing field paths outside the caller's declared SELECT scope.
  • Correlate authenticated session identifiers with the set of fields returned, flagging responses that disclose restricted field names.
  • Instrument the application layer to log full JSON Patch bodies rather than relying solely on method-level telemetry.

Monitoring Recommendations

  • Alert on error-rate spikes for PATCH test operations, which indicate oracle-style probing.
  • Track per-principal access patterns and alert on sudden expansion of distinct fields appearing in response payloads.
  • Forward SurrealDB access logs to a centralized analytics platform for retention and correlation across sessions.

How to Mitigate CVE-2026-109341

Immediate Actions Required

  • Upgrade SurrealDB to version 3.3.0 or later across all nodes.
  • Audit existing permission grants and revoke table-level write access from principals that do not require it.
  • Review recent PATCH activity for signs of copy, move, or test abuse against sensitive fields.

Patch Information

SurrealDB resolved the issue in version 3.3.0. The fix enforces field-level SELECT permissions when resolving JSON Patch pointers, ensuring that patch source references honor the caller's read scope. Review the GitHub Security Advisory for the full fix description and version matrix.

Workarounds

  • Restrict PATCH operations at an application proxy and reject payloads containing copy, move, or test operators until upgrade.
  • Move sensitive fields into separate tables with distinct permission scopes so that write access to one table cannot pivot to protected columns.
  • Disable or tightly scope accounts that currently hold table-level write permissions on records containing SELECT-restricted fields.
bash
# Verify installed SurrealDB version and upgrade if below 3.3.0
surreal version
# Upgrade example (Linux)
curl -sSf https://install.surrealdb.com | sh

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.