Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain Owner-level database credentials
-
DeliveryDefine JWKS access method pointing to allowlisted attacker host
-
ExploitTrigger JWKS fetch via authentication attempt
-
InstallAttacker host returns 3xx redirect to blocked internal target
-
C2SurrealDB follows redirect without re-validating capabilities
-
ExecuteBlind GET issued to internal address
-
ImpactInfer host and port liveness via timing
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 | Exploitation requires the attacker to hold the Owner role at database level or above in SurrealDB - the minimum privilege needed to execute |
| Impact | The CVSS 4.0 score of 5.1 (Medium) accurately reflects the constrained threat model: PR:H (Owner role required) is a significant barrier, and the limited impact metrics (VC:L, SC:L) capture the blind-SSRF-only nature of exploitation. The vulnerability cannot be triggered by unauthenticated or low-privilege users. The SSRF is functionally blind - the fetched response is parsed only as a JWKS document, and any non-JWKS response surfaces as an opaque |
| Exploit ScenarioDerived | An attacker who has obtained Owner-level database credentials executes |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Blind SSRF in SurrealDB's JWKS fetcher before 3.1.5 allows Owner-role database principals to bypass network capability controls by chaining an allowlisted host redirect to blocked internal addresses. The JWKS client in core/src/iam/jwks.rs applies check_capabilities_url only to the originally configured URL, not to 3xx redirect targets, while the hardened HttpClient used by http::* functions already re-validates each hop since 3.1.0. Exploitation requires Owner-level credentials and yields only blind timing-based probing of internal hosts - no response body is returned - with no public exploit identified at time of analysis.
RemediationAI
Upgrade SurrealDB to version 3.1.5 or later; this is the only confirmed fix. In 3.1.5, the JWKS fetcher now applies a redirect policy that re-validates every redirect target against the configured network capabilities, mirroring the protection already in place for http::* functions since 3.1.0, and caps redirect depth at max_http_redirects. Vendor advisory: https://github.com/surrealdb/surrealdb/security/advisories/GHSA-h5rg-8p7f-47g2. If immediate upgrade is not feasible, apply network-layer egress filtering at the host or container boundary to block link-local ranges (169.254.0.0/16) and internal RFC-1918 addresses, ensuring redirect targets are unreachable regardless of in-process checks - note this requires tuning to avoid disrupting legitimate outbound traffic to cloud services. Additionally, restrict Owner-role grants strictly to trusted operators to reduce the set of principals who can define JWKS access methods; and configure all access methods to use only non-redirecting JWKS hosts or, preferably, locally defined keys rather than remote JWKS URLs, which eliminates the vulnerable fetch path entirely.
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 is a multi-model database written in Rust that supports JWT-based authentication via remotely fetched JSON Web Key Sets (JWKS). The fetcher in core/src/iam/jwks.rs uses a bare reqwest HTTP client, which follows HTTP redirects by default. The capability enforcement function check_capabilities_url validates --allow-net and --deny-net rules against the user-supplied JWKS URL at configuration time but is not re-applied to subsequent redirect hops. CWE-918 (Server-Side Request Forgery) captures this root cause: the server issues outbound HTTP requests to attacker-influenced destinations because redirect targets are not validated against the same network access control policy as the original URL. The protected HttpClient used by http::* built-in functions was hardened in SurrealDB 3.1.0 to re-validate every redirect hop, but the JWKS fetcher used a separate, unprotected client instance and was not included in that hardening, creating a gap between two code paths with differing security postures.
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:H/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Network-reachable but requires Owner role (PR:H); blind SSRF with scope change to internal systems (S:C) yields C:L; no integrity or availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.org
SurrealDB before 3.1.5 contains a server-side request forgery vulnerability in the JWKS fetcher that follows HTTP redirects without re-validating redirect targets against network capabilities. Attackers with Owner role can configure a JWKS URL pointing to an allowlisted host that redirects to blocked internal addresses, bypassing network access controls.
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-45915
GHSA-2jqm-x3hr-jjmq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB