{"id":"CVE-2024-58378","aliases":[],"url":"https://o3.security/vulnerability/CVE-2024-58378","summary":"Nokogiri before 1.15.6 and 1.16.x before 1.16.2 (CRuby, when using the packaged libxml2) is affected by a use-after-free vulnerability in libxml2 (CVE-2024-25062) in the xmlTextReader…","details":"Nokogiri before 1.15.6 and 1.16.x before 1.16.2 (CRuby, when using the packaged libxml2) is affected by a use-after-free vulnerability in libxml2 (CVE-2024-25062) in the xmlTextReader module, which underlies Nokogiri::XML::Reader. When using the XML Reader interface with DTD validation and XInclude expansion enabled, processing a crafted XML document can lead to an xmlValidatePopElement use-after-free. Nokogiri 1.15.6 and 1.16.2 resolve this by upgrading the packaged libxml2 to 2.11.7 and 2.12.5 respectively. JRuby and installations using system libxml2 are not affected.","published":"2026-08-25T16:16:45.153","modified":"2026-08-25T16:16:45.153","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[],"fix":{"url":"https://github.com/sparklemotion/nokogiri/commit/92721970","label":"sparklemotion/nokogiri@9272197"},"references":[{"type":"WEB","url":"https://github.com/sparklemotion/nokogiri/commit/92721970"},{"type":"WEB","url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/nokogiri-before-use-after-free-via-xmltextreader"}],"provenance":{"sources":["OSV.dev","NVD","FIRST.org (EPSS)"],"lastVerified":"2026-08-25T16:16:45.153"}}