Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker authenticates to SurrealDB instance
-
DeliveryInvokes http::* targeting attacker-controlled allowed hostname
-
ExploitAttacker server returns 3xx redirect to denied host:port
-
InstallRedirect policy strips port from NetTarget
-
C2Port-scoped deny rule silently bypassed
-
ExecuteSurrealDB sends request to blocked internal service
-
ImpactAttacker reads or influences denied endpoint
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Three specific conditions must hold simultaneously: (1) the attacker must be an authenticated SurrealDB principal - PR:L in the CVSS vector confirms authentication is required; (2) the operator must have configured at least one port-scoped |
| Impact | The CVSS 4.0 score of 5.3 with AV:N/AC:L/AT:N/PR:L/UI:N reflects network-reachable, low-complexity exploitation by any authenticated principal - an accurate characterization of the realistic attack surface. Exploitation is bounded by two meaningful preconditions: the attacker must be authenticated with |
| Exploit ScenarioDerived | An authenticated SurrealDB user with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Server-Side Request Forgery via HTTP redirect in SurrealDB before 3.1.0 allows authenticated users to circumvent port-scoped --deny-net network restriction rules. When an http::* function call targets an allowed hostname that responds with a 3xx redirect to a denied host:port, the redirect policy in core/src/fnc/util/http/mod.rs constructs the redirect NetTarget from url.host_str() alone - silently discarding the port - causing the capability matcher to skip port-specific deny rules entirely. No public exploit has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.
RemediationAI
Upgrade to SurrealDB 3.1.0 or later, which patches the redirect policy in core/src/fnc/util/http/mod.rs to include url.port() when constructing the NetTarget for redirect destinations, ensuring port-specific deny rules apply identically to initial requests and redirects. The fix is documented in the GitHub Security Advisory GHSA-97vg-427p-8hx5 and is traceable to commit ceb1ca3a1 in the SurrealDB repository. For deployments where an immediate upgrade is not feasible, the official workaround is to replace all port-specific deny rules (--deny-net host:port) with host-only rules (--deny-net host); note that this broadens the denial scope to all ports on the affected host, which may inadvertently block legitimate traffic on other ports and requires careful review of existing allow-net rules. A secondary compensating control is to restrict http::* invocation privileges to the minimum set of fully trusted principals, reducing the attacker pool without changing network policy.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SurrealDB exposes a family of http::* built-in query functions that allow database principals to initiate outbound HTTP requests. Operators constrain reachable network targets using --allow-net and --deny-net capability flags, which can be scoped to a bare host or to a specific host:port combination. The root cause is CWE-918 (Server-Side Request Forgery): on receiving a 3xx redirect response, the redirect policy in surrealdb/core/src/fnc/util/http/mod.rs builds a NetTarget solely from url.host_str(), discarding url.port(). The capability matcher in surrealdb/core/src/dbs/capabilities.rs (lines 259-264) contains a match arm Self::Host(host, Some(port)) => match tgt { _ => false } that unconditionally returns false when the evaluated target carries no port, meaning any deny rule expressed as --deny-net host:port silently fails to fire against redirect destinations. Host-only deny rules (--deny-net host) are unaffected because their matcher arm accepts port-stripped targets.
Know when Surrealdb gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Authenticated network exploitation with low complexity; scope changes because redirect bypass reaches subsequent internal systems; no availability impact from the bypass itself.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.org
SurrealDB before 3.1.0 contains a capability bypass vulnerability in HTTP redirect handling that allows authenticated users to circumvent port-scoped --deny-net rules. Attackers can chain an HTTP redirect from an allowed hostname to a denied host:port combination, and the redirect is followed because the port information is dropped during redirect policy evaluation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica
SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed
Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act
Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo
SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow
Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an
Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read
SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete
Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a
Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web
Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi
EUVD-2026-45914
GHSA-vq7c-3hc9-m5hr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB