Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. GHSA-7vm2-j586-vcvc

GHSA-7vm2-j586-vcvc: SurrealDB is Vulnerable to Unauthorized Data Exposure via LIVE Query Subscriptions

September 11, 2025

LIVE SELECT statements are used to capture changes to data within a table in real time. Documents included in WHERE conditions and DELETE notifications were not properly reduced to respect the querying user’s security context. Instead the leaked documents reflect the context of the user triggering the notification.

This allows a record or guest user with permissions to run live query subscriptions on a table to observe unauthorised records within the same table, when another user is altering or deleting these records, bypassing access controls.

References

  • github.com/advisories/GHSA-7vm2-j586-vcvc
  • github.com/surrealdb/surrealdb
  • github.com/surrealdb/surrealdb/commit/d81169a06b89f0c588134ddf2d62eeb8d5e8fd0c
  • github.com/surrealdb/surrealdb/pull/6247
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-7vm2-j586-vcvc
  • surrealdb.com/docs/surrealql/statements/live

Code Behaviors & Features

Detect and mitigate GHSA-7vm2-j586-vcvc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.9, all versions starting from 2.2.0 before 2.2.8, all versions starting from 2.3.0 before 2.3.8

Fixed versions

  • 2.3.8
  • 2.2.8
  • 2.1.9

Solution

Upgrade to versions 2.1.9, 2.2.8, 2.3.8 or above.

Weakness

  • CWE-863: Incorrect Authorization

Source file

cargo/surrealdb/GHSA-7vm2-j586-vcvc.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 26 Sep 2025 00:20:47 +0000.