English version →
カテゴリ
CVE-2024-58358 medium CVSS 4.9

surrealdb の脆弱性 (CVE-2024-58358)

概要

surrealdb に 脆弱性 (CVE-2024-58358) が存在。不正な操作・情報露出のリスクがあります。Ident 経由で攻撃可能。対策: 2.1.0 以上に更新。

原文の説明

取得元が公開している説明をそのまま載せています (多くは英語)。

Roles for system users are stored as generic Ident values and converted as strings and into the Role enum whenever IAM operations are to be performed that require processing the user roles. This conversion expects those identifiers to only contain the values owner, editor and viewer and will return an error otherwise. However, the unwrap() method would be called on this result when implementing std::convert::From<&Ident> for Role, which would result in a panic where a nonexistent role was used.

Impact

A privileged user with the owner role at any level in SurrealDB would be able to define a user with DEFINE USER with an nonexistent role, which would panic when being converted to a Role enum in order to perform certain IAM operations with that user. These operations included signing in with the user. This would crash the server, leading to denial of service.

Patches

Unexistent roles are no longer accepted during parsing when defining a user. Even when successfully associated with a user, referencing unexistent roles will no longer result in a panic and will instead throw an InvalidRole error.

  • Version 2.1.0 and later are not affected by this issue.

Workarounds

Affected users who are unable to update may want to limit access to users with the owner role at any level to trusted parties only. To limit the impact of the denial of service, SurrealDB administrators may also want to ensure that the SurrealDB process is running so that it can…

出典: NIST National Vulnerability Database NVD GitHub Advisory

自動生成の要約

取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。

surrealdb という製品で、CVE-2024-58358 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに Ident のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 4.9/10 です。
対策: surrealdb を 2.1.0 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「surrealdb CVE-2024-58358」を検索してください。

CVE-2024-58358 (surrealdb) — CWE-248 / CVSS v3 4.9
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: Ident / Role / owner / editor
修正バージョン: 2.1.0 (即時適用推奨)
暫定回避: Affected users who are unable to update may want to limit access to users with the owner role at any level to trusted parties only.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

❓ 何が問題か

surrealdb に 脆弱性 (CWE-248) があります。攻撃者は Ident を経由して脆弱な処理に到達できます。

📍 影響範囲

surrealdb の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: Ident / Role / owner / editor。

🔥 重要度

重要度: 中 (CVSS 4.9/10)。不正な操作・情報露出のリスクがあります。

🔧 修正方法

2.1.0 に更新してください。

🛡️ 暫定回避

暫定回避: Affected users who are unable to update may want to limit access to users with the owner role at any level to trusted parties only.

🔍 検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定 identify
    grep -r 'surrealdb' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で surrealdb を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    暫定回避策の適用 mitigate
    Affected users who are unable to update may want to limit access to users with the `owner` role at any level to trusted parties only.

    パッチが適用されるまでの応急処置として、Affected users who are unable to update may want to limit access to users with the owner role at any level to trusted parties only. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    パッチ適用 patch
    Upgrade surrealdb to 2.1.0

    ステージング環境で 2.1.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    事後検証 verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

rust surrealdb
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0"}]}]
rust surrealdb-core
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0"}]}]

参照URL

当サイトでは、アクセス解析と広告の効果測定のために Cookie を使います。株式会社Game のサイト共通の設定です。 詳しく