Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with ML-export privileges
-
DeliveryCall ExportMl with absolute-URL model name
-
ExploitUrl::join redirects request to attacker host
-
ExecutionSession tokens and headers sent to attacker
-
ImpactReuse captured credentials for further access
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 | Requires an authenticated SurrealDB session (CVSS PR:L) with the ability to invoke the ML export commands Command::ExportMl or Command::ExportBytesMl, and an attacker-controlled model-name value that is an absolute URL. The flaw is in the remote HTTP client router where the raw model name is passed to Url::join without being constrained to a path segment. Limiting factors: the attacker must already hold valid low-privilege credentials and the privilege to run ML export; the deployment must be running a version before 4.0.0; and no end-user interaction is involved (UI:N). The token leakage only occurs via the ML export request path, so deployments that do not expose or use ML model export are not reachable through this vector. |
| Impact | This is a moderate-severity, authenticated SSRF with credential-leakage consequences rather than a drop-everything emergency. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) confirms network reachability and low attack complexity but requires at least low-level authentication (PR:L), so this is not an unauthenticated internet-wide threat. Exploitation status is 'no public exploit identified at time of analysis' - there is no CISA KEV listing and the input provides no confirmed working exploit code, only vendor/VulnCheck advisories describing the mechanism. No EPSS score was provided, so statistical exploitation likelihood cannot be quantified here. The vuln.today Decision label is 'this_month' (not act_now/emergency), aligning with the picture of a credible, patch-this-cycle issue rather than widespread active exploitation. The real-world ceiling is meaningful because the flaw leaks live SurrealDB session tokens to an attacker-controlled host, but the authentication prerequisite and the need to issue ML export commands keep practical risk bounded. Note one tension to verify: the vendor's 4.0 impact metrics mark vulnerable-system confidentiality VC:N while the described impact is explicitly 'credential disclosure of SurrealDB session tokens' - that token leakage reads as a confidentiality impact, so the VC:N rating appears conservative relative to the description. |
| Exploit ScenarioDerived | An authenticated SurrealDB user with permission to run ML export issues an ExportMl or ExportBytesMl command supplying an absolute URL (e.g. https://attacker.com/ml) as the model name. Because Url::join treats an absolute URL as a destination replacement rather than a path segment, the remote HTTP client reissues the request to the attacker's server with the current session's authentication tokens and headers attached, handing the attacker valid credentials and achieving authenticated SSRF. No public working exploit is identified at time of analysis, though the GHSA/VulnCheck advisories document the mechanism in detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Server-side request forgery in SurrealDB before 4.0.0 allows an authenticated session to redirect an ML model export request to an attacker-controlled origin, leaking the session's authentication tokens and headers to that host. The flaw sits in the remote HTTP client router, where a user-supplied model name is passed to Url::join; supplying an absolute URL such as https://attacker.com/ml replaces the destination origin instead of being treated as a path segment. Exploitation requires valid low-privilege credentials plus the ability to invoke the ExportMl or ExportBytesMl commands, and no public exploit has been identified at time of analysis; SurrealDB 4.0.0 contains a vendor patch that pins the export request to its intended host.
RemediationAI
Upgrade to SurrealDB 4.0.0 or later, which contains the vendor patch that pins an ML export request to its intended host (commit a44fca7d74, referenced in advisory GHSA-7r2m-g5wf-pj9j), so an authenticated request can no longer be redirected to another host; the CPE and EUVD data confirm 4.0.0 as the fixed version and the package metadata lists rust/surrealdb as vulnerable below 4.0.0 and fixed in 4.0.0. Because the vulnerability is only reachable through the ML export commands, deployments that cannot upgrade immediately should reduce exposure by restricting which identities are permitted to invoke ML model export and by reviewing the SurrealDB capabilities configuration documented at https://surrealdb.com/docs/surrealdb/security/capabilities, with the trade-off that disabling or limiting that capability removes ML export functionality for legitimate users; this is a compensating measure, not a substitute for the upgrade, and rotating any SurrealDB session tokens that may have been used on a system where ML export was performed with an untrusted model name is warranted given the credential-leakage impact.
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's remote HTTP client router (surrealdb/src/engine/remote/http/mod.rs, in the router as well as the Command::ExportMl and Command::ExportBytesMl handlers) builds the export endpoint by appending the raw model name to a base URL through the Rust url crate's Url::join. Under standard relative-reference resolution, an absolute URL is treated as a target replacement rather than a path segment, so a model name like https://attacker.com/ml resets the scheme and authority and causes the already-authenticated HTTP client to send the export request - including the current session's authentication tokens and headers - to the attacker's server. The issue is classified as CWE-918 (Server-Side Request Forgery), with the distinguishing consequence being credential disclosure rather than a purely internal network pivot. The documented fix pins an ML export request to its intended host so it can no longer be redirected; the advisory also recommends URL-encoding model names or using url.path_segments_mut() to force strict path-segment treatment. Note that the CVSS 4.0 vector in the CVE record and the independently assessed CVSS 3.1 vector agree on network attack, low privileges, no user interaction and changed scope, but the trigger conditions beyond the absolute-URL model name are not described in the available sources.
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:N/VI:L/VA:N/SC:L/SI:L/SA:L
Authenticated ML-export caller (PR:L) over the network with low complexity; SSRF redirects requests to another host (S:C) leaking session tokens (C:L) and redirecting authenticated requests (I:L), with no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
SurrealDB before 4.0.0 contains a server-side request forgery vulnerability in the remote HTTP client router that passes raw model names to Url::join during ML export. Attackers can supply an absolute URL as the model name in ExportMl or ExportBytesMl commands to redirect authenticated requests and capture session tokens.
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-136585
NVD
CVE.org
EPSS
GitHub
Exploit-DB