---
id: CVE-2026-109334
title: >-
  SurrealDB before 3.3.0 does not check the caller-selected namespace or
  database against the level at which a namespace- or database-level system user
  authenticated, allowing cross-tenant access
summary: >-
  SurrealDB before 3.3.0 does not check the caller-selected namespace or
  database against the level at which a namespace- or database-level system user
  authenticated, allowing cross-tenant access. An authenticated attacker can set
  the Surr…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-639
published: '2026-10-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T17:17:29.483'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109334'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-w5v9-jc5f-5rmc
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-cross-tenant-access-via-surreal-ns-surreal-db-headers-and-rpc-use
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-12T18:00:08.205Z'
---

## Overview

SurrealDB before 3.3.0 does not check the caller-selected namespace or database against the level at which a namespace- or database-level system user authenticated, allowing cross-tenant access. An authenticated attacker can set the Surreal-NS/Surreal-DB headers on /sql or call the RPC use method to read, create, modify, and delete rows and read DEFINE PARAM values in another tenant where table PERMISSIONS allow it.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
