Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- Medium severity, with a CVSS score of 6.3, published 18 July 2026.
- Which products and versions are affected?
- surrealdb (crates.io) >= 2.0.0, < 2.1.4; Surrealdb-Core >= 2.0.0, < 2.1.4.
- Is there a fix for This vulnerability?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is This vulnerability attacked?
- It is attacked over the network, in a software library.
- Am I affected?
- Check whether you run surrealdb (crates.io) or Surrealdb-Core 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.
Technical details
This is an incorrect default permissions vulnerability (CWE-276) affecting the DEFINE TABLE statement implementation in SurrealDB. The root cause is that the OVERWRITE clause fails to properly update table definitions when the table is defined with TYPE RELATION, specifically failing to apply changes to the PERMISSIONS clause within those definitions. An authenticated attacker with the ability to execute queries can exploit this by attempting to request a permission change via the DEFINE TABLE ... OVERWRITE command; while the system responds as if the change succeeded, it silently fails to apply the tighter permissions, allowing the attacker to continue accessing data they should no longer have authorization for. The vulnerability requires network access and authenticated database query execution privileges. The issue was patched in version 2.1.4 and later.
Affected products
- SurrealDB surrealdb >= 2.0.0, < 2.1.4
- SurrealDB surrealdb-core >= 2.0.0, < 2.1.4
Timeline
- 2024-12-16: disclosed: Original advisory GHSA-27vq-hv74-7cqp published
- 2026-07-18: advisory: Duplicate advisory GHSA-vmg6-53r4-jhpw published
- 2026-09-04: other: Duplicate advisory GHSA-vmg6-53r4-jhpw withdrawn