Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. GHSA-3v2x-9xcv-2v2v

GHSA-3v2x-9xcv-2v2v: SurrealDB Affected by Confused Deputy Privilege Escalation through Future Fields and Functions

January 22, 2026 (updated January 29, 2026)

Unprivileged users (for example, those with the database editor role) can create or modify fields in records that contain functions or futures. Futures are values which are only computed when the value is queried. The query executes in the context of the querying user, rather than the user who originally defined the future. Likewise, fields containing functions or custom-defined logic (closures) are executed under the privileges of the invoking user, not the creator.

This results in a confused deputy vulnerability: an attacker with limited privileges can define a malicious function or future field that performs privileged actions. When a higher-privileged user (such as a root owner or namespace administrator) executes the function or queries or modifies that record, the function executes with their elevated permissions.

References

  • github.com/advisories/GHSA-3v2x-9xcv-2v2v
  • github.com/surrealdb/surrealdb
  • github.com/surrealdb/surrealdb/commit/f515c91363ee735aa1bc08580d9e7fa0de6e736f
  • github.com/surrealdb/surrealdb/releases/tag/v2.5.0
  • github.com/surrealdb/surrealdb/releases/tag/v3.0.0-beta.2
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-3v2x-9xcv-2v2v

Code Behaviors & Features

Detect and mitigate GHSA-3v2x-9xcv-2v2v 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.5.0, all versions starting from 3.0.0-alpha.1 before 3.0.0-beta.3

Fixed versions

  • 2.5.0
  • 3.0.0-beta.3

Solution

Upgrade to versions 2.5.0, 3.0.0-beta.3 or above.

Impact 8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')

Source file

cargo/surrealdb/GHSA-3v2x-9xcv-2v2v.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:35:48 +0000.