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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.8
- **CVSS:** 5.8 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:H/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.45% (percentile 31, 2026-11-28)
- **CWE:** CWE-863
- **Aliases:** GHSA-m3c3-78fh-w3w7
- **Published:** 2026-07-18T13:10:10.319Z
- **Modified:** 2026-09-29T19:10:00.160Z

## Who should check

- Projects that depend on crates.io package SurrealDB (\>= 2.1.0, \< 2.1.8)
- Anyone running 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

## 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.

## Affected and fixed versions

- crates.io `SurrealDB`: affected \>= 2.1.0, \< 2.1.8; fixed 2.1.8, 2.2.6, 3.0.0-alpha.7, 2.3.6 (osv)
- 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 (cvelist)

## Mitigation

- Upgrade SurrealDB to one of 2.1.8, 2.2.6, 3.0.0-alpha.7, 2.3.6 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-71390. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71390.md
Affected: SurrealDB >= 2.1.0, < 2.1.8
Fixed in: 2.1.8, 2.2.6, 3.0.0-alpha.7, 2.3.6

Steps:
1. Search this machine and project for SurrealDB (crates.io), surrealdb: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-71390 being exploited?

There is no confirmed exploitation: CVE-2025-71390 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-71390?

Medium: CVSS 5.8 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2025-71390?

SurrealDB \>= 2.1.0, \< 2.1.8.

### Is there a fix for CVE-2025-71390?

Yes. Fixed in 2.1.8, 2.2.6, 3.0.0-alpha.7, 2.3.6. Upgrade SurrealDB to one of 2.1.8, 2.2.6, 3.0.0-alpha.7, 2.3.6 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-71390?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-71390>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m3c3-78fh-w3w7> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-71390> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-71390>
