Vulnerability DatabaseGHSA-27vq-hv74-7cqp

GHSA-27vq-hv74-7cqp
Rust vulnerability analysis and mitigation

Overview

A vulnerability was discovered in SurrealDB (versions >= 2.0.0, < 2.1.4) where the OVERWRITE clause of the DEFINE TABLE statement failed to properly overwrite data for tables defined with TYPE RELATION. The issue was disclosed on December 16, 2024, and has been assigned identifier GHSA-27vq-hv74-7cqp. This vulnerability particularly affects the table permissions functionality in SurrealDB (GitHub Advisory).

Technical details

The vulnerability has been assessed with a CVSS v4.0 score of 2.3 (Low severity) with the following vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N. The issue specifically occurs when attempting to use the OVERWRITE clause with DEFINE TABLE statements on tables that were defined with TYPE RELATION, where the system silently fails to update the table definition, including its permissions settings (GitHub Advisory).

Impact

When users attempt to update table permissions of a table defined with TYPE RELATION using DEFINE TABLE ... OVERWRITE, the permissions for the table remain unchanged without any error notification. This could lead to a situation where clients authorized to run queries in a SurrealDB server might retain access to data in specific tables that they should have been restricted from accessing after the intended permission changes (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to version 2.1.4 or later, which contains the fix for this issue. For those unable to update immediately, two workarounds are available: 1) Verify the intended permissions are in place using the INFO FOR DB statement after any permission changes, 2) If updates are required for a table with TYPE RELATION, remove the table and redefine it from scratch with the intended permissions, ensuring to back up data to a temporary table first (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65807HIGH8.4
  • RustRust
  • sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • typst
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management