Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with query privileges
-
DeliverySubmit math::sum/math::product with oversized decimal literals
-
ExploitTrigger unchecked rust_decimal overflow
-
Executionsurrealdb-worker thread panics (Addition overflowed)
-
ImpactEntire server process exits (status 133), all namespaces down
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires only the ability to run a single query against the SurrealDB /sql endpoint (CVSS PR:L): any user permitted to run queries, with no schema rights, no stored data, and no non-default configuration. The overflowing values can be plain decimal literals in the query (e.g. two values near the decimal max of 79228162514264337593543950335 passed to math::sum or math::product), so no setup is needed. The same code is reached via GROUP ALL aggregation, meaning a routine reporting query over user-influenced large decimal columns triggers it unintentionally. Limiting factors: the attacker needs authenticated query access (not unauthenticated), and only versions 1.0.0 through before 4.0.0 are affected (4.0.0+ returns a recoverable query error); impact is limited to availability - no data disclosure or modification. |
| Impact | Signals are consistent and point to a genuine but availability-only priority. The CVSS 4.0 vector (7.1, HIGH) shows network reach (AV:N), low complexity (AC:L), no user interaction (UI:N), and impact confined to availability (VA:H; VC:N/VI:N) - there is no confidentiality or integrity exposure, so this is purely a denial-of-service issue. The one gating factor is PR:L: the attacker must be a user able to run a single query, so it is authenticated, but it needs no schema rights, no stored data, and no non-default configuration. A complete, reporter-verified PoC is published in the GHSA advisory (confirmed on 3.1.2 and 3.2.4), which raises practical exploitability well above the raw score - the crash is a deterministic single-query trigger. No CISA KEV listing and no EPSS score were provided in the input, so there is no evidence of active in-the-wild exploitation and no modeled exploitation probability to weigh; absence of these is not proof of low interest, merely missing data. The vuln.today decision label is 'this_week', below act_now/emergency. Net: a real, easy-to-trigger DoS that is a near-term priority for any multi-tenant or internet-reachable SurrealDB instance (the crash takes down every namespace/database on the process), but it is bounded to availability and requires query access rather than being an unauthenticated takeover. |
| Exploit ScenarioDerived | An authenticated user with only query privileges sends a single statement over the HTTP /sql endpoint - e.g. RETURN math::sum([40000000000000000000000000000dec, 40000000000000000000000000000dec]); - whose running decimal total exceeds the rust_decimal maximum. The unchecked addition panics inside the surrealdb-worker thread instead of returning a query error, aborting the whole process (exit status 133) and dropping every connection, database and namespace on the instance. A working PoC with curl commands is published and verified by the reporter on 3.1.2 and 3.2.4; the same path is reachable accidentally through GROUP ALL aggregation over large stored decimals. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Any SurrealDB user permitted to run a query can terminate the entire server process by forcing an unchecked decimal overflow in the math::sum or math::product aggregate functions, which panics inside rust_decimal and aborts the database worker thread (process exit status 133), taking down every connection, namespace and database on the instance. Affected are versions 1.0.0 through before 4.0.0 - the issue was reproduced on 3.1.2 and 3.2.4 - and the overflow needs no stored data or elevated rights, since plain decimal literals near the decimal maximum (79228162514264337593543950335) in a single RETURN statement suffice; the same path is reached by an ordinary GROUP ALL aggregation over user-influenced decimal columns. Availability-only impact (CVSS 7.1, PR:L), no data disclosure or modification, addressed in 4.0.0 where the fold returns a normal query error; the vendor advisory contains a reproducible one-statement proof-of-concept, and no active exploitation (CISA KEV) is recorded.
RemediationAI
Upgrade to SurrealDB 4.0.0 or later, the first release that folds math::sum and math::product with checked arithmetic so an out-of-range decimal raises a query error instead of killing the process; the underlying changes are commits 942c2bd2b4 ("fix(math): sum and mean integers exactly instead of wrapping or rounding") and b8f92e17f2 ("fix(math,seq): integer overflow is an error in math folds and sequence allocation"), and the fixed version is stated in GHSA-g422-fj9r-m92g. If 4.0.0 cannot be deployed immediately, treat the exposure as a privilege boundary problem: the trigger only requires the ability to run a query, so restrict query execution to fully trusted identities and keep the HTTP /sql endpoint off untrusted networks - the trade-off is that any account still able to issue arbitrary SurrealQL (including GROUP ALL aggregations over user-supplied decimal columns) remains a single-statement server-kill vector, and no query-level filter is described in the available sources that would block decimal literals near 79228162514264337593543950335 without breaking legitimate math::sum / math::product use. There is no vendor-released patch for the 1.x-3.x branches identified in the available data, so upgrading across the 4.0.0 boundary is the complete fix.
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 SurrealQL numeric type wraps several representations, including a Decimal variant backed by the rust_decimal crate. The aggregate functions math::sum and math::product in surrealdb/core/src/fnc/math.rs accumulate a Vec<Number> through Rust's Sum and Product traits, which in surrealdb/core/src/val/number.rs fold with the plain + and * operators; the decimal arm of ops::Add performs an unchecked Decimal + Decimal. rust_decimal panics ("Addition overflowed", arithmetic_impls.rs:161) rather than returning an error once an intermediate result exceeds the decimal maximum. Because the panic is not caught, it aborts the surrealdb-worker thread and terminates the whole process, making this a CWE-190 integer-overflow root condition escalating to CWE-248 uncaught exception. The engine already contains a recoverable path for identical operands: the + and * operators return a normal query error ("Cannot perform addition with '...' and '...'"), and math::mean, which sums internally, propagates that error instead of panicking. The flaw is therefore specific to the sum/product accumulation folds, and the fix routes them through the same checked arithmetic. Any backend inherits the flaw since the crash occurs in query evaluation; the advisory confirms it against the in-memory backend in Docker.
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:N/VA:H/SC:N/SI:N/SA:N
Network-reachable via the HTTP /sql endpoint (AV:N) and a deterministic single-query trigger (AC:L); PR:L because any user able to run a query suffices; only availability is affected, with a total process crash (A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SurrealDB 1.0.0 before 4.0.0 contains a denial of service vulnerability that allows any user able to run queries to crash the server by triggering unchecked decimal overflow in math::sum or math::product. Attackers can submit a query summing or multiplying large decimal literals or aggregate stored decimals with GROUP ALL, causing a rust_decimal panic that terminates the entire server process.
Technical POC Analysis
CWE-190 (integer overflow / wraparound), escalating to CWE-248 (uncaught exception).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SurrealDB versions 1.0.0 through 4.0.0 contain a HIGH-severity availability defect (CVE-2026-134302) that lets any user able to run a query crash the entire database server with a single statement, disrupting every connection, namespace and database on the instance. Because the trigger requires only legitimate query permissions and no stored data, insiders, compromised application accounts, or injected query paths could cause repeated outages. Leadership should care about potential service downtime and operational disruption to dependent applications and customers, though there is no risk of data disclosure or modification.
No vendor-released patch identified at time of analysis; interim mitigations include restricting query execution to trusted, least-privilege accounts, monitoring for unexpected process exits (status 133) and rapid restarts, applying rate limiting and input validation on user-influenced decimal aggregation paths, and enabling automated process supervision to reduce outage duration until upgrading to 4.0.0.
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
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
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 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-132243
GHSA-p5xq-8q49-h75w
NVD
CVE.org
EPSS
Exploit-DB