CVE-2025-71394

Summary

SurrealDB versions before 2.2.2 contain a local file read vulnerability in the DEFINE ANALYZER statement that allows authenticated users to read arbitrary files on the file system. Attackers with root, namespace, or database level privileges can point analyzers to arbitrary file paths and exfiltrate content from two-column tab-separated files.

Affected Software

VendorProductVersion RangeStatus
surrealdbsurrealdb0 < 2.2.2affected
surrealdbsurrealdb2.2.2unaffected
surrealdbsurrealdb0 < 2.1.5affected
surrealdbsurrealdb2.1.5unaffected

Weaknesses

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

References