SurrealDB: Scraping a TABLE with no available PERMISSIONS to current auth level (CVE-2026-63755)
Description
SurrealDB versions prior to 3.1.0 contain a vulnerability where user-supplied expressions in SELECT and update-variant statements are evaluated before permission checks, allowing authenticated users to bypass table-level SELECT permissions and read full record contents. This flaw is limited to the current database and does not affect namespace or database isolation boundaries. A patch is available in version 3.1.0 and later that corrects the permission check order. Mitigations include disabling scripting functions to block the most direct exfiltration method and restricting query access for untrusted users.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-63755 in SurrealDB allows an authenticated user to bypass 'PERMISSIONS FOR SELECT WHERE' restrictions on tables within their current database. The vulnerability arises because the user-supplied WHERE clause in SELECT statements, as well as SET, MERGE, CONTENT, and PATCH clauses in update-variant statements, is evaluated against full record data before the permission check is performed. This ordering bug enables side-effecting expressions to exfiltrate record contents prior to authorization enforcement. The vulnerability is confined to the current database and does not cross namespace or database boundaries. The most straightforward exfiltration requires scripting functions enabled, but alternative methods using the THROW statement or timing side-channels exist. A patch in SurrealDB version 3.1.0 and later fixes the issue by running permission checks before evaluating user expressions.
Potential Impact
An authenticated user with any level of access to a SurrealDB database can read the full contents of any table within that database, bypassing table-level SELECT permission restrictions. This compromises confidentiality of data within the affected database. The vulnerability does not affect other databases or namespaces. The impact is limited to confidentiality; integrity and availability are not affected. The CVSS v3.1 base score is 6.5 (medium severity), reflecting network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
A patch is available in SurrealDB version 3.1.0 and later that fixes the permission check ordering issue. Users should upgrade to version 3.1.0 or newer to fully remediate this vulnerability. If upgrading is not immediately possible, disabling scripting functions (removing the --allow-scripting or -A flag) will block the most direct exfiltration method, though THROW-based and timing side-channel exfiltration remain possible. Additionally, restricting untrusted principals from running arbitrary SELECT queries with user-controlled WHERE clauses can reduce risk. Employing namespace or database isolation as the primary security boundary is recommended since the vulnerability affects only table-level permission enforcement.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-98fx-66cf-fc7c
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63755"]
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9c2644acd9273b49fc9c38
Added to database: 09/05/2026, 14:25:08 UTC
Last enriched: 09/07/2026, 14:23:31 UTC
Last updated: 10/18/2026, 18:48:22 UTC
Views: 23
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.