Skip to main content

SurrealDB CVE-2026-134295

| EUVDEUVD-2026-132238 HIGH
Path Traversal (CWE-22)
2026-11-21 VulnCheck GHSA-mm4j-wgqm-p565
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as key-scoped tenant
  2. Delivery
    Craft object key with ../ traversal
  3. Exploit
    ACL checks un-normalized key and passes
  4. Execution
    Backend collapses ../ to escape key boundary
  5. Impact
    Read/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.

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

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

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

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

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

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
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 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.7%
Top 45% exploitable
Prevalence
Medium
popular open-source multi-model database, growing adoption but not yet ubiquitous enterprise footprint
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
No
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-134291 HIGH
8.7 Nov 21

Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read

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