SurrealDBに解放後使用の脆弱性、メモリ破損や異常終了のおそれ
Summary
SurrealDBのKVバックエンドに解放後使用(UAF)の脆弱性が見つかりました。Rustで組み込み利用し、ディスパッチした未来を解放せずにトランザクションを破棄するとメモリ破損や異常終了を起こすおそれがあります。3.3.0より前のバージョンが対象で、修正版は3.3.0です。急ぎ度は中程度と見られ、早めに3.3.0へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
SurrealDBのKVバックエンドに解放後使用(UAF)の脆弱性が見つかりました。Rustで組み込み利用し、ディスパッチした未来を解放せずにトランザクションを破棄するとメモリ破損や異常終了を起こすおそれがあります。3.3.0より前のバージョンが対象で、修正版は3.3.0です。急ぎ度は中程度と見られ、早めに3.3.0へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| surrealdbsurrealdb |
< 3.3.0→ 3.3.0 |
3.3.0 |
| crates.iosurrealdb |
≥ 0.0.0-0, < 3.3.0→ 3.3.0 |
3.3.0 |
Original description The description as published by the source.
SurrealDB before 3.3.0 contains a use-after-free vulnerability in surrealdb-core KV backends that pass borrowed transaction state into affinitypool::spawn_local closures relying on future Drop for safety. Rust embedders that leak a dispatched future (e.g. via mem::forget) and drop the transaction cause pool workers to read and write freed memory, risking crashes or memory corruption.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- advisory rustsec.org
- package crates.io
- patch github.com
- web github.com
- web github.com