CVE-2026-121416

SurrealDB 2.0.0 before 3.3.1 deny-funcs Capability Bypass via Method-Style Invocations

Published Nov 3, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
SurrealDB 2.0.0 before 3.3.1 does not enforce --deny-funcs restrictions on method-style function calls in the streaming engine, because MethodPart::evaluate invokes resolved functions without a capability check. Authenticated users who can submit queries can run denied functions via method syntax, e.g. [1,2].map() or $f.put()/$f.get() to write and read file bucket data despite file::* denials.

Analysis

AI-generated

Technical impact

SurrealDB implementations from version 2.0.0 through 3.3.0 allow authenticated users to execute functions that the --deny-funcs setting is intended to block when the functions are called in method-style syntax. The streaming engine’s method evaluation bypasses the capability check, so a user can invoke operations such as [1,2].map() or $f.put()/$f.get() to read or write file bucket data that should be protected by file::* denials. This flaw permits unauthorized data access or modification within the database, potentially exposing or altering sensitive file contents.

Affected Systems

The vulnerability affects all instances of SurrealDB managed by the 'surrealdb' product running versions 2.0.0 up to but not including 3.3.1. All other versions are immune to this flaw.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity for authenticated users; the flaw is exploitable by any user with query‑submission privileges, allowing immediate bypass of function restrictions without additional privileges. No EPSS score is available, and the vulnerability is not listed in KEV, which suggests limited public exploitation but does not diminish the risk to compromised or users with valid authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.3.1 or later to apply the missing capability check for method-style function calls
  • Configure the database to disallow method‑style function calls or restrict them to a minimal whitelist of safe functions
  • Limit query‑submission permissions for authenticated users, applying the principle of least privilege to ensure only authorized accounts can send queries

Generated by OpenCVE AI on November 3, 2026 at 16:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description SurrealDB 2.0.0 before 3.3.1 does not enforce --deny-funcs restrictions on method-style function calls in the streaming engine, because MethodPart::evaluate invokes resolved functions without a capability check. Authenticated users who can submit queries can run denied functions via method syntax, e.g. [1,2].map() or $f.put()/$f.get() to write and read file bucket data despite file::* denials.
Title SurrealDB 2.0.0 before 3.3.1 deny-funcs Capability Bypass via Method-Style Invocations
First Time appeared Surrealdb
Surrealdb surrealdb
Weaknesses CWE-284
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Vendors & Products Surrealdb
Surrealdb surrealdb
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 6:30 PM
Reserved
Nov 3, 2026, 12:29 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 3, 2026, 7:18 PM