CyberRota Analysis
AI-GeneratedNokogiri versions prior to 1.19.4 are vulnerable to an out-of-bounds memory read due to a lack of type checking in the internal Node#initialize_copy_with_args method, which can lead to application crashes if misused by developers. This vulnerability is primarily a concern for developers using CRuby who may inadvertently call this protected method with incorrect argument types. It is recommended that users upgrade to version 1.19.4 or later to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Nokogiri versions before 1.19.4 contain a possible invalid (out-of-bounds) memory read in the protected internal Node#initialize_copy_with_args helper behind Node#dup and #clone, which unwrapped its source argument as an xmlNode without a type check. If application code calls this protected method with a non-Node argument (e.g., a Namespace), it reads an xmlNs out of bounds, crashing the process. This is only triggerable by a programming error and cannot be triggered by untrusted input or normal use of the public API. Only CRuby is affected. Version 1.19.4 adds a type check and raises TypeError.