Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. GHSA-q729-696q-g9pq

GHSA-q729-696q-g9pq: SurrealDB has Denial of Service in JSON parser due to nested objects

July 1, 2026

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.

References

  • github.com/advisories/GHSA-q729-696q-g9pq
  • github.com/surrealdb/surrealdb/commit/1bd9826f477f4089134460dc5574b6f4e6916973
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-q729-696q-g9pq

Code Behaviors & Features

Detect and mitigate GHSA-q729-696q-g9pq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.0

Fixed versions

  • 3.1.0

Solution

Upgrade to version 3.1.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

cargo/surrealdb/GHSA-q729-696q-g9pq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 13 Jul 2026 00:21:17 +0000.