Description
SurrealDB versions before 3.1.0 fail to apply the SURREAL_WEBSOCKET_MAX_MESSAGE_SIZE limit to anonymous /sql WebSocket connections, allowing attackers to buffer unbounded frames in the per-connection read buffer. Attackers can stream WebSocket frames larger than the configured limit across multiple concurrent connections to consume excessive memory and degrade /sql availability.
Published: 2026-07-20
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions prior to 3.1.0 fail to enforce the SURREAL_WEBSOCKET_MAX_MESSAGE_SIZE limit on anonymous /sql WebSocket connections, a failure that falls under CWE-770, allowing an attacker to send arbitrarily large frames that are buffered without bound in the per‑connection read buffer. This causes a gradual, unmeasured increase in memory consumption until the database process can no longer allocate memory, leading to the /sql service becoming unresponsive. The vulnerability’s impact is thus a denial of service that can affect any client that relies on the /sql endpoint, including external applications and internal services.

Affected Systems

All SurrealDB deployments running a version younger than 3.1.0 that expose the /sql WebSocket interface without requiring authentication are affected. This includes both community‑supported and enterprise distributions. Any installation that allows anonymous WebSocket connections to /sql is vulnerable until it is upgraded or the endpoint is secured via authentication or disabling.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity risk, while an EPSS score of less than 1% points to a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that attackers can exploit this remotely by establishing WebSocket connections to the /sql endpoint from any network location that can reach the database, sending large frames, and repeating the process across multiple concurrent connections until the target’s memory is exhausted. Successful exploitation will degrade or crash the /sql service, potentially impacting all applications dependent on that interface.

Generated by OpenCVE AI on July 30, 2026 at 19:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.1.0 or later to enforce the frame size limit on anonymous WebSocket connections.
  • Disable anonymous /sql WebSocket connections or enforce authentication so that only authorized clients can use the endpoint.
  • Implement network‑level controls to limit the rate or number of WebSocket connections per IP address or host, and monitor memory usage for abnormal growth.

Generated by OpenCVE AI on July 30, 2026 at 19:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Tue, 21 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description SurrealDB versions before 3.1.0 fail to apply the SURREAL_WEBSOCKET_MAX_MESSAGE_SIZE limit to anonymous /sql WebSocket connections, allowing attackers to buffer unbounded frames in the per-connection read buffer. Attackers can stream WebSocket frames larger than the configured limit across multiple concurrent connections to consume excessive memory and degrade /sql availability.
Title SurrealDB before 3.1.0 Memory Amplification via /sql WebSocket
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:43.776Z

Reserved: 2026-07-18T12:26:19.867Z

Link: CVE-2026-63750

cve-icon Vulnrichment

Updated: 2026-07-21T15:08:12.362Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:45:06Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling