| タイトル | Julian Gruber (juliangruber)のbrace-expansionにおけるリソースの枯渇に関する脆弱性 |
|---|---|
| 概要 | brace-expansionライブラリは、共通の接頭辞と接尾辞を含む任意の文字列を生成します。バージョン5.0.0から5.0.6未満の間、maxオプションの適用が遅すぎました。{1..10000000}のような単一の大きな数値範囲を展開する際、シーケンス生成ループはmax制限が適用される前に1000万もの中間要素をすべて生成してしまいます。max=10の場合、出力は正しく10項目に制限されますが、その処理は依然として約505MBのメモリを割り当て、約800msかけて中間配列全体を構築します。この脆弱性はバージョン5.0.6で修正されました。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月29日0:00 |
| 登録日 | 2026年6月5日10:46 |
| 最終更新日 | 2026年6月5日10:46 |
| CVSS3.0 : 重要 | |
| スコア | 7.5 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Julian Gruber (juliangruber) |
| brace-expansion 5.0.0 から 5.0.6 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月05日] 掲載 |
2026年6月5日10:46 |
| 概要 | The brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to before 5.0.6, the max option was being applied too late. When expanding a single large numeric range like {1..10000000}, the sequence generation loop generates all 10 million intermediate elements before the max limit is applied With max=10, the output is correctly limited to 10 items, but the process still allocates ~505 MB and spends ~800ms building the full intermediate array. This vulnerability is fixed in 5.0.6. |
|---|---|
| 公表日 | 2026年5月30日5:16 |
| 登録日 | 2026年5月31日4:15 |
| 最終更新日 | 2026年6月4日5:13 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:* | 5.0.0 | 5.0.6 | |||