# CVE-2024-58378

## Summary

- **CVE ID:** CVE-2024-58378
- **Severity:** CRITICAL
- **CVSS Score:** 9.8 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N)
- **CWE:** CWE-416
- **Published:** Aug 25, 2026
- **Last Modified:** Sep 1, 2026

## Description

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.

## Affected Products

- sparklemotion — nokogiri (1.16.0)
- sparklemotion — nokogiri (1.16.2)
- sparklemotion — nokogiri (0)
- sparklemotion — nokogiri (1.15.6)

## References

- [CNA](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j)
- [CNA](https://github.com/sparklemotion/nokogiri/commit/92721970)
- [CNA](https://www.vulncheck.com/advisories/nokogiri-before-use-after-free-via-xmltextreader)
- [CNA](https://github.com/GNOME/libxml2/commit/92721970)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 0.34%
- **EPSS Percentile:** 27.0

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-18._