{"id":"CVE-2026-63755","published":"2026-07-20T12:04:46Z","modified":"2026-10-08T15:23:50Z","title":"SurrealDB before 3.1.0 Permission Bypass via WHERE Clause","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00361,"percentile":0.30635,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-98fx-66cf-fc7c","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-permission-bypass-via-where-clause","tags":["third-party-advisory"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":6.13},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["< 3.1.0"]}],"fixedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["3.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T13:47:26.470629Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"surrealdb","vulnerableRanges":["<3.1.0"],"patched":["3.1.0"],"from":["GHSA-98fx-66cf-fc7c"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45926","exploited":false,"provenance":"source"}}