CVE-2026-49997 SurrealDB: Edge PERMISSIONS FOR delete bypassed when a connected node is deleted
MediumCVSS 5.4
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
SurrealDB is a scalable, distributed, collaborative, document-graph database for the realtime web. Prior to 3.1.0, Document::purge_edges in surrealdb/core/src/doc/delete.rs automatically removed graph edge records with permissions disabled through opt.clone().with_perms(false) when a connected node was deleted, bypassing the edge table's PERMISSIONS FOR delete and PERMISSIONS FOR select clauses. This issue is fixed in version 3.1.0.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io surrealdb(crates.io) | < 3.1.0 | 3.1.0 | Fixed |
| surrealdb | = < 3.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io surrealdb(crates.io) | < 3.1.0 | 3.1.0 |
| surrealdb | = < 3.1.0 | No fix listed |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-whwg-vh4f-pmmf vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- https://github.com/surrealdb/surrealdb/commit/500f4060349580b9cbb9c07b8112a487551c4616 patch
- github.com patch
- github.com product
- https://github.com/surrealdb/surrealdb/releases/tag/v3.1.0
- github.com