SurrealDB
SurrealDB before 2.3.6 deny-net Bypass via DNS Resolution
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 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
Fixed in 2.2.6, 2.3.6
Mitigation
Upgrade surrealdb to 2.2.6 or 2.3.6 or later.
References
- Vendor advisory github.com/surrealdb/surrealdb/security/adviso…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.