Skip to main content
EPSS 0.4%top 71%

SurrealDB: Custom API route lets authenticated callers override namespace/database scope via URL path (CVE-2026-63735)

0
High
Published: 09/04/2026 (09/04/2026, 20:07:07 UTC)
Source: GCVE Database
Product: surrealdb

Description

SurrealDB versions prior to 3.2.0 contain a vulnerability where an authenticated user scoped to one namespace/database can invoke a custom API belonging to another namespace/database by manipulating the URL path. This allows the user to access or modify data in another tenant's scope if the endpoint permissions are permissive. The vulnerability does not allow unauthenticated access or affect single-tenant deployments. Versions 3.2.0 and later include a fix that validates the namespace/database against the caller's authenticated scope, rejecting unauthorized cross-tenant access.

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected software

crates.ioghsa
surrealdb
Affected versions
<3.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 10:07:24 UTC

Technical Analysis

The vulnerability (CVE-2026-63735) in SurrealDB affects the custom API route `/api/{namespace}/{database}/{endpoint}` where the namespace and database from the URL are applied to the caller's session without verifying that the caller is authorized for that scope. Because custom API handlers run with permissions disabled (definer's rights), the endpoint's own permissions clause is the only access control, which can be bypassed if set to 'PERMISSIONS FULL'. An attacker with valid credentials for any namespace/database can invoke APIs in other namespaces/databases, potentially reading or writing data across tenant boundaries. The issue is fixed in SurrealDB 3.2.0 by enforcing validation of the requested namespace/database against the caller's authenticated scope, returning 403 Forbidden if unauthorized.

Potential Impact

An attacker with valid credentials scoped to any namespace/database can invoke custom APIs in other namespaces/databases, potentially accessing or modifying data they should not have access to. This includes reading data from tables with 'PERMISSIONS NONE' since the handler runs with permissions disabled, and triggering writes or side effects. The vulnerability does not allow unauthenticated access or affect single-tenant deployments or deployments where callers have instance-wide root scope.

Mitigation Recommendations

A patch is available in SurrealDB version 3.2.0 and later that enforces validation of namespace/database scope against the caller's authenticated permissions, rejecting unauthorized cross-tenant API calls with a 403 Forbidden response. Users unable to upgrade should disable the custom API HTTP route where not required, treat separate deployments as tenant isolation boundaries instead of namespaces/databases, and prefer 'PERMISSIONS WHERE' clauses that check authenticated identity rather than 'PERMISSIONS FULL' to reduce exposure.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-848m-r628-vrxw
Osv Schema Version
1.4.0
Aliases
["CVE-2026-63735"]
Ecosystems
["crates.io"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a9c2648acd9273b49fc9e63

Added to database: 09/05/2026, 14:25:12 UTC

Last enriched: 09/07/2026, 10:07:24 UTC

Last updated: 10/19/2026, 06:48:18 UTC

Views: 52

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses