Skip to main content

SurrealDB CVE-2026-134302

| EUVDEUVD-2026-132243 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-11-21 VulnCheck GHSA-p5xq-8q49-h75w
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with query privileges
  2. Delivery
    Submit math::sum/math::product with oversized decimal literals
  3. Exploit
    Trigger unchecked rust_decimal overflow
  4. Execution
    surrealdb-worker thread panics (Addition overflowed)
  5. Impact
    Entire 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

surrealdb 1.0.0 <4.0.0

Affected Packages

euvd surrealdb fix: 4.0.0

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

Vendor (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:35 cve.org
HIGH 7.1

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Low
emerging multi-model database, limited production deployment footprint
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

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