Skip to content

CVE-2025-71391 SurrealDB before 2.2.2 Denial of Service via /sql endpoint

HighCVSS 7.1 EPSS 0.56%
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 an uncaught exception vulnerability in the net module that allows authenticated users to crash the database. Attackers can send crafted HTTP queries containing null bytes to the /sql endpoint, causing an unhandled exception that crashes the SurrealDB instance and any dependent applications.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
crates.io surrealdb < 2.0.5; >= 2.1.0, < 2.1.5; >= 2.2.0, < 2.2.2 2.0.5, 2.1.5, 2.2.2 Fixed
crates.io surrealdb(crates.io) < 2.0.5; >= 2.1.0, < 2.1.5; >= 2.2.0, < 2.2.2 2.0.5, 2.1.5, 2.2.2 Fixed
surrealdb < 2.2.2 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.0, < 2.1.5 2.1.5
crates.io surrealdb(crates.io) < 2.0.5 2.0.5
crates.io surrealdb >= 2.2.0, < 2.2.2 2.2.2
crates.io surrealdb >= 2.1.0, < 2.1.5 2.1.5
crates.io surrealdb < 2.0.5 2.0.5
surrealdb < 2.2.2 2.2.2

References