7.1high
SurrealDB before 3.1.0 Permission Bypass via Graph Traversal
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.29% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-vjjx-rfw4-rmfc
Description
SurrealDB versions before 3.1.0 fail to enforce table SELECT permissions when traversing graph edges or back-references. Authenticated users can read records from any table reachable through graph edges regardless of the target table's PERMISSIONS FOR select clause.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| surrealdb surrealdb | before 3.1.0 Not affected: 3.1.0 | CVE List, NVD |
| surrealdb (crates.io) | before 3.1.0 | GitHub Advisory Database |
All scores
| VulnCheck | 7.1high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
SurrealDB versions before 3.1.0 fail to enforce table SELECT permissions when traversing graph edges or back-references. Authenticated users can read records from any table reachable through graph edges regardless of the target table's PERMISSIONS FOR select clause.
GitHub Advisory Database
An authenticated record or scope user could read records on any table reachable through a graph edge or REFERENCES TO back-reference, regardless of that table's PERMISSIONS FOR select clause.
Traversing SELECT * FROM source->edge->target returned full documents from target even when target was defined as PERMISSIONS FOR select NONE. The same bypass extended through multi-hop chains, so any table reachable by a sequence of edges from a readable starting point was exposed.
The root cause: GraphEdgeScan and ReferenceScan fetched records straight from storage without routing them through Document::pluck_select, so the target table's permission expression was never consulted.
Impact
An authenticated record or scope user can read records on any table reachable through a chain of graph edges or back-references from a table they have select on, regardless of the target's PERMISSIONS FOR select clause. Confidentiality-only and bounded to the caller's current database — namespace and database isolation are unaffected.
Patches
A new per-batch permission cache (exec::permission::CachedTableSelect) resolves each target table's SELECT permission once and filters yielded values through check_permission_for_value, matching the regular SELECT code path.
- Versions 3.1.0 and later are not affected.
Workarounds
- Remove
selectpermission on edge tables whose targets should be hidden. - Use namespace or database isolation as the primary boundary where feasible.
References
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-vjjx-rfw4-rmfc | mitigation, vendor-advisory, web | |
| https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-graph-traversal | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-63746 | advisory | |
| https://github.com/surrealdb/surrealdb | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-63746 changed 2026-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vjjx-rfw4-rmfc changed 2026-09-04 | CC-BY-4.0 |
| NVD | CVE-2026-63746 changed 2026-10-08 | Public domain |