Read the docs

SurrealDB Memory Exhaustion via GraphQL WebSocket Upgrade

Priority HIGH 77CWE-770Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-770.

Summary

SurrealDB 3.0.4 before 4.0.0 does not apply the operator-configured WebSocket frame, message, and buffer size limits to the GraphQL WebSocket upgrade handler at GET /graphql, falling back to permissive library defaults. An unauthenticated remote attacker who supplies 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. It is classified as CWE-770, Allocation of Resources Without Limits or Throttling, with a CVSS 4.0 base score of 8.7 (HIGH). CISA has not added it to KEV, and no public exploit link is listed in the references; CISA SSVC rates exploitation as poc.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00784 52nd percentileScored 2026-11-30
Fix Fixed surrealdb (surrealdb): 4.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
surrealdbsurrealdb3.0.4 to before 4.0.04.0.0Patch availableCNA
  • surrealdb Vendorsurrealdb Affected 3.0.4 to before 4.0.0 Fixed in 4.0.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*——surrealdb
  • cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* Versions — — ·surrealdb

Remediation

Upgrade SurrealDB to version 4.0.0 or later, which fixes the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

  • Fix · CNA surrealdb (surrealdb) Fixed in 4.0.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    surrealdb 4.0.0

    16 records Highest priority Priority HIGH 1 HIGH, 9 MEDIUM, 6 LOW

    Other records, highest priority first

    • TI-2026-96305 Decimal overflow in SurrealDB math functions crashes the serverPriority MEDIUM 64
    • TI-2026-96295 Information disclosure in SurrealDB via ON DELETE REJECT errorsPriority MEDIUM 64
    • TI-2026-96293 Authorization bypass in SurrealDB event THROW guard via interactive transactionsPriority MEDIUM 64

Timeline

  1. 2026-11-21 Threatist record created from CVE-2026-134299
  2. 2026-11-21 Alias added: GHSA-gq9j-c8x8-685h
  3. 2026-11-23 CISA SSVC decision points changed

References

  • TI-2026-84301 MCP session hijack in SurrealDB via BoundSubject collision CVSS 4.0HIGH 8.6
  • TI-2026-96306 Out-of-bounds read in SurrealKV InternalKeyRef decoder CVSS 4.0HIGH 8.3
  • TI-2026-96310 Authorization bypass in SurrealDB via COMPUTED field permissions CVSS 4.0HIGH 7.1
  • TI-2026-96305 Decimal overflow in SurrealDB math functions crashes the server CVSS 4.0HIGH 7.1
  • TI-2026-96295 Information disclosure in SurrealDB via ON DELETE REJECT errors CVSS 4.0HIGH 7.1
  • TI-2026-96293 Authorization bypass in SurrealDB event THROW guard via interactive transactions CVSS 4.0HIGH 7.1
See all 97 →

Sources