Nokogiriにおける解放済みメモリの使用に関する脆弱性
| Title |
Nokogiriにおける解放済みメモリの使用に関する脆弱性
|
| Summary |
Nokogiriは、Rubyプログラミング言語用のオープンソースのXMLおよびHTMLライブラリです。バージョン1.19.4より前のNokogiri::XML::Document#root=は、新しいルートがNokogiri::XML::Nodeであることのみを検証しており、DTDノードをドキュメントのルートとして設定できてしまっていました。その結果、ガベージコレクションやファイナライズ時にヒープの使用後解放が発生するため、不正なメモリ読み取りやセグメンテーションフォルトが起こる可能性がありました。この脆弱性はバージョン1.19.4で修正されました。
|
| Possible impacts |
・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアの一部が停止する可能性があります。 |
| Solution |
ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
June 25, 2026, midnight |
| Registration Date |
June 29, 2026, 11:22 a.m. |
| Last Update |
June 29, 2026, 11:22 a.m. |
|
CVSS3.0 : 警告
|
| Score |
5.3
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
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:22 a.m. |
NVD Vulnerability Information
CVE-2026-57436
| Summary |
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::Document#root= validated only that the new root was a Nokogiri::XML::Node, allowing a DTD node to be set as the document root. The result is a heap use-after-free during garbage collection or finalization, leading to an invalid memory read or potentially a segfault. 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 27, 2026, 1:47 a.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