This advisory has been withdrawn (2026-09-04).
Database / Storage
CVE-2024-58362 high CVSS 8.8

Vulnerability in surrealdb (CVE-2024-58362)

Summary

Vulnerability in surrealdb (CVE-2024-58362). Successful exploitation can lead to full system takeover. Exploitable via SIGNIN. Mitigation: upgrade to 2.0.0-beta.3 or later.

Original description

The description as published by the source.

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-64f8-pjgr-9wmr. This link is maintained to preserve external references.

Original Description

SurrealDB before 1.5.5 (and 2.0.0-beta before 2.0.0-beta.3) accepts an arbitrary object in the signin and signup operations of the RPC API without recursively validating it for non-computed values. When a record access method defines a SIGNIN or SIGNUP query and the RPC API is exposed to untrusted users, an unauthenticated attacker can encode a binary object containing a subquery using the bincode serialization format and supply it in place of credentials. The subquery is then executed within the database owner's SIGNIN/SIGNUP query under a system user session with the editor role, allowing the attacker to select, create, update, and delete non-IAM resources (though not view the query results directly, and not affect IAM resources, which require the owner role).

Source: NIST National Vulnerability Database NVD GitHub Advisory

AI summary

Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.

SurrealDBのバージョン1.5.5未満および2.0.0-beta.3未満では、RPC APIのサインインおよびサインアップ操作において、任意のオブジェクトが再帰的な検証を受けずに受け入れられる。このため、未認証の攻撃者がbincodeシリアル化フォーマットを使用してバイナリオブジェクトを作成し、サインイン/サインアップクエリの中に含まれるサブクエリとして送信できる。この結果、攻撃者はデータベースの所有者としてシステムユーザーセッションで操作を実行可能となる。

❓ What is the problem

SurrealDBのRPC APIにおけるサインイン/サインアップ操作の入力が再帰的に検証されない脆弱性。

📍 Affected scope

SurrealDBバージョン1.5.5未満および2.0.0-beta.3未満。

🔥 Severity

高。攻撃者がbincodeシリアル化フォーマットを通じて非認証で操作可能。

🔧 How to fix

バージョン1.5.5もしくは2.0.0-beta.3以上にアップデートする。

🛡️ Workaround

情報なし

🔍 Detection

サーバーログを確認し、不審なクエリを特定する。

Affected packages

rust surrealdb
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
crates.io surrealdb
[{"type":"SEMVER","events":[{"introduced":"0"}]}]
crates.io surrealdb-core
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.2"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details