---
id: CVE-2026-109343
title: >-
  SurrealDB before 3.3.0 allows cross-tenant access because the SurrealQL USE
  statement switches a session to any namespace/database without checking that
  the caller's authenticated level covers it
summary: >-
  SurrealDB before 3.3.0 allows cross-tenant access because the SurrealQL USE
  statement switches a session to any namespace/database without checking that
  the caller's authenticated level covers it. Authenticated namespace, database,
  or re…
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-13'
sourceUpdated: '2026-10-13T17:17:26.457'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-109343'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-2v9j-645m-pcrq
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-cross-tenant-access-via-use-statement
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
epss: 0.00258
epssPercentile: 0.17321
ingestedAt: '2026-10-12T18:00:08.208Z'
vendor: surrealdb
product: surrealdb
affected:
  - surrealdb < 3.3.0
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-13T16:13:13.342735Z'
---

## Overview

SurrealDB before 3.3.0 allows cross-tenant access because the SurrealQL USE statement switches a session to any namespace/database without checking that the caller's authenticated level covers it. Authenticated namespace, database, or record users can switch to another tenant and read, create, update, or delete rows in tables whose PERMISSIONS allow it, such as PERMISSIONS FULL.

## Remediation

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