Skip to main content

SurrealDB CVE-2026-134299

| EUVDEUVD-2026-132240 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-21 VulnCheck GHSA-gq9j-c8x8-685h
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Reach unauthenticated GET /graphql endpoint
  2. Delivery
    Supply target namespace and database headers
  3. Exploit
    Open many concurrent WebSocket connections
  4. Execution
    Send oversized frames up to 64 MiB each
  5. Impact
    Exhaust shared-process memory, degrade availability

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

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 SurrealDB server to be built with the default graphql feature AND to have at least one database configured with DEFINE CONFIG GRAPHQL; without that config the /graphql upgrade path is not exposed. The attacker must supply the target namespace and database names via the surreal-ns/surreal-db headers - these are typically application configuration rather than secrets - and no credentials are needed because the auth middleware yields an anonymous session and the schema path performs no capability check. Key limiting factors: the GraphQL-enabled-database precondition, the fact that impact is availability-only, and that the documented SURREAL_WEBSOCKET_MAX_MESSAGE_SIZE mitigation does NOT cover this endpoint; operators can instead block it with --deny-http graphql or at a reverse proxy, and the complete fix is upgrading to 4.0.0.

Impact

The signals converge on a real but availability-only concern. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms remote, low-complexity, unauthenticated reachability with no user interaction, and the impact is isolated to availability (VA:H; VC/VI/SC/SI all N), consistent with CWE-770 uncontrolled resource consumption. The vuln.today decision label is 'this_week', not 'act_now' or 'emergency', which matches a memory-exhaustion DoS rather than a code-execution or data-breach flaw. No EPSS score and no KEV status are present in the input, so there is no evidence of active exploitation or a quantified exploitation probability - this is not confirmed in the wild. A public PoC reference exists in the GHSA advisory (a differential test demonstrating that /graphql accepts oversized frames while /rpc rejects them), but it demonstrates the primitive rather than a full availability-collapse exploit. Net: a genuine, easily reachable unauthenticated DoS that warrants prompt patching, but bounded to availability and gated on the GraphQL config precondition below, so it is a 'this_week' priority rather than a drop-everything emergency.

Exploit ScenarioDerived

An unauthenticated attacker with network reachability to a SurrealDB server (built with the default graphql feature and having at least one database with DEFINE CONFIG GRAPHQL) opens many concurrent WebSocket connections to GET /graphql, supplying only the target namespace and database in request headers. Each connection pins up to 64 MiB of in-flight bytes because the operator's configured WebSocket limits are never applied to this endpoint, driving the shared process toward memory exhaustion and OOM-kill. A public PoC reference exists demonstrating that /graphql accepts oversized frames that /rpc rejects; it is not verified as working full-scale exploit code.

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

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

Alert me

AnalysisAIv1 – Nov 21, 2026

Memory exhaustion in SurrealDB 3.0.4 through 3.x lets unauthenticated remote clients pin up to 64 MiB of in-flight WebSocket data per connection by upgrading at GET /graphql, because that handler never applies the operator's configured frame, message, and buffer limits. Exposed deployments must ship the default graphql feature and have at least one database with DEFINE CONFIG GRAPHQL; attackers only need the namespace and database names, which are supplied in the surreal-ns/surreal-db headers and are typically not secrets. Impact is availability-only (high severity, no confidentiality or integrity effect) - concurrent connections can drive the process toward OOM and degrade every endpoint sharing that process. The vendor fixed the missing limit bindings in 4.0.0 (commit b80f46b); the advisory includes a public proof-of-concept reproduction, which is not verified as working exploit code, and no confirmed active exploitation (CISA KEV) is reported.

RemediationAI

Vendor-released patch: SurrealDB 4.0.0, which adds the five missing limit bindings (max_frame_size, max_message_size, read_buffer_size, write_buffer_size, max_write_buffer_size) plus a failed-upgrade warning to the GraphQL WebSocket handler - see the fix commit https://github.com/surrealdb/surrealdb/commit/b80f46b3131905175d26d5085246efcd81895cd4 and the advisory https://github.com/surrealdb/surrealdb/security/advisories/GHSA-p3c2-wh5f-jwqm. Until upgraded, do not rely on SURREAL_WEBSOCKET_MAX_MESSAGE_SIZE (or the other SURREAL_WEBSOCKET_* variables) as a mitigation for this endpoint: those values are enforced on /rpc and /sql but were never plumbed into the /graphql upgrade, so operators who lowered them still have full exposure there. Instead, remove the route from reach, either by starting the server with --deny-http graphql (the consequence is that legitimate GraphQL-over-HTTP and GraphQL WebSocket clients stop working entirely) or by blocking GET /graphql upgrade requests at a reverse proxy or WAF while leaving /rpc and /sql available (the trade-off is that any proxy path or alternate route to the backend bypasses the control, and the rule must match on the WebSocket Upgrade header rather than only on path). Where GraphQL is genuinely required, restrict network access to the endpoint to trusted clients and cap concurrent connections per source, accepting that this only slows memory growth rather than bounding per-message size; the complete fix is upgrading to 4.0.0.

Affected VersionsENISA

surrealdb 3.0.4 <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 Rust server exposes several WebSocket upgrade routes through axum's WebSocketUpgrade, which wraps the tungstenite library. The /rpc and /sql handlers explicitly propagate the shared capacity constants (WEBSOCKET_MAX_MESSAGE_SIZE, WEBSOCKET_READ_BUFFER_SIZE, WEBSOCKET_WRITE_BUFFER_SIZE, WEBSOCKET_MAX_WRITE_BUFFER_SIZE, sourced from SURREAL_* environment overrides) onto the upgrade builder before on_upgrade, so tungstenite enforces the operator's limits before any bytes are read. The /graphql handler in server/src/ntw/graphql.rs never calls any of those setters, so the socket falls back to tungstenite defaults: 16 MiB per frame, 64 MiB per message, and an effectively unbounded (usize::MAX) write buffer. This is CWE-770 (Allocation of Resources Without Limits or Throttling): the per-connection resource ceiling is simply not bound on one code path, and async_graphql's WebSocket driver adds no independent per-frame or per-message cap. Reachability of that path is gated by the default-enabled graphql feature and by DEFINE CONFIG GRAPHQL on a target database; the auth middleware returns an anonymous session when no Authorization header is present, and the schema-generation path (graphql_schema -> GraphQLSchemaCache::get_schema -> generate_schema) opens raw read transactions without invoking check_anon or any capability check, so the upgrade succeeds for unauthenticated clients that name an existing namespace and database. The trigger beyond supplying the headers is not further described in the available sources; the demonstrated primitive is that oversized frames are accepted on /graphql while being rejected on /rpc.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Remote unauthenticated client (AV:N/PR:N), trivially triggered by oversized frames (AC:L/UI:N), availability-only memory exhaustion (A:H) with no confidentiality or integrity impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/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
None
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

DescriptionCVE.org

SurrealDB 3.0.4 before 4.0.0 does not apply operator-configured WebSocket frame, message, and buffer size limits to the GraphQL WebSocket upgrade handler at GET /graphql, falling back to permissive library defaults. Unauthenticated remote attackers who supply the target namespace and database in request headers can hold up to 64 MiB of in-flight data per concurrent connection, exhausting server memory and degrading availability.

Technical POC Analysis

CWE-770 (Allocation of Resources Without Limits or Throttling).

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 3.0.4 through 3.x are vulnerable to unauthenticated memory exhaustion via WebSocket connections to the GraphQL endpoint, which can lead to denial-of-service and service degradation for all users of the affected database process. Given that the database is often a critical backend component, this availability-only flaw could disrupt business operations and customer-facing services, though no data breach risk exists. Leadership should prioritize patching to maintain service uptime and avoid potential disruption.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.2%
Top 31% exploitable
Prevalence
Low
emerging multi-model database, limited production footprint, needs GraphQL enabled
Data Quality
4 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 1.2%
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
Yes
Human Impact
High

Priority Score

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

Attack Technique

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

CVE-2026-63757 HIGH
8.7 Jul 20

Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy