Skip to content
OpenAdvisories
High · 7.5 CVE-2026-63763 EUVD-2026-45934GHSA-3v2x-9xcv-2v2vGHSA-5w8c-cvwv-f5px

SurrealDB before 2.5.0 Privilege Escalation via Future Fields

Published Jul 20, 2026 · Updated Jul 28, 2026 · Assigned by VulnCheck

Description

SurrealDB before 2.5.0 and before 3.0.0-beta.3 contains a confused deputy privilege escalation vulnerability. Unprivileged users (e.g., those with the database editor role) can create or modify fields containing futures, functions, or closures. Because these are executed in the context of the invoking/querying user rather than their creator, an attacker can plant malicious logic that executes with a higher-privileged user's permissions when that user reads or writes the affected record. This can lead to full privilege escalation, including creation of a root owner and server takeover.

Affected products

VendorProductAffectedFixed
surrealdb surrealdb < 2.5.0, 3.0.0-alpha.1 – < 3.0.0-beta.3 2.5.0

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io surrealdb < 2.5.0 2.5.0 GHSA-3v2x-9xcv-2v2v
crates.io surrealdb >= 3.0.0-alpha.1, < 3.0.0-beta.3 3.0.0-beta.3 GHSA-3v2x-9xcv-2v2v

References