Description
SurrealDB versions before 3.2.0 contain a permissions bypass vulnerability where data-modifying statements within PERMISSIONS clauses execute with enforcement disabled. Attackers with permission to perform a guarded operation can write to tables they lack permission for by embedding CREATE, UPDATE, DELETE, or UPSERT statements in the PERMISSIONS clause, causing unintended writes and data corruption.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| surrealdb | surrealdb | < 3.2.0 | 3.2.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | surrealdb-core | < 3.2.0 | 3.2.0 | GHSA-66r2-5gwj-gxm2 |
References
- GitHub Security Advisory (GHSA-66r2-5gwj-gxm2) vendor-advisory
- VulnCheck Advisory: SurrealDB before 3.2.0 Permissions Bypass via PERMISSIONS Clause third-party-advisory