Skip to main content

SurrealDB EUVDEUVD-2026-132234

| CVE-2026-134291 HIGH
Improper Link Resolution Before File Access (CWE-59)
2026-11-21 VulnCheck GHSA-g48r-q9wv-qhhm
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Issue filesystem-bucket operation to SurrealDB
  2. Delivery
    Reference key path via in-bucket symlink
  3. Exploit
    Pass lexical root prefix check
  4. Execution
    Resolve outside canonical root
  5. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

surrealdb 3.0.0 <4.0.0

Affected Packages

euvd surrealdb fix: 4.0.0

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:35 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.7%
Top 47% exploitable
Prevalence
Medium
popular modern multi-model database, growing adoption but not yet ubiquitous in production
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2025-71392 CRITICAL
9.4 Jul 18

Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica

CVE-2026-134292 CRITICAL
9.3 Nov 21

SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed

CVE-2026-63756 CRITICAL
9.2 Jul 20

Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act

CVE-2026-134293 HIGH
8.8 Nov 21

SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow

CVE-2026-121417 HIGH
8.8 Nov 03

Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a

CVE-2026-63760 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web

CVE-2026-63747 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi

CVE-2026-63757 HIGH
8.7 Jul 20

Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the

CVE-2026-134294 HIGH
8.7 Nov 21

Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0

CVE-2026-134295 HIGH
8.7 Nov 21

Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an

CVE-2026-134299 HIGH
8.7 Nov 21

Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo

CVE-2026-134309 HIGH
8.7 Nov 21

SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy