CVE-2026-134295
Deferred Deferred - Pending Action

Path Traversal in SurrealDB Direct Filesystem Buckets

Vulnerability report for CVE-2026-134295, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
surrealdb surrealdb From 3.0.0 (inc) to 3.9.99 (inc)
surrealdb surrealdb to 4.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

SurrealDB 3.0.0 before 4.0.0 has a path traversal flaw in direct filesystem buckets. The BucketController::check_permission function checks permissions against un-normalized keys while FileStore::to_os_path collapses '..' sequences without validating traversal. This allows authenticated users with limited key permissions to craft keys like '/public/../private/confidential.txt' to access, modify, or delete arbitrary files within the storage root.

Detection Guidance

To detect this vulnerability, check if your SurrealDB instance is running version 3.0.0 through 3.9.99. Use commands like 'surreal version' or inspect the running process. Verify if direct filesystem buckets are enabled by reviewing configuration files for 'bucket' settings pointing to filesystem paths.

Impact Analysis

An attacker with authenticated access could read sensitive files, overwrite critical data, or delete files outside their permitted key boundaries. This could lead to data breaches, system instability, or unauthorized modifications to application files.

Compliance Impact

This vulnerability could violate GDPR by exposing personal data or HIPAA by allowing unauthorized access to protected health information. Organizations using affected SurrealDB versions may fail compliance audits due to inadequate file access controls and potential data leaks.

Mitigation Strategies

Upgrade SurrealDB to version 4.0.0 or later immediately. If upgrading is not possible, disable direct filesystem buckets in the configuration or restrict network access to the SurrealDB instance to trusted users only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134295. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...