Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise SurrealDB Owner-role credentials
-
DeliveryCraft .surml file with non-numeric input-dimensions header
-
ExploitPOST malformed file to /ml/import endpoint
-
ExecutionHeader parser calls unwrap() on invalid numeric parse
-
PersistRust panic aborts server process
-
ImpactComplete denial of service for all databases on the instance
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires: (1) a valid SurrealDB Owner-role account - the highest privilege tier in SurrealDB, confirmed by PR:H in the CVSS 4.0 vector - obtained through legitimate access, insider threat, or credential compromise; (2) network access to the /ml/import HTTP endpoint on the target SurrealDB instance; (3) SurrealDB version prior to 3.2.0. The malformed .surml file must supply non-numeric values in the input-dimensions header field or similarly invalid data in other header fields parsed by the vulnerable code path. Standard user or editor roles are not sufficient - exploitation is strictly limited to Owner-role principals. No special non-default configuration of SurrealDB is required beyond having the SurrealML endpoint reachable. Exploitation is NOT possible without Owner-role credentials, limiting realistic threat actors to insiders and attackers who have already achieved high-privilege account compromise. |
| Impact | The CVSS 4.0 score of 6.9 with PR:H accurately captures the constrained but reliable threat model: exploitation requires Owner-level credentials - the highest SurrealDB privilege tier - which substantially limits the realistic attack surface to insiders, compromised privileged accounts, or post-escalation scenarios. Once that access is obtained, however, the attack is trivially reliable (AC:L, AT:N, UI:N), requires no special configuration, and produces a complete process abort affecting all databases on the instance simultaneously. This high blast radius in multi-tenant or shared-infrastructure deployments elevates real-world concern beyond what the mid-range score alone implies. No EPSS score was available in the provided intelligence, and the vulnerability is not listed in CISA KEV, with no public exploit code referenced in any source - indicating no public exploit identified at time of analysis. The primary realistic threat is an insider threat or a credential-compromise scenario targeting shared SurrealDB deployments. For single-tenant, strictly access-controlled deployments where Owner credentials are tightly managed, practical risk is low. For multi-team or multi-customer instances, a single malicious or compromised Owner can cause a full outage. |
| Exploit ScenarioDerived | An authenticated SurrealDB Owner-role user crafts a .surml file in which the input-dimensions header field contains a non-numeric string value, then submits it via HTTP POST to the /ml/import endpoint of an unpatched SurrealDB instance. The header parser passes the raw string to a numeric parser and calls unwrap() on the result without catching the error; the resulting Rust panic propagates uncaught and aborts the server process, taking all databases offline. No public exploit code has been identified at time of analysis, but the attack requires only knowledge of the SurrealML file format and a valid Owner credential. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Denial of service in SurrealDB's SurrealML header parser allows an authenticated Owner-role user to crash the entire server process by uploading a malformed .surml file to the /ml/import endpoint. Non-numeric input-dimensions or other invalid header fields trigger unchecked Rust unwrap() calls, causing a process-aborting panic that denies service to all databases hosted on the affected instance simultaneously. No public exploit code has been identified at time of analysis; vendor-released patch is available in SurrealDB 3.2.0.
RemediationAI
The primary remediation is upgrading SurrealDB to version 3.2.0 or later, which resolves the unchecked unwrap calls in the SurrealML header parser. See the vendor advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-jwr6-6444-28xv and the VulnCheck report at https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-malformed-surrealml-import. For deployments that cannot immediately upgrade, block or restrict HTTP POST access to the /ml/import endpoint at the network perimeter or reverse-proxy layer (e.g., return 403 for POST /ml/import at the load balancer); this eliminates the attack surface entirely at the cost of disabling all ML model import operations. A secondary hardening measure is auditing and reducing Owner-role assignments to the minimum necessary principals, which limits the set of accounts that could trigger this vulnerability - though this does not mitigate the risk from legitimately privileged users. Note that restricting /ml/import at the proxy layer will break any legitimate SurrealML workflows until the patch is applied.
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 is a multi-model database system written in Rust that includes SurrealML - a feature for importing and executing machine learning models. The /ml/import HTTP endpoint accepts .surml files, a proprietary format containing model weights alongside structured metadata headers including input-dimensions (expected to be numeric). The root cause is CWE-20 (Improper Input Validation): the header parser applies Rust's .unwrap() to the result of parsing these header fields without prior validation. In Rust, an unwrap() on an Err or None value causes a panic; when this occurs on a server thread without proper catch handling, it aborts the entire server process. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N) confirms network reachability and high availability impact with no confidentiality or integrity impact. The fix in 3.2.0 is confirmed via GHSA-jwr6-6444-28xv.
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:N/VI:N/VA:H/SC:N/SI:N/SA:N
Network-accessible endpoint requires Owner-role authentication (PR:H); attack is low-complexity with no user interaction; impact is availability-only as the server process aborts with no scope change.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.org
SurrealDB versions before 3.2.0 contain a denial of service vulnerability in the SurrealML header parser that allows authenticated Owner-role users to crash the server by uploading a malformed .surml file to the /ml/import endpoint. Attackers can supply non-numeric input-dimensions or other malformed header fields that trigger unchecked unwrap calls, causing a panic that aborts the entire server process and denies service to all databases.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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 releases before 4.0.0 fail to check query capability inside the embedded JavaScript bridge, so a low-privilege
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
EUVD-2026-45905
GHSA-vm8f-3v3v-fhw4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB