Nokogiriにおける複数の脆弱性
| Title |
Nokogiriにおける複数の脆弱性
|
| Summary |
NokogiriはRubyプログラミング言語向けのオープンソースのXMLおよびHTMLライブラリです。バージョン1.19.4以前では、Nokogiri::XML::NodeSet#[](およびそのエイリアス#slice)が要求されたインデックスを32ビットに切り詰めたコピーでノードセットの範囲内かどうかを確認していました。大きな負のインデックスがこのチェックを通過し、その後フル幅で使用されることで、ノードセットの格納領域外を読み取ってしまう可能性がありました。CRubyではこれは範囲外読み取りとなり、通常はプロセスがクラッシュします。JRubyではメモリ安全ではないものの誤ったノードを返す挙動を示します。この脆弱性はバージョン1.19.4で修正されました。
|
| Possible impacts |
・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution |
ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
June 25, 2026, midnight |
| Registration Date |
June 29, 2026, 11:23 a.m. |
| Last Update |
June 29, 2026, 11:23 a.m. |
|
CVSS3.0 : 重要
|
| Score |
8.2
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
Affected System
| Nokogiri |
|
Nokogiri 1.19.4 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年06月29日] 掲載 |
June 29, 2026, 11:23 a.m. |
NVD Vulnerability Information
CVE-2026-57235
| Summary |
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.
|
| Publication Date |
June 26, 2026, 12:16 a.m. |
| Registration Date |
June 27, 2026, 4:29 a.m. |
| Last Update |
June 26, 2026, 10:32 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:* |
|
|
|
1.19.4 |
Related information, measures and tools
Common Vulnerabilities List