Skip to main content

SurrealDB EUVDEUVD-2026-45915

| CVE-2026-63744 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-20 disclosure@vulncheck.com GHSA-2jqm-x3hr-jjmq
5.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Recon
    Obtain Owner-level database credentials
  2. Delivery
    Define JWKS access method pointing to allowlisted attacker host
  3. Exploit
    Trigger JWKS fetch via authentication attempt
  4. Install
    Attacker host returns 3xx redirect to blocked internal target
  5. C2
    SurrealDB follows redirect without re-validating capabilities
  6. Execute
    Blind GET issued to internal address
  7. Impact
    Infer 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 DEFINE ACCESS ... TYPE JWT URL or DEFINE ACCESS ... TYPE RECORD ... WITH JWT URL. The attacker must additionally control an external host that is already present on the --allow-net allowlist and is capable of issuing an HTTP 3xx redirect response pointing to an otherwise-blocked target address. The SSRF is blind: the server's HTTP response body is processed only as a JWKS document, and any non-JWKS response produces an opaque InvalidAuth error with no content surfaced to the caller - precluding data exfiltration. Exploitation is further bounded by a 1-second fetch timeout and produces no write or availability impact. SurrealDB instances that do not configure remote JWKS URLs (i.e., those using locally defined keys exclusively) are not affected. Unauthenticated users, Viewer-role users, and Editor-role users cannot trigger this code path.

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 InvalidAuth error with no data returned to the caller - making data exfiltration impossible; only timing-based host and port probing is feasible. No EPSS score was provided in the input data; exploitation probability is inferred as low given the PR:H requirement. KEV status is not confirmed by CISA, and no POC exploit is referenced in any source. SSVC signals point to low urgency: exploitation requires compromised operator-level credentials, the attack is not automatable at scale, and technical impact is bounded by blind GET semantics and a 1-second fetch timeout. This is a genuine security control bypass but a considerably lower operational priority than unauthenticated or response-reading SSRF vulnerabilities.

Exploit ScenarioDerived

An attacker who has obtained Owner-level database credentials executes DEFINE ACCESS myaccess TYPE JWT URL 'https://attacker-controlled.example.com/jwks.json', where attacker-controlled.example.com is already allowlisted via --allow-net. When SurrealDB's JWKS fetcher makes its outbound GET, the attacker's server returns an HTTP 302 redirect to http://169.254.169.254/latest/meta-data/ (cloud instance metadata). SurrealDB follows the redirect without re-checking capabilities, issuing a blind GET to the metadata endpoint; the attacker infers internal host liveness and port availability through response timing differences, bounded by the 1-second timeout. No POC exploit code is publicly available at time of analysis.

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

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

surrealdb 0 <3.1.5

Affected Packages

cargo surrealdb fix: 3.1.5

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

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

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.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

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

Lifecycle Timeline

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

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

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
niche multi-model database, limited enterprise production footprint
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