Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIssue filesystem-bucket operation to SurrealDB
-
DeliveryReference key path via in-bucket symlink
-
ExploitPass lexical root prefix check
-
ExecutionResolve outside canonical root
-
ImpactRead or write arbitrary host files
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires the SurrealDB filesystem storage bucket backend to be in use, and - critically - a pre-existing symbolic link inside the bucket root that points outside it (e.g. <root>/link -> /etc); the attacker then references a path through that link (such as /link/secret) so it satisfies the path.starts_with(root) lexical check. The attacker must be able to invoke bucket operations (to_os_path/get/put/copy/rename/list). The dominant limiting factor is the required pre-existing descendant symlink: without one already present in the bucket, the lexical prefix check cannot be bypassed. The fix commit also references Windows backslashes and direct-bucket keys as related bypass vectors. Impact is bounded by the filesystem privileges of the SurrealDB process. |
| Impact | The supplied CVSS 4.0 base score is 8.7 (High), driven by AV:N/AC:L/AT:N/PR:N/UI:N with VC:H and VI:N/VA:N - i.e. the official vector models confidentiality impact only. This conflicts with the GHSA/VulnCheck description, which explicitly states attackers can both read AND write files across the host filesystem; integrity impact appears understated in the provided vector (write capability should map to a High integrity impact). No EPSS score, KEV entry, or PoC/exploit reference is present in the input, so there is no public-exploitation signal: this is not confirmed actively exploited and no public exploit is identified. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious but non-emergency item. Real risk is materially gated by a precondition the description makes clear: a pre-existing symbolic link must already exist inside the bucket root pointing outside it (e.g. <root>/link -> /etc). Where no such descendant symlink exists, the lexical prefix check is not bypassable, so this is a genuine high-severity containment escape rather than a universally-triggerable remote flaw - but in affected deployments (SurrealDB 3.0.0 to <4.0.0 using the filesystem storage bucket) the impact (arbitrary host-filesystem read/write) is severe. |
| Exploit ScenarioDerived | An attacker able to issue filesystem-bucket operations against a SurrealDB 3.x instance references a key path that traverses a symbolic link already present inside the bucket directory (for example a <root>/link -> /etc link), so a request for /link/passwd passes the lexical starts_with(root) check. Because only the bucket root - not descendant symlinks - is canonicalized, the operation resolves outside the bucket, letting the attacker read sensitive host files or write/overwrite files across the filesystem with the privileges of the SurrealDB process. No public exploit code is identified in the available sources; the issue is documented in the vendor GHSA advisory and a VulnCheck advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read and write files outside the configured bucket root by following a pre-existing symlink inside that root. The flaw is exploitable only when the filesystem storage backend is used and a descendant symlink already points outside the bucket, allowing a path such as /link/secret to pass a lexical prefix check. The independent assessment rates it CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N, and no public exploit identified at time of analysis, with no CISA KEV entry supplied.
RemediationAI
Upgrade to SurrealDB 4.0.0 or later; the vendor advisory GHSA-7pqw-x84x-frxc confirms 4.0.0 and later are not affected, and fix commit 5edf982bf0 canonicalizes the deepest existing ancestor of a filesystem bucket key and rechecks it against the canonical root so an in-bucket symlink can no longer redirect operations outside the bucket. Until upgrading, audit filesystem bucket roots and remove any symlink that points outside the root, since exploitation depends on such a pre-existing descendant symlink, and limit the SurrealDB process's filesystem privileges to bound the impact; these are compensating measures rather than a replacement for the patch. See https://github.com/surrealdb/surrealdb/security/advisories/GHSA-7pqw-x84x-frxc and https://www.vulncheck.com/advisories/surrealdb-3.0.0-before-4.0.0-path-traversal-via-filesystem-bucket-symlinks.
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
SurrealDB's filesystem storage bucket implementation in surrealdb/core/src/buc/store/file.rs handles bucket operations including to_os_path, get, put, copy, rename, and list. Its containment assertion canonicalizes only the bucket root and then performs a lexical path.starts_with(&self.root) check; because descendant symlinks are not resolved, an in-bucket link such as <root>/link -> /etc lets a request for /link/secret satisfy the prefix check and escape the bucket. This is CWE-59 link following. Exploitation requires the filesystem bucket backend to be in use, the ability to invoke bucket operations, and, critically, a pre-existing symlink inside the bucket root that points outside it; the independent assessment notes that without such a link the lexical prefix check cannot be bypassed. The fix canonicalizes the deepest existing ancestor of a filesystem bucket key and rechecks it against the canonical root, and the commit also addresses Windows backslashes and direct-bucket keys as related bypass vectors.
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:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
AC:H because a pre-existing in-bucket symlink pointing outside the root is required; PR:L as bucket operations typically need query access; C:H and I:H since the advisory confirms arbitrary host-file read and write.
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 its filesystem storage bucket that only canonicalizes the bucket root, not descendant symlinks. Attackers can reference paths through a pre-existing symlink inside the bucket that pass the lexical prefix check, reading and writing files across the host filesystem.
Technical POC Analysis
CWE-59 (Link Following).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity path traversal flaw in SurrealDB 3.0.0 through 3.x releases (fixed in 4.0.0) can let a user with bucket-operation access read and write files outside the configured storage root, but only when the filesystem backend is in use and a pre-existing symlink already points outside the bucket. Data confidentiality and integrity are both at risk for deployments using the filesystem storage backend; leadership should care because dependent teams may be relying on SurrealDB 3.x for application data with organizational sensitivity.
No vendor-released patch identified at time of analysis; interim mitigations are to restrict bucket-operation access to a minimal set of accounts, remove or reject any symlinks within bucket roots that point outside the root, and switch away from the filesystem storage backend where feasible until the 4.0.0 upgrade can be completed.
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
Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0
Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an
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-132234
GHSA-g48r-q9wv-qhhm
NVD
CVE.org
EPSS
Exploit-DB