Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. GHSA-6r8p-hpg7-825g

GHSA-6r8p-hpg7-825g: Uncontrolled Recursion in SurrealQL Parsing

January 18, 2024

In some specific instances, the SurrealQL parser will attempt to recursively parse nested statements or idioms (i.e. nested IF and RELATE statements, nested basic idioms and nested access to attributes) without checking if the depth limit established by default or in the SURREAL_MAX_COMPUTATION_DEPTH environment variable is exceeded. This can lead to the stack overflowing when the nesting surpasses certain levels of depth.

References

  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=62410
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=62652
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=63797
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=64445
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=64731
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=65277
  • github.com/advisories/GHSA-6r8p-hpg7-825g
  • github.com/surrealdb/surrealdb
  • github.com/surrealdb/surrealdb/commit/f838da248e3854e4250e5187a3a67507cb7efaaa
  • github.com/surrealdb/surrealdb/pull/3232
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-6r8p-hpg7-825g

Code Behaviors & Features

Detect and mitigate GHSA-6r8p-hpg7-825g 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 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

cargo/surrealdb/GHSA-6r8p-hpg7-825g.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:37 +0000.