Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. CVE-2025-71390

CVE-2025-71390: SurrealDB allows bypass of deny-net flags via DNS resolution

September 4, 2026

SurrealDB offers http functions that can access external network endpoints. A typical, albeit not recommended configuration would be to start SurrealDB with all network connections allowed with the exception of a deny list. For example, surreal start --allow-net --deny-net 10.0.0.0/8 will allow all network connections except to the 10.0.0.0/8 block.

An authenticated user of SurrealDB can use bypass this restriction, using http::<fn>(<url>) functions where the hostname resolves to an IP within the --deny-net block. For example if a SurrealDB administrator wanted to restrict access to other services within a private network and thus set the --deny-net to a network IP range, this could be circumvented by an attacker leveraging DNS records and hostname resolution.

When sending SurrealDB statements containing the http::* functions, if the hostname resolves to a forbidden IP, the SurrealDB server will still issue the request and return the responses to the attacker.

References

  • github.com/advisories/GHSA-m3c3-78fh-w3w7
  • github.com/surrealdb/surrealdb/commit/4b317d850c7dabaee228144423741097232f7955
  • github.com/surrealdb/surrealdb/commit/7c574dfa90211923e2ff1b12510c8479f8805b3d
  • github.com/surrealdb/surrealdb/commit/b80d7d08b043c0e4bc0b7ff8ddb9be0907c0bf59
  • github.com/surrealdb/surrealdb/commit/d5dc46f1c255ed450b3af025a0bdc165b6ce54a3
  • github.com/surrealdb/surrealdb/pull/6101
  • github.com/surrealdb/surrealdb/pull/6119
  • github.com/surrealdb/surrealdb/pull/6120
  • github.com/surrealdb/surrealdb/pull/6121
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-m3c3-78fh-w3w7
  • nvd.nist.gov/vuln/detail/CVE-2025-71390
  • www.vulncheck.com/advisories/surrealdb-before-deny-net-bypass-via-dns-resolution

Code Behaviors & Features

Detect and mitigate CVE-2025-71390 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 2.1.8, all versions starting from 2.2.0 before 2.2.6, all versions starting from 2.3.0 before 2.3.6, all versions starting from 3.0.0-alpha.1 before 3.0.0-alpha.7

Fixed versions

  • 2.1.8
  • 2.2.6
  • 2.3.6
  • 3.0.0-alpha.7

Solution

Upgrade to versions 2.1.8, 2.2.6, 2.3.6, 3.0.0-alpha.7 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-923: Improper Restriction of Communication Channel to Intended Endpoints

Source file

cargo/surrealdb/CVE-2025-71390.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 06 Sep 2026 00:17:55 +0000.