Description
SurrealDB from 3.2.0 before 3.3.4 contains an authorization bypass vulnerability that allows record users to update protected rows by exploiting table-level PERMISSIONS FOR update predicates referencing COMPUTED fields. Because check_update_permissions evaluates the predicate before computed fields are populated, the field reads as NONE and deny-intended predicates like blocked != true pass, letting attackers modify records.
Affected products and versions
surrealdb surrealdb3.2.0 – < 3.3.4Fixed in: 3.3.4
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- High impact
- Availability
- None
Weakness type (CWE)
- CWE-863 Incorrect Authorization
References
- github.com/surrealdb/surrealdb/security/advisories/GHSA-f6h4-5xf2-86q9 vendor advisory
- www.vulncheck.com/advisories/surrealdb-3.2.0-before-3.3.4-authorization-bypass-via-compute
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.