Skip to main content
EPSS 0.4%top 72%

SurrealDB: Scraping a TABLE with no available PERMISSIONS to current auth level (CVE-2026-63755)

0
Medium
Published: 07/01/2026 (07/01/2026, 20:06:08 UTC)
Source: GCVE Database
Product: surrealdb

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

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

Affected software

crates.ioghsa
surrealdb
Affected versions
<3.1.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, 14:23:31 UTC

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.

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-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 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