Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as key-scoped tenant
-
DeliveryCraft object key with ../ traversal
-
ExploitACL checks un-normalized key and passes
-
ExecutionBackend collapses ../ to escape key boundary
-
ImpactRead/write/delete arbitrary file in storage root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires: (1) a direct filesystem bucket configured with the file:// backend - the flaw is specific to direct FileStore, as the traversal check (check_no_traversal) was only present on PrefixedStore; (2) an authenticated tenant (PR:L) holding key-based ACL permissions scoped to a subset of keys (e.g. only /public/); and (3) affected SurrealDB versions 3.0.0 up to but not including 4.0.0. Exploitation is LIMITED by the authentication requirement (a valid tenant credential is needed - not anonymous) and by the storage root boundary (the traversal escapes the key-based ACL but resolves within the storage root, not the entire host filesystem). Deployments not using direct file:// buckets, or using PrefixedStore, are not exposed via this path. |
| Impact | This is a credible, prioritize-this-week issue rather than a theoretical high-CVSS flaw, but exploitation is bounded. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H, 8.7) indicates a network-reachable, low-complexity attack requiring low privileges - consistent with the description, which states an *authenticated tenant* is needed. So this is not an unauthenticated internet-wide bug; the attacker must already hold a valid, key-scoped tenant credential on the SurrealDB instance. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed working exploit were provided in the input, so there is no signal of active exploitation - the urgency derives from the clear root cause and the high integrity/availability impact (arbitrary read/write/delete within the storage root), not from observed in-the-wild use. Reported by VulnCheck and confirmed by a vendor GHSA advisory with an identified fix commit, the technical validity is well established; the limiting factor is the authentication requirement and the need for a direct file:// bucket to be configured. Net: real priority for any deployment using direct filesystem buckets with multi-tenant key ACLs, but lower real-world blast radius than the raw 8.7 suggests because PR:L gates it. |
| Exploit ScenarioDerived | An authenticated tenant whose ACL grants access only to keys under /public/ requests an object key like /public/../private/confidential.txt. Because BucketController::check_permission evaluates the ACL against the raw un-normalized key while FileStore::to_os_path later collapses the '..' via path cleaning, the request passes the permission check and resolves to a file outside the tenant's permitted boundary, allowing it to be read, overwritten, or deleted. No public working exploit was identified at time of analysis, though the vendor advisory describes the exact triggering key. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets and read, write or delete files outside their permitted key prefix, up to the configured storage root. A tenant whose permissions cover only a prefix such as /public/ can supply a key like /public/../private/confidential.txt that passes permission evaluation but resolves outside the granted namespace. Exploitation requires a valid tenant credential and a bucket configured with the direct file:// backend; no public exploit code was identified at time of analysis, and the vendor has fixed the flaw in SurrealDB 4.0.0.
RemediationAI
Upgrade to SurrealDB 4.0.0 or later, the release that contains the fix; the patch commit 5edf982bf0 ("fix(buc): filesystem bucket path traversal via symlinks, Windows backslashes, and direct-bucket keys") runs the traversal check on the key itself for direct file:// buckets so a '..' key can no longer cross the bucket's key-based ACL boundary. Confirm the upgrade against the vendor advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-cph5-pm57-9w9c and the VulnCheck advisory at https://www.vulncheck.com/advisories/surrealdb-3.0.0-before-4.0.0-path-traversal-in-direct-filesystem-buckets. Where upgrading cannot be done immediately, the exposure is bounded in two ways that can be used to scope the risk: deployments that do not use direct file:// filesystem buckets, and deployments whose buckets are served through PrefixedStore (which already applies check_no_traversal), are not reachable through this path - migrating a direct filesystem bucket to a prefixed configuration removes the vulnerable code path at the cost of a bucket layout/migration change. Note that even when exploited, the traversal resolves within the configured storage root rather than the entire host filesystem, and a valid tenant credential with key-scoped permissions is required, so restricting which tenants may hold credentials for direct filesystem buckets reduces the attacker pool but does not repair the underlying authorization bypass.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a canonicalization/authorization ordering error (CWE-22) inside SurrealDB's bucket subsystem, written in Rust. In surrealdb/core/src/buc/controller.rs, BucketController::check_permission evaluates key-based ACLs against the object key exactly as supplied, before any path normalization. The direct filesystem backend in surrealdb/core/src/buc/store/file.rs then converts that key to an OS path in FileStore::to_os_path using path cleaning that collapses '..' components - and unlike the PrefixedStore implementation, FileStore never calls check_no_traversal. The result is that a key containing relative directory components is authorized against its literal prefix but resolved against its normalized destination. Because the escape happens at path resolution inside the storage root, an authorized-but-scoped tenant can reach sibling directories such as /private/ that its ACL never granted, affecting confidentiality, integrity and availability of the stored objects (CVSS:4.0 base 8.7 with PR:L). The CPE cpe:2.3:a:surrealdb:surrealdb (all versions matched by the advisory range) and the Rust package rust/surrealdb (< 4.0.0, fixed in 4.0.0) identify the affected code base; PrefixedStore-backed buckets carry the traversal check and are not exposed through this path.
Know when Surrealdb gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Authenticated tenant required so PR:L; network-reachable key input with no user interaction gives AV:N/AC:L/UI:N; read/write/delete of arbitrary files yields C:H/I:H/A:H within one component, so S:U.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-22 (path traversal), caused by an ordering/normalization mismatch between the ACL check and the path resolution step in SurrealDB's direct filesystem bucket backend.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SurrealDB versions 3.0.0 through 3.x contain a high-severity path traversal vulnerability that allows authenticated tenants to escape their key-based ACL boundaries in direct filesystem buckets. This could let a malicious or compromised tenant read, write, or delete files outside their permitted prefix, potentially exposing or corrupting sensitive data stored on the same filesystem. Leadership should care because it undermines tenant isolation and data confidentiality, though exploitation requires valid credentials and a specific bucket configuration.
If immediate patching is not possible, restrict the use of direct file:// backend buckets to trusted tenants only, enforce strict validation of tenant keys to block path traversal sequences (e.g., '..'), and implement monitoring for anomalous file access patterns. Apply vendor patch (upgrade to SurrealDB 4.0.0) as soon as feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica
SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed
Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act
SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow
Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi
Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the
Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read
Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0
Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo
SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete
EUVD-2026-132238
GHSA-mm4j-wgqm-p565
NVD
CVE.org
EPSS
Exploit-DB