highCVSS 7.5Vulnerability

GHSA-q729-696q-g9pq

The SurrealDB value and JSON parser did not enforce the configured recursion depth limit when parsing nested `{`, `[`, or `(` tokens. The expression parser already enforced the limit for these tokens; the value/JSON parser omitted it. An unauthenticated attacker could send a deeply nested JSON payload to the WebSocket `/rpc` endpoint and exhaust server memory, crashing the process. This is an incomplete fix for [GHSA-6r8p-hpg7-825g](https://github.com/surrealdb/surrealdb/security/advisories/GHSA-6r8p-hpg7-825g), which addressed the same class of bug in the expression parser but did not cover the value/JSON parser code path. ### Impact An unauthenticated remote attacker can crash a SurrealDB server with a single WebSocket message. No credentials or query execution privileges are required. ### Patches A patch enforces the configured recursion depth limit in `parse_value` and `parse_json`, bringing them in line with the rest of the parser. - Versions 3.1.0 and later are not affected by this issue. ### Workarounds Restrict network access to the WebSocket `/rpc` endpoint to trusted clients.

Properties

ghsa_id
GHSA-q729-696q-g9pq
summary
SurrealDB has Denial of Service in JSON parser due to nested objects
severity
high
cvss_score
7.5
cve_id
GHSA-q729-696q-g9pq
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
is_ghsa_only
true
ghsa_published
2026-07-01T20:03:33Z
source_url
https://github.com/advisories/GHSA-q729-696q-g9pq
ghsa_updated
2026-07-01T20:03:34Z

Related Entities (4)

HAS_WEAKNESS (1)

[Weakness]Uncontrolled Recursion

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]rust/surrealdb

AFFECTS (1)

[Software]rust/surrealdb

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-q729-696q-g9pq (CVSS 7.5) — Ninja Signal Threat Intelligence | Ninja Signal