| タイトル | Nokogiriにおける複数の脆弱性 |
|---|---|
| 概要 | NokogiriはRubyプログラミング言語向けのオープンソースのXMLおよびHTMLライブラリです。バージョン1.19.4以前のNokogiriのCRubyネイティブ拡張において、XML属性の値を置き換える際にRubyのラッパーが解放されたメモリを指し続ける可能性がありました。Rubyコードが既に属性の子ノードにアクセスしている場合、Nokogiri::XML::Attr#value=はドキュメントノードキャッシュを通じてラッパーを参照したまま、基盤となるネイティブの子ノードを解放することがあります。解放された子ノードの後続使用やRubyのGCマークが無効なポインタの逆参照を引き起こし、不正な読み込みやセグメンテーションフォルトを発生させる可能性があります。この脆弱性はバージョン1.19.4で修正されました。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年6月25日0:00 |
| 登録日 | 2026年6月29日11:22 |
| 最終更新日 | 2026年6月29日11:22 |
| CVSS3.0 : 重要 | |
| スコア | 7.5 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Nokogiri |
| Nokogiri 1.19.4 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月29日] 掲載 |
2026年6月29日11:22 |
| 概要 | Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri’s CRuby native extension could leave a Ruby wrapper pointing to freed memory when replacing the value of an XML attribute. If Ruby code had already accessed an attribute child node, Nokogiri::XML::Attr#value= could free the underlying native child node while the wrapper remained reachable through the document node cache. A later use of the freed child node or a Ruby GC mark could dereference an invalid pointer, causing an invalid read and a possible segfault. 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 | ||||