Skip to content

CVE-2025-71390 SurrealDB before 2.3.6 deny-net Bypass via DNS Resolution

MediumCVSS 5.8 EPSS 0.45%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

SurrealDB before 2.2.6, 2.3.6, and 2.1.8 (and 3.0.0-alpha.7 and earlier) fails to validate DNS-resolved hostnames against --deny-net network access restrictions in its http::* functions. An authenticated user can invoke http::<fn>(<url>) with a hostname that resolves to a denied IP address, causing the server to issue the request anyway and return the response. This bypasses network access controls, allowing access to restricted internal endpoints and potentially retrieving or altering sensitive information and credentials, depending on the deployment.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
crates.io surrealdb <= 2.1.7; >= 2.2.0, < 2.2.6; >= 2.3.0, < 2.3.6; >= 3.0.0-alpha.1, <= 3.0.0-alpha.7 2.2.6, 2.3.6 Fixed
crates.io surrealdb(crates.io) >= 2.1.0, < 2.1.8; >= 2.1.0, <= 2.1.7; >= 2.2.0, < 2.2.6; >= 2.2.0, <= 2.2.5 +3 more 2.1.8, 2.2.6, 2.3.6, 3.0.0-alpha.6, 3.0.0-alpha.7 Fixed
surrealdb < 2.1.8; = 3.0.0-alpha1; = 3.0.0-alpha2; = 3.0.0-alpha3 +6 more 2.1.8, 2.2.6, 2.3.6 Fixed

Affected products

ProductAffected versionsFixed in
crates.io surrealdb(crates.io) >= 2.1.0, < 2.1.8 2.1.8
crates.io surrealdb(crates.io) >= 2.2.0, < 2.2.6 2.2.6
crates.io surrealdb(crates.io) >= 3.0.0-alpha.1, < 3.0.0-alpha.7 3.0.0-alpha.7
crates.io surrealdb(crates.io) >= 2.3.0, < 2.3.6 2.3.6
crates.io surrealdb(crates.io) >= 2.1.0, <= 2.1.7 No fix listed
crates.io surrealdb(crates.io) >= 2.2.0, <= 2.2.5 No fix listed
crates.io surrealdb(crates.io) >= 3.0.0-alpha.1, < 3.0.0-alpha.6 3.0.0-alpha.6
crates.io surrealdb <= 2.1.7 No fix listed
crates.io surrealdb >= 2.2.0, < 2.2.6 2.2.6
crates.io surrealdb >= 2.3.0, < 2.3.6 2.3.6
crates.io surrealdb >= 3.0.0-alpha.1, <= 3.0.0-alpha.7 No fix listed
surrealdb < 2.1.8 2.1.8
surrealdb >= 2.2.0, < 2.2.6 2.2.6
surrealdb >= 2.3.0, < 2.3.6 2.3.6
surrealdb = 3.0.0-alpha1 No fix listed
surrealdb = 3.0.0-alpha2 No fix listed
surrealdb = 3.0.0-alpha3 No fix listed
surrealdb = 3.0.0-alpha4 No fix listed
surrealdb = 3.0.0-alpha5 No fix listed
surrealdb = 3.0.0-alpha6 No fix listed
surrealdb = 3.0.0-alpha7 No fix listed

References