Skip to main content

SurrealDB CVE-2026-134292

| EUVDEUVD-2026-132235 CRITICAL
Missing Authorization (CWE-862)
2026-11-21 VulnCheck GHSA-cr6h-wmmv-79vp
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with restricted function capabilities
  2. Delivery
    Define embedded JavaScript function
  3. Exploit
    Call denied function via surrealdb.functions bridge
  4. Execution
    Bridge invokes fnc dispatchers skipping checks
  5. Impact
    Execute denied built-in functions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires (1) a valid authenticated SurrealDB session on a version in the 1.0.0-to-before-4.0.0 range, (2) that the account has been explicitly denied one or more built-in functions via SurrealDB's function capability restrictions, and (3) availability of the embedded JavaScript scripting engine so the user can define script functions and reach the surrealdb.functions.* bridge. The attack is only meaningful where operators depend on function capabilities as a security boundary (e.g., multi-tenant or least-privilege setups); deployments that do not restrict functions, or that disable embedded scripting, gain nothing for an attacker. Limiting factors: authentication is mandatory, scripting must be reachable, and the only complete fix per the vendor is upgrading to 4.0.0 (which enforces check_function_capability() inside the bridge).

Impact

The input assigns a CVSS 4.0 base score of 9.3 (Critical) and vuln.today sets the decision label to act_now, with the issue reported by VulnCheck and a confirmed vendor advisory (GHSA-5w6j-qm42-4rc2) plus a fix commit (0b8be14543). However, several signals are missing or conflicting and temper real-world urgency. KEV status is absent (treat as not listed), no EPSS score is provided, and no working exploit is referenced - only the vendor advisory and the fix commit, which are not exploit code. The most important conflict: the supplied CVSS 4.0 vector states PR:N (no privileges), but the description and advisory explicitly require an AUTHENTICATED user who has already been denied access to certain built-in functions. This is an authorization/capability bypass (CWE-862), not a pre-auth break, so PR:N appears mislabeled - verify with the vendor; a privileged-but-restricted session is a prerequisite. Realistic risk is therefore concentrated in multi-tenant or least-privilege SurrealDB deployments that rely on function capability restrictions to sandbox users AND have the embedded JavaScript scripting engine available; in single-trust or scripting-disabled deployments the practical impact is far lower than the Critical score suggests. Net: a genuine, vendor-confirmed authorization bypass worth prioritizing where function capabilities are a security boundary, but not an unauthenticated internet-wormable issue despite the headline PR:N vector.

Exploit ScenarioDerived

In a SurrealDB deployment that uses function capability restrictions to limit what a tenant or low-trust account can run, an authenticated user who is denied a sensitive built-in function writes an embedded JavaScript function and calls that same function through the surrealdb.functions.* bridge. Because the bridge invokes the internal fnc::synchronous()/fnc::asynchronous() dispatchers without the capability check, the denied function executes anyway. No public exploit is identified at time of analysis, but the mechanism is documented in the vendor advisory with the exact affected file and functions.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 21, 2026

SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embedded JavaScript bridge, so an authenticated user who has been explicitly denied a function in SurrealQL can still invoke it through surrealdb.functions.* from a script function. The flaw (CWE-862 missing authorization, assessed CVSS 3.1 7.2-class AV:N/AC:L/PR:L/UI:N with high confidentiality, integrity and availability impact; the input also carries a CVSS 4.0 score of 9.3) only yields access the user was denied, so it matters where function capabilities are used as a real security boundary, such as multi-tenant or least-privilege deployments. vuln.today marks the decision label act_now, a vendor advisory (GHSA-5w6j-qm42-4rc2) and fix commit are available, and no public exploit code was identified at time of analysis.

RemediationAI

Upgrade to SurrealDB 4.0.0 or later, the vendor-released fix that adds check_function_capability() to the embedded JavaScript built-in bridge so a denied function can no longer be reached from script (fix commit 0b8be14543, "fix(script): JS bridge bypasses the query and function capabilities"); per the vendor this upgrade is the only complete remediation, and back-porting the capability check to 1.x/2.x/3.x deployments is not listed in the supplied references. Because the bypass is reached only through the embedded JavaScript engine, disabling or refusing to expose script functions removes the attack path on versions that cannot yet be upgraded, at the cost of losing JavaScript-defined functions entirely; note that tightening function capability grants alone does not help, since the flaw is precisely that those grants are ignored on the script path. Prioritize the upgrade to 4.0.0 in multi-tenant or least-privilege clusters where function restrictions are treated as a security boundary, per the act_now decision label. Full details are in https://github.com/surrealdb/surrealdb/security/advisories/GHSA-5w6j-qm42-4rc2 and https://www.vulncheck.com/advisories/surrealdb-1.0.0-before-4.0.0-function-capability-bypass-via-javascript-built-in-bridge.

Affected VersionsENISA

surrealdb 1.0.0 <4.0.0

Affected Packages

euvd surrealdb fix: 4.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SurrealDB supports embedded JavaScript as a SurrealQL function type (DEFINE FUNCTION ... { ... } script bodies), and exposes a bridge that lets that JavaScript reach built-in functions through the surrealdb.functions.* namespace. In surrealdb/core/src/fnc/script/modules/surrealdb/functions/mod.rs, the run() and fut() handlers pass calls straight to the internal dispatchers fnc::synchronous() and fnc::asynchronous(). SurrealQL itself routes built-ins through Function::compute() and BuiltinFunctionExec::evaluate(), which consult the configured function capabilities and reject calls an account is not permitted to make; the JavaScript path skips that gate entirely. The root cause is therefore a missing authorization check (CWE-862) on an alternate code path rather than a memory-safety problem: the bridge simply does not call check_function_capability() before delegating, so the scripting engine becomes a way around the policy the query engine enforces. The affected package is rust/surrealdb, mapped by CPE cpe:2.3:a:surrealdb:surrealdb with a version range of 1.0.0 up to (but excluding) 4.0.0; the trigger requires a reachable scripting engine and an account that is actually denied at least one built-in function, so a deployment without function restrictions presents no boundary to bypass.

Know when Surrealdb gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Requires an authenticated but capability-restricted account, so PR:L not PR:N; network-reachable, low complexity, and bypassing function restrictions can yield high C/I/A via otherwise-denied built-ins.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:35 cve.org
CRITICAL 9.3

DescriptionCVE.org

SurrealDB 1.0.0 before 4.0.0 contains a capability check bypass in its embedded JavaScript scripting engine, where the surrealdb.functions bridge calls the internal fnc::synchronous() and fnc::asynchronous() dispatchers without enforcing function capability checks. Authenticated users denied access to built-in functions in SurrealQL can execute them by calling them through surrealdb.functions from embedded JavaScript.

Technical POC Analysis

Bug class: CWE-862 Missing Authorization.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical authorization bypass in SurrealDB (versions 1.0.0 through 3.x) allows authenticated users to circumvent explicitly denied capabilities for built-in functions via the embedded JavaScript bridge. This undermines least-privilege and multi-tenant security boundaries, enabling users to perform unauthorized actions with high impact on confidentiality, integrity, and availability. Leadership should prioritize remediation because the flaw directly weakens access controls that may protect sensitive data and system operations.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 46% exploitable
Prevalence
Low
emerging multi-model database, limited enterprise production footprint so far
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2025-71392 CRITICAL
9.4 Jul 18

Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica

CVE-2026-63756 CRITICAL
9.2 Jul 20

Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act

CVE-2026-134293 HIGH
8.8 Nov 21

SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow

CVE-2026-121417 HIGH
8.8 Nov 03

Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a

CVE-2026-63760 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web

CVE-2026-63747 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi

CVE-2026-63757 HIGH
8.7 Jul 20

Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the

CVE-2026-134291 HIGH
8.7 Nov 21

Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read

CVE-2026-134294 HIGH
8.7 Nov 21

Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0

CVE-2026-134295 HIGH
8.7 Nov 21

Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an

CVE-2026-134299 HIGH
8.7 Nov 21

Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo

CVE-2026-134309 HIGH
8.7 Nov 21

SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy