Skip to content

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

LowCVSS 2.3 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
crates.io surrealdb < 2.1.5; >= 2.2.0, < 2.2.2 2.1.5, 2.2.2 Fixed
crates.io surrealdb(crates.io) < 2.1.5; >= 2.2.0, < 2.2.2 2.1.5, 2.2.2 Fixed
surrealdb < 2.1.5; >= 2.2.0, < 2.2.2 2.1.5, 2.2.2 Fixed

Affected products

ProductAffected versionsFixed in
crates.io surrealdb(crates.io) >= 2.2.0, < 2.2.2 2.2.2
crates.io surrealdb(crates.io) < 2.1.5 2.1.5
crates.io surrealdb >= 2.2.0, < 2.2.2 2.2.2
crates.io surrealdb < 2.1.5 2.1.5
surrealdb < 2.1.5 2.1.5
surrealdb >= 2.2.0, < 2.2.2 2.2.2

References