What’s Vulnerable › Vulnerabilities

CVE-2025-71394: SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER

Description

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 products

How to fix

Upgrade to a fixed version: surrealdb 2.1.5, 2.2.2; surrealdb 2.2.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-71394 or the next vulnerability affects your stack