SurrealDB 3.0.0 before 4.0.0 Path Traversal in Direct Filesystem Buckets
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 21, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 20, 2026
Description
SurrealDB 3.0.0 before 4.0.0 contains a path traversal vulnerability in direct filesystem buckets because BucketController::check_permission evaluates key-based ACLs against the un-normalized object key, while FileStore::to_os_path collapses '..' sequences without a traversal check. An authenticated tenant permitted only for certain keys can supply a key such as /public/../private/confidential.txt to read, write, or delete arbitrary files within the storage root.
| Product | Versions |
|---|---|
| surrealdb surrealdb | 3.0.0 to before 4.0.0 Affected4.0.0 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 8.8 High | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- GitHub Security Advisory (GHSA-cph5-pm57-9w9c)Vendor Advisory
- VulnCheck Advisory: SurrealDB 3.0.0 before 4.0.0 Path Traversal in Direct Filesystem BucketsThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.