SurrealDB 3.0.0 before 4.0.0 Path Traversal via Windows Backslashes in Bucket Keys

State
Published
Severity
8.7 High
Published
Nov 21, 2026
Updated
Nov 23, 2026
Reserved
Nov 20, 2026

Read the record on cve.org

Description

SurrealDB 3.0.0 before 4.0.0 contains a path traversal vulnerability in its bucket storage layer on Windows, where ObjectKey::check_no_traversal splits object keys only on forward slashes while FileStore::to_os_path treats backslashes as directory separators. Attackers can supply object keys such as /..\bucket2\secret to bypass the traversal check and read or modify files in other buckets.

ProductVersions
surrealdb surrealdb3.0.0 to before 4.0.0 Affected4.0.0 Not Affected

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.