PT-2026-52451 · Rubygems · Nokogiri
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Name of the Vulnerable Software and Affected Versions
Nokogiri versions prior to 1.19.4
Description
In the Nokogiri XML and HTML library for Ruby, the
root= method of Nokogiri::XML::Document only validates that the new root is a Nokogiri::XML::Node. This allows a DTD (Document Type Definition) node to be set as the document root, resulting in a heap use-after-free during garbage collection or finalization. This condition can lead to an invalid memory read or a segmentation fault (segfault), which is an abrupt termination of a program due to an illegal memory access.Recommendations
Update to version 1.19.4.
Exploit
Fix
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nokogiri