製品・ソフトウェアに関する情報
Nokogiriにおける解放済みメモリの使用に関する脆弱性
Title Nokogiriにおける解放済みメモリの使用に関する脆弱性
Summary

NokogiriはRubyプログラミング言語向けのオープンソースのXMLおよびHTMLライブラリです。バージョン1.19.4より前では、Nokogiri::XML::Node#do_xincludeによって実行されるXInclude置換が、各xi:includeをその場で置き換え、インクルードノードとその子要素(例えばxi:fallbackおよびその子孫)およびそれらに宣言された名前空間を解放していました。もしアプリケーションがすでにこれらのノードや名前空間のいずれかをRubyに露出させていた場合、対応するRubyオブジェクトは解放済みメモリを指したままになっていました。そのオブジェクトを使うと無効なメモリの読み書きが発生する可能性があります。この脆弱性はバージョン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 6.6
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/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:22 a.m.

NVD Vulnerability Information
CVE-2026-57438
Summary

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, XInclude substitution performed by Nokogiri::XML::Node#do_xinclude replaced each <xi:include> in place, freeing the include node along with its children (such as <xi:fallback> and its descendants) and any namespaces declared on them. If an application had already exposed one of those nodes or namespaces to Ruby, the corresponding Ruby object was left pointing at freed memory. Using the object could result in invalid reads or writes to memory. This vulnerability is fixed in 1.19.4.

Publication Date June 26, 2026, 1:16 a.m.
Registration Date June 27, 2026, 4:29 a.m.
Last Update June 26, 2026, 1:11 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