Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb-core
  4. ›
  5. GHSA-m52v-24p8-654f

GHSA-m52v-24p8-654f: SurrealDB has an Uncaught Exception Sorting Tables by Random Order

November 22, 2024

Sorting table records using an ORDER BY clause with the rand() function as sorting mechanism could cause a panic due to relying on a comparison function that did not implement total order. This event resulted in a panic due to a recent change in Rust 1.81.

References

  • github.com/advisories/GHSA-m52v-24p8-654f
  • github.com/surrealdb/surrealdb
  • github.com/surrealdb/surrealdb/issues/4969
  • github.com/surrealdb/surrealdb/pull/4805
  • github.com/surrealdb/surrealdb/pull/4906
  • github.com/surrealdb/surrealdb/pull/4989
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-m52v-24p8-654f

Code Behaviors & Features

Detect and mitigate GHSA-m52v-24p8-654f with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.1.0

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.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-248: Uncaught Exception

Source file

cargo/surrealdb-core/GHSA-m52v-24p8-654f.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:46 +0000.