SurrealDB: Security capability bypass in streaming engine (CVE-2026-121416)
SurrealDB versions 2.0.0 through 3.3.0 fail to enforce --deny-funcs restrictions on method-style function calls, allowing authenticated users to execute forbidden functions and bypass file system access controls.
CVE search metadata
CVE search record: CVE-2026-121416. Severity: high. CVSS: 7.1. KEV: no. Product: SurrealDB (< 3.3.1). Brief: SurrealDB: Security capability bypass in streaming engine (CVE-2026-121416). Brief link: https://feed.craftedsignal.io/briefs/2026-11-surrealdb-deny-funcs-bypass/
Triage facts
Revision 1- Applicability
- SurrealDB (< 3.3.1)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 3, 15:59 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
A security vulnerability exists in the SurrealDB streaming engine where method-style function calls bypass the configured '--deny-funcs' capability restrictions. The vulnerability stems from the 'MethodPart::evaluate' function, which invokes resolved functions without performing necessary capability checks. This allows an authenticated user to perform restricted actions, such as arbitrary file system access using 'file::*' functions, by wrapping them in method-style syntax (e.g., '.map()').
Impact
Successful exploitation allows an authenticated user with query submission privileges to bypass defined system restrictions. This can result in unauthorized reading or writing of data within configured file buckets, effectively neutralizing security controls intended to limit function execution.
Recommendation
- Update all SurrealDB instances to version 3.3.1 or later to apply the capability check fix.
- Review and audit existing query logs for usage of method-style syntax that attempts to interact with restricted functions (e.g., 'file::' namespaces).
- Restrict query submission privileges to trusted users until the patch is applied.
Immediate actions
Upgrade all SurrealDB instances to version 3.3.1 or later.
Threat Hunt
Monitor query logs for method-style invocations containing restricted function namespaces like file::
Data: SurrealDB application logs, Database audit logs
Mitigations
Upgrade to SurrealDB 3.3.1
CVE-2026-121416