Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain SurrealDB Owner credentials
-
DeliveryCreate or modify access method with attacker-controlled JWKS URL
-
ExploitAdd or abuse allow-listed hostname pointing to attacker DNS
-
InstallConfigure DNS to resolve hostname to internal/loopback IP
-
C2Trigger token validation to force JWKS fetch
-
ExecuteServer issues GET to internal address
-
ImpactEnumerate internal network services via SSRF responses
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 SurrealDB Owner role, which is the highest privilege level in SurrealDB's role hierarchy - not a standard user or even an editor. The attacker must be able to create or modify access methods with custom JWKS URLs, and the targeted hostname must either already appear on the server's JWKS hostname allow-list or the attacker must have the ability to add it (which Owner role permits). The SSRF is limited to HTTP GET requests only, as JWKS fetching is a read operation; the attacker cannot issue POST/PUT/DELETE requests to internal services through this vector, ruling out write-based attacks on internal APIs. Environments where SurrealDB's network egress is restricted to public IP ranges or where Owner-role access is tightly controlled and audited are effectively protected against realistic exploitation beyond the patch. |
| Impact | The CVSS 4.0 score of 5.1 (Medium) is appropriate and the vector is internally consistent with the description. PR:H is the critical limiting factor: Owner is SurrealDB's highest privilege tier, so this vulnerability is only reachable by already-highly-privileged principals - significantly narrowing the realistic attack population. EPSS data was not supplied in the input and cannot be estimated. The impact is bounded: VC:L and SC:L indicate low confidentiality exposure, GET-only SSRF means no write-path to internal services, and there is no integrity or availability impact. There is no KEV listing and no public proof-of-concept code. The real-world priority depends heavily on deployment context: SurrealDB instances with Owner-role exposure to untrusted parties (multi-tenant SaaS, shared developer environments) and network adjacency to sensitive internal services face meaningful risk; isolated single-tenant deployments with tightly controlled Owner access face minimal residual risk after applying standard least-privilege controls. No conflicts between data sources were detected. |
| Exploit ScenarioDerived | An attacker who has gained SurrealDB Owner-level credentials - through credential theft, supply chain compromise of an admin account, or insider access - registers an attacker-controlled domain in (or finds one already in) the JWKS hostname allow-list and configures a new access method pointing to it. When SurrealDB next validates a token against that access method, it resolves the domain (which the attacker's DNS server points to an internal IP such as 192.168.1.1 or 169.254.169.254 for cloud metadata services) and issues a GET request to the internal address, returning the response to the attacker and enabling internal network topology enumeration. No public proof-of-concept code has been identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Server-Side Request Forgery in SurrealDB's JWKS fetcher allows an Owner-role attacker to weaponize the server as an internal network proxy. By configuring an access method with a JWKS URL whose hostname passes the string-based allow-list check but resolves via DNS to a private or loopback address, the attacker causes SurrealDB to issue GET requests to internal infrastructure that would otherwise be unreachable. No public exploit has been identified and no CISA KEV listing exists; exploitation is constrained by the requirement for Owner-level privileges, making this a meaningful but bounded risk in privileged-access-compromise scenarios.
RemediationAI
Upgrade SurrealDB to version 3.2.0 or later, which resolves the vulnerability by validating the resolved IP address against a blocklist of private and loopback ranges in addition to the hostname string check. The vendor advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-5x4x-2946-qr67 should be consulted for release notes. As a compensating control prior to patching, implement network-level egress filtering on the SurrealDB server host to block outbound connections to RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and loopback (127.0.0.0/8); note this may disrupt any legitimately configured internal JWKS endpoints. Additionally, audit all configured access method JWKS URLs to confirm they resolve only to public IP space, and restrict Owner-role assignment to the minimum necessary principals to reduce the likelihood of this path being reachable at all.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SurrealDB uses JWKS (JSON Web Key Set) endpoints to retrieve public keys for validating access method tokens - a standard pattern in OAuth/OIDC-adjacent authentication flows. The root cause is CWE-918 (Server-Side Request Forgery): the JWKS fetcher validates the URL's hostname component as a string against a configured allow-list but does not resolve the hostname to an IP address and verify that the resolved address is a public, routable IP. This is a classic DNS-rebinding-adjacent pattern - an attacker who controls DNS for an allow-listed hostname (or can register a hostname that was added to the allow-list) can serve responses that map the domain to RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or loopback (127.0.0.0/8). The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:H confirms the attack is network-reachable with no special attack requirements but mandates High privileges. No CPE strings were provided in the input data.
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
Owner-role requirement drives PR:H; scope change because SSRF reaches internal systems outside SurrealDB's security boundary; GET-only impact limits confidentiality to L with no integrity or availability effect.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.org
SurrealDB before 3.2.0 contains a server-side request forgery vulnerability in the JWKS fetcher that validates only the URL hostname string against allow-lists without checking resolved IP addresses. An Owner role attacker can point an access method at an allow-listed hostname resolving to private or loopback addresses, causing the server to issue GET requests to internal addresses that would be blocked by direct URL.
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-45907
GHSA-qrjc-jcj4-56p7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB