Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach unauthenticated GET /graphql endpoint
-
DeliverySupply target namespace and database headers
-
ExploitOpen many concurrent WebSocket connections
-
ExecutionSend oversized frames up to 64 MiB each
-
ImpactExhaust 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
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
SQL injection in the Model Context Protocol (MCP) server component of SurrealDB 3.1.0 through 3.x (fixed in 4.0.0) allow
Use-after-free in SurrealDB Core before 3.3.0 can crash or corrupt memory in Rust applications that embed the database a
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
Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the
Filesystem bucket path traversal in SurrealDB 3.0.0 before 4.0.0 allows an attacker with bucket-operation access to read
Cross-bucket file disclosure and modification on Windows affects SurrealDB versions 3.0.0 up to but not including 4.0.0
Authenticated tenants of SurrealDB 3.0.0 through 3.x can escape key-based ACL boundaries in direct filesystem buckets an
SurrealDB 1.0.0 through 3.x lets an authenticated user with only the database-level VIEWER role read, modify, and delete
EUVD-2026-132240
GHSA-gq9j-c8x8-685h
NVD
CVE.org
EPSS
Exploit-DB