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.
Published: 2026-07-20
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions before 2.5.0 and before 3.0.0‑beta.3 suffer a confused deputy privilege escalation bug. Unprivileged users with the database editor role can insert or alter fields that contain futures, functions, or closures. These constructs are executed in the context of the user who reads or writes the record, not the user who created them, allowing malicious code to run with higher‑privileged rights. An attacker can therefore promote themselves to a root owner or even take over the server, compromising confidentiality, integrity, and availability.

Affected Systems

The vulnerability affects SurrealDB instances of any version prior to 2.5.0 and prior to 3.0.0‑beta.3. Users running these versions, regardless of deployment size or environment, are susceptible if they grant editor roles with field update permissions.

Risk and Exploitability

The CVSS score of 7.5 places this flaw in the High severity range. The EPSS score of < 1% indicates a very low but non‑zero probability of exploitation, but the ability to execute arbitrary code at the privileges of a higher‑level user indicates a potentially lethal exploitation vector. The likely attack technique involves creating malicious future expressions from an editor account and later triggering them when a privileged user accesses or modifies the affected record.

Generated by OpenCVE AI on July 30, 2026 at 19:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update SurrealDB to version 2.5.0 or later, which removes the ability for unprivileged users to define futures, functions, or closures in editable fields.
  • If a patch cannot be applied immediately, review and tighten role permissions so that only highly trusted users can create or modify fields containing executable logic.
  • Audit existing records for unexpected closures or future functions and remove any that were added by low‑privileged users.
  • Implement strict input validation to reject future expressions in user‑editable fields if an upgrade is not feasible.

Generated by OpenCVE AI on July 30, 2026 at 19:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Mon, 20 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
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.
Title SurrealDB before 2.5.0 Privilege Escalation via Future Fields
Weaknesses CWE-639
References
Metrics cvssV4_0

{'score': 7.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:52.965Z

Reserved: 2026-07-18T12:34:08.780Z

Link: CVE-2026-63763

cve-icon Vulnrichment

Updated: 2026-07-20T15:46:15.197Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:45:06Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key