Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. GHSA-27vq-hv74-7cqp

GHSA-27vq-hv74-7cqp: SurrealDB has Silent Failure to Overwrite Table Definition of Relation Type

December 16, 2024 (updated December 18, 2024)

The OVERWRITE clause of the DEFINE TABLE statement would fail to overwrite data for tables that were defined with TYPE RELATION. Since table definitions include the PERMISSIONS clause, this failure would result in permissions not being overwritten as a result, which may potentially lead users to believe they have changed the table permissions when they have not.

References

  • github.com/advisories/GHSA-27vq-hv74-7cqp
  • github.com/surrealdb/surrealdb
  • github.com/surrealdb/surrealdb/commit/2f9a58f830c24f107b4783da1f0704a502bc7734
  • github.com/surrealdb/surrealdb/pull/5260
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-27vq-hv74-7cqp

Code Behaviors & Features

Detect and mitigate GHSA-27vq-hv74-7cqp 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 starting from 2.0.0 before 2.1.4

Fixed versions

  • 2.1.4

Solution

Upgrade to version 2.1.4 or above.

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

cargo/surrealdb/GHSA-27vq-hv74-7cqp.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 00:14:16 +0000.