Skip to main content

SurrealDB EUVDEUVD-2026-45914

| CVE-2026-63743 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-20 disclosure@vulncheck.com GHSA-vq7c-3hc9-m5hr
5.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker authenticates to SurrealDB instance
  2. Delivery
    Invokes http::* targeting attacker-controlled allowed hostname
  3. Exploit
    Attacker server returns 3xx redirect to denied host:port
  4. Install
    Redirect policy strips port from NetTarget
  5. C2
    Port-scoped deny rule silently bypassed
  6. Execute
    SurrealDB sends request to blocked internal service
  7. Impact
    Attacker 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 --deny-net host:port rule - installations using host-only --deny-net host rules or no deny rules at all are not affected by this specific bypass; (3) the authenticated user must have permission to invoke http::* functions, which is a separately grantable capability. Additionally, the attacker must control an HTTP server accessible via an --allow-net-permitted hostname that can issue a 3xx redirect pointing at the denied host:port. These conditions collectively limit the realistic attacker population to trusted-but-not-fully-trusted database users in multi-tenant or shared SurrealDB deployments. Unauthenticated exploitation is not possible.

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 http::* invocation privileges, and the operator must use port-specific --deny-net host:port syntax rather than host-only deny rules. The subsequent-system impact ratings (SC:L/SI:L) correctly capture that the primary damage is access to third-party internal services (e.g., Redis, cloud metadata endpoints) rather than to SurrealDB itself. No EPSS data was provided in the source intelligence, and the absence of a CISA KEV listing and any public proof-of-concept code suggests opportunistic exploitation at scale is unlikely at this time. However, the advisory's explicit example of bypassing protections around a cloud metadata service elevates the contextual risk in cloud-hosted deployments where SSRF to the metadata endpoint could expose credentials. No conflicting signals exist between CVSS and description - both indicate authenticated, network-initiated exploitation.

Exploit ScenarioDerived

An authenticated SurrealDB user with http::* function access sends a query calling http::get('https://allowed-hostname.example.com/redirect-me'), where allowed-hostname.example.com is attacker-controlled and responds with a 302 Location: http://192.168.1.1:6379/ pointing to an internal Redis instance listed in the operator's --deny-net rules. Because the port is stripped during redirect evaluation, the deny rule does not fire and SurrealDB follows the redirect to the Redis endpoint, exposing whatever interface it presents to the attacker. No public proof-of-concept code has been identified, but the attack is mechanically straightforward given the detailed source-level disclosure in the advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

surrealdb 0 <3.1.0

Affected Packages

cargo surrealdb fix: 3.1.0

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

Vendor (vulncheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 6.4 MEDIUM

Authenticated network exploitation with low complexity; scope changes because redirect bypass reaches subsequent internal systems; no availability impact from the bypass itself.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 20, 2026 - 15:33 EUVD

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

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
niche multi-model NewSQL database, limited broad enterprise adoption
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2025-71392 CRITICAL
9.4 Jul 18

Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica

CVE-2026-134292 CRITICAL
9.3 Nov 21

SurrealDB versions 1.0.0 through 3.x (before 4.0.0) fail to enforce built-in function capability checks inside the embed

CVE-2026-63756 CRITICAL
9.2 Jul 20

Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act

CVE-2026-134299 HIGH
8.7 Nov 21

Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSo

CVE-2026-134293 HIGH
8.8 Nov 21

SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow

CVE-2026-134295 HIGH
8.7 Nov 21

Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an

CVE-2026-134291 HIGH
8.7 Nov 21

Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read

CVE-2026-134309 HIGH
8.7 Nov 21

SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete

CVE-2026-121417 HIGH
8.8 Nov 03

Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a

CVE-2026-134294 HIGH
8.7 Nov 21

Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0

CVE-2026-63760 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web

CVE-2026-63747 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy