← Terug naar overzicht

Nokogiri versions before 1.15.6 and 1.16.x before 1.16.2 (CRuby with packaged libxml2) are affected by a use-after-free vulnerability in libxml2 tracked as CVE-2024-25062. The flaw exists in the xmlTextReader module, which underlies Nokogiri::XML::Reader. Exploitation requires using the XML Reader interface with DTD validation and XInclude expansion enabled, where processing a crafted XML document can trigger an xmlValidatePopElement use-after-free condition. The vulnerability is resolved in Nokogiri 1.15.6 and 1.16.2 by upgrading the packaged libxml2 to versions 2.11.7 and 2.12.5 respectively. JRuby-based installations and those using the system-installed libxml2 are not affected by this issue.

Affected products

  • Nokogiri
  • libxml2

Related CVE's

  • CVE-2024-25062
  • CVE-2024-58378

Categories

  • Supply Chain & Dependencies
  • Web Technologies