Skip to content
Heist/ feed
High

SurrealDB before 3.1.0 Permission Bypass via WHERE Clause

Type: advisorySource: Official CVE List1 source record

SurrealDB before 3.1.0 evaluates user-supplied WHERE clauses in SELECT statements (and SET/MERGE/CONTENT/PATCH clauses in UPDATE, UPSERT, INSERT ON DUPLICATE KEY UPDATE, and RELATE update-variant statements) against full record data before enforcing PERMISSIONS FOR SELECT WHERE restrictions. An authenticated user — including Record and Scope users — can exploit this ordering flaw to read the full contents of any table in the database they are authenticated against, bypassing table-level permission checks. Exfiltration is most direct when scripting functions are enabled (--allow-scripting), but is also possible via SurrealQL's THROW statement and timing-based side channels without scripting. The vulnerability is confined to the attacker's current database and does not cross namespace or database isolation boundaries.

Announced Group revision 1
Original source ↗

CVE-2026-63755

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-63755

surrealdb

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "surrealdb",
    "product": "surrealdb",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "3.1.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "3.1.0",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:cargo/surrealdb",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-63755

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#12787 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement