RUSTSEC-2026-0592: Stack overflow in `Url::origin()` on nested `blob:` URLs
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- build-system, security
調査の方向性
修正は依存関係の更新です。url クレートを 2.5.8 から少なくとも 2.5.9 に上げる必要があるため、まず Cargo.toml と lock ファイルの url エントリから始めてください。cargo update -p url を実行し、解決されたバージョンが 2.5.9 以降であること、ビルドとテストが引き続き成功することを確認してください。完了条件は、lock ファイルで url がパッチ済みバージョンに解決され、新たな警告が出ず、このプロジェクトに対してアドバイザリが適用されなくなったことです。
索引モデルが issue の本文から書いたものです。
説明
Stack overflow in
Url::origin()on nestedblob:URLs
| Details | |
|---|---|
| Package | url |
| Version | 2.5.8 |
| URL | https://github.com/servo/rust-url/pull/1186 |
| Date | 2026-11-20 |
| Patched versions | >=2.5.9 |
In url 2.5.8 and earlier, Url::origin() handled a blob: URL by parsing its path as another URL and calling itself on the result. It did so regardless of the inner URL's scheme, blob included. Each blob: prefix cost one stack frame, with no limit on nesting depth. Url::parse() accepts a URL with 10,000 blob: prefixes followed by https://example.com/ (50,020 bytes in total); calling Url::origin() on it overflowed the default 2 MiB stack of a spawned thread.
A stack overflow aborts the whole process, and catch_unwind() does not catch it. One such URL crashes any program that calls Url::origin() on untrusted input. url::quirks::origin() also calls Url::origin(). For example, Servo's URL.origin DOM getter calls url::quirks::origin(), so a script on a page can trigger the overflow.
url 2.5.9 follows the URL Standard: Url::origin() takes the origin of the inner URL only when its scheme is http, https, or file, returns an opaque origin otherwise, and never calls itself. A blob: URL with another inner scheme that previously produced a tuple origin, such as blob:ws://... or blob:blob:https://..., now returns an opaque origin.
See advisory page for additional details.
- 主要言語
- Rust
- スター
- 2
- フォーク
- 0
- 平均マージ
- 1時間 25分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/stackable-odbc-trino のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
stackabletech/stackable-odbc-trino の issue をすべて見る
似ている issue
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
influxdata/influxdb#27767 ·
メンテナーはふだん 1 日以内に返信
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)対応中かも @zyl71 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
Blockstream/lwk#213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manuscript-lang/manuscript#6389 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信