surrealdb の脆弱性
概要
surrealdb に 脆弱性 (CVE-2024-58356) が存在。不正な操作・情報露出のリスクがあります。OVERWRITE 経由で攻撃可能。対策: 2.1.4 以上に更新。
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
surrealdb という製品で、CVE-2024-58356 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに OVERWRITE のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 6.3/10 です。
対策: surrealdb を 2.1.4 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「surrealdb CVE-2024-58356」を検索してください。
CVE-2024-58356 (surrealdb) — CWE-732 / CVSS v3 6.3
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: OVERWRITE / PERMISSIONS
修正バージョン: 2.1.4 (即時適用推奨)
暫定回避: Users of tables with TYPE RELATION that may have been modified using the OVERWRITE clause in order to update permissions are advised to verify that the intended permissions are in place using the INFO FOR DB statement.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
surrealdb に 脆弱性 (CWE-732) があります。攻撃者は OVERWRITE を経由して脆弱な処理に到達できます。
surrealdb の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: OVERWRITE / PERMISSIONS。
重要度: 中 (CVSS 6.3/10)。不正な操作・情報露出のリスクがあります。
2.1.4 に更新してください。
暫定回避: Users of tables with TYPE RELATION that may have been modified using the OVERWRITE clause in order to update permissions are advised to verify that the intended permissions are in place using the INFO FOR DB statement.
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'surrealdb' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
surrealdbを grep し、稼働しているサービス・バージョンを把握する。 -
2
暫定回避策の適用mitigate
Users of tables with `TYPE RELATION` that may have been modified using the `OVERWRITE` clause in order to update permissions are advised to verify that the intended permissions are in place using the `INFO FOR DB` statement.パッチが適用されるまでの応急処置として、Users of tables with
TYPE RELATIONthat may have been modified using theOVERWRITEclause in order to update permissions are advised to verify that the intended permissions are in place using theINFO FOR DBstatement. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3
パッチ適用patch
Upgrade surrealdb to 2.1.4ステージング環境で 2.1.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| rustsurrealdb |
2.1.4 未満→ 2.1.4 |
2.1.4 |
| rustsurrealdb-core |
2.1.4 未満→ 2.1.4 |
2.1.4 |
| crates.iosurrealdb |
2.0.0 以上 2.1.4 未満→ 2.1.4 |
2.1.4 |
| crates.iosurrealdb-core |
2.0.0 以上 2.1.4 未満→ 2.1.4 |
2.1.4 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
SurrealDB before 2.1.4 silently fails to overwrite table definitions when the DEFINE TABLE ... OVERWRITE clause is used on tables defined with TYPE RELATION. Because table definitions include the PERMISSIONS clause, an attempt to tighten a table's permissions via OVERWRITE does not take effect, and the administrator may incorrectly believe the change was applied. As a result, a client authorized to run queries may continue to access data in that table that the updated (but unapplied) permissions were intended to restrict.
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com