| タイトル | Nokogiriにおける複数の脆弱性 |
|---|---|
| 概要 | NokogiriはRubyプログラミング言語向けのオープンソースのXMLおよびHTMLライブラリです。バージョン1.19.4以前では、Nokogiri::XML::NodeSet#[](およびそのエイリアス#slice)が要求されたインデックスを32ビットに切り詰めたコピーでノードセットの範囲内かどうかを確認していました。大きな負のインデックスがこのチェックを通過し、その後フル幅で使用されることで、ノードセットの格納領域外を読み取ってしまう可能性がありました。CRubyではこれは範囲外読み取りとなり、通常はプロセスがクラッシュします。JRubyではメモリ安全ではないものの誤ったノードを返す挙動を示します。この脆弱性はバージョン1.19.4で修正されました。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年6月25日0:00 |
| 登録日 | 2026年6月29日11:23 |
| 最終更新日 | 2026年6月29日11:23 |
| CVSS3.0 : 重要 | |
| スコア | 8.2 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| Nokogiri |
| Nokogiri 1.19.4 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月29日] 掲載 |
2026年6月29日11:23 |
| 概要 | Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::NodeSet#[] (and its alias #slice) checked the requested index against the node set's bounds using a 32-bit-truncated copy of the index. A large negative index could pass the check and then be used at full width, reading outside the node set's storage. On CRuby this is an out-of-bounds read that typically crashes the process; on JRuby it is not memory-unsafe but returns an incorrect node. This vulnerability is fixed in 1.19.4. |
|---|---|
| 公表日 | 2026年6月26日0:16 |
| 登録日 | 2026年6月27日4:29 |
| 最終更新日 | 2026年6月26日22:32 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:* | 1.19.4 | ||||