Path Traversal Vulnerability in SurrealDB on Windows
CVE-2026-134294
8.7HIGH
What is CVE-2026-134294?
SurrealDB versions prior to 4.0.0 exhibit a path traversal vulnerability due to improper handling of object keys in its bucket storage layer on Windows systems. The vulnerability arises because the ObjectKey::check_no_traversal function only splits object keys using forward slashes, while the FileStore::to_os_path function considers backslashes as directory separators. This inconsistency can be exploited by attackers providing crafted object keys, such as '/..\bucket2\secret', allowing them to bypass traversal checks and gain unauthorized access to files in other buckets. This could lead to data disclosure or modification, posing significant security risks.
Affected Version(s)
surrealdb 3.0.0 < 4.0.0
surrealdb 4.0.0
