| タイトル | Nokogiriにおける解放済みメモリの使用に関する脆弱性 |
|---|---|
| 概要 | NokogiriはRubyプログラミング言語向けのオープンソースのXMLおよびHTMLライブラリです。1.19.4以前のバージョンでは、無効なエンコーディング(例えば、非文字列やヌルバイトを含む文字列)を引数としてDocument#encoding=を呼び出すと例外が発生しますが、その際にドキュメントの現在のエンコーディング文字列を解放した後に置き換えを行わないため、ドキュメントが解放済みメモリを参照し続けてしまいます。次にDocument#encodingを呼び出すと無効なメモリを読み込み、セグメンテーションフォルトを引き起こしたり、解放済みのバイトがRubyのStringに漏洩したりする可能性があります。この影響はCRuby(libxml2)実装にのみ限定され、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, calling Document#encoding= with an invalid encoding (e.g., a non-string, or a string containing a null byte) raises an exception, but only after freeing the document's current encoding string without replacing it. The document is left referencing freed memory, so the next call to Document#encoding reads invalid memory, which can cause a segfault or leak freed bytes into a Ruby String. Affects the CRuby (libxml2) implementation only; JRuby is not affected. 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 | ||||