Quick answers
- Is CVE-2026-63740 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-63740 being exploited in the wild.
- How severe is CVE-2026-63740?
- Medium severity, with a CVSS score of 6.5, published 20 July 2026.
- Which products and versions are affected?
- surrealdb (crates.io) <= 3.1.3, SEMVER:introduced=0,fixed=3.1.4.
- Is there a fix for CVE-2026-63740?
- Yes. surrealdb (crates.io): upgrade to 3.1.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-63740 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-63740?
- Check whether you run surrealdb (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- surrealdb (crates.io): upgrade to 3.1.4 or later
cargo update -p surrealdb
Technical details
The vulnerability is an incorrect authorization flaw (CWE-863) in SurrealDB's permission filter logic. When a `SELECT` permission is defined on array elements using `DEFINE FIELD field.* PERMISSIONS FOR select`, the filter in three code paths (doc/reduce.rs, doc/output.rs, exec/operators/scan/pipeline.rs) removes denied elements by index while iterating forward through the array. Because array removal shifts all subsequent indices down by one, the loop's remaining index references become invalid, leaving some denied elements in the result. The attack requires the attacker to already have SELECT access to the table and a valid record session; root and owner sessions are not affected. The fix (commit 8f89b260b) processes removals in reverse index order to prevent index invalidation. Field-level permissions remain correctly enforced.
Affected products
- SurrealDB SurrealDB <= 3.1.3
Identifiers
- CVE-2026-63740
- GHSA-8rw6-p7m8-63jp
Timeline
- 2026-06-10: disclosed: Published to GitHub Advisory Database
- 2026-08-14: patched: Fix included in SurrealDB 3.1.4