Nokogiriにおける複数の脆弱性
| Title |
Nokogiriにおける複数の脆弱性
|
| Summary |
NokogiriはRubyプログラミング言語向けのオープンソースのXMLおよびHTMLライブラリです。バージョン1.19.4以前のNokogiriのCRubyネイティブ拡張において、XML属性の値を置き換える際にRubyのラッパーが解放されたメモリを指し続ける可能性がありました。Rubyコードが既に属性の子ノードにアクセスしている場合、Nokogiri::XML::Attr#value=はドキュメントノードキャッシュを通じてラッパーを参照したまま、基盤となるネイティブの子ノードを解放することがあります。解放された子ノードの後続使用やRubyのGCマークが無効なポインタの逆参照を引き起こし、不正な読み込みやセグメンテーションフォルトを発生させる可能性があります。この脆弱性はバージョン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 |
7.5
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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:22 a.m. |
NVD Vulnerability Information
CVE-2026-57435
| Summary |
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.
|
| 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