RUSTSEC-2026-0097: Rand is unsound with a custom logger using `rand::rng()`
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 18/100
調査の方向性
Start by reading the linked rand advisory at https://github.com/rust-random/rand/pull/1763 and check how this repository depends on or configures rand. The report describes undefined behavior in rand under specific logger and feature conditions but does not say what change this repository should make. Done is unclear from the issue text alone.
索引モデルが issue の本文から書いたものです。
説明
| Details | |
|---|---|
| Package | rand |
| Version | 0.8.5 |
| Warning | unsound |
| URL | https://github.com/rust-random/rand/pull/1763 |
| Patched Versions | >=0.10.1 OR <0.10.0, >=0.9.3 OR <0.9.0, >=0.8.6 |
| Unaffected Versions | <0.7.0 |
| Aliases | GHSA-cq8v-f236-94qc |
It has been reported (by @lopopolo) that the rand library is unsound (i.e. that safe code using the public API can cause Undefined Behaviour) when all the following conditions are met:
- The
logandthread_rngfeatures are enabled - A custom logger is defined
- The custom logger accesses
rand::rng()(previouslyrand::thread_rng()) and calls anyTryRng(previouslyRngCore) methods onThreadRng - The
ThreadRng(attempts to) reseed while called from the custom logger (this happens every 64 kB of generated data) - Trace-level logging is enabled or warn-level logging is enabled and the random source (the
getrandomcrate) is unable to provide a new seed
TryRng (previously RngCore) methods for ThreadRng use unsafe code to cast *mut BlockRng<ReseedingCore> to &mut BlockRng<ReseedingCore>. When all the above conditions are met this results in an aliased mutable reference, violating the Stacked Borrows rules. Miri is able to detect this violation in sample code. Since construction of aliased mutable references is Undefined Behaviour, the behaviour of optimized builds is hard to predict.
- 主要言語
- Rust
- スター
- 10
- フォーク
- 8
- 平均マージ
- 11日 12時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitcoindevkit/electrum_streaming_client のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
bitcoindevkit/electrum_streaming_client#56 ·
メンテナーはふだん 2 日以内に返信
-
GetTx documentationオープンdocumentation
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
bitcoindevkit/electrum_streaming_client#29 ·
メンテナーはふだん 2 日以内に返信
-
RUSTSEC-2026-0221: `event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 51/100
bitcoindevkit/electrum_streaming_client#54 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
bitcoindevkit/electrum_streaming_client#53 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
bitcoindevkit/electrum_streaming_client#52 ·
メンテナーはふだん 2 日以内に返信
bitcoindevkit/electrum_streaming_client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
IngvarConsulting/unica#2006 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
limitlessprojects/Go-Hybrid#1377 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
Docker host resolution missing default rootless Docker path対応中かも @500B が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
testcontainers/testcontainers-rs#1000 ·
メンテナーはふだん 3 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
andyintheshell/perseid#73 ·
メンテナーはふだん 1 日以内に返信