CVE-2024-58378
Use-after-free in Nokogiri's XML Reader (vendored libxml2) enabling crash or RCE via crafted XML
Is CVE-2024-58378 being exploited?
Not confirmed. CVE-2024-58378 does not appear in CISA's Known Exploited Vulnerabilities catalog, which records only exploitation that has been observed and reported publicly. That is evidence of absence of a report, not evidence the flaw is unattacked.
How severe is CVE-2024-58378?
CVE-2024-58378 is rated Critical with a CVSS score of 9.3. Severity describes how bad exploitation would be, not how likely it is: pair it with exploitation evidence before deciding what to patch first.
Is there a patch for CVE-2024-58378?
Yes. A fix has been recorded for CVE-2024-58378. The vendor advisory is the authority on the exact fixed version — apply it from there rather than from a summary.
What does CVE-2024-58378 affect?
CVE-2024-58378 affects Nokogiri < 1.15.6 (vendored libxml2), Nokogiri 1.16.x < 1.16.2 (vendored libxml2), CRuby installations using packaged libxml2. Confirm the exact affected versions against the vendor advisory before deciding you are exposed.
What should I do about CVE-2024-58378?
Upgrade to Nokogiri 1.15.6 or 1.16.2 or use system libxml2; patch immediately
Exploitation status reflects CISA's KEV catalog as we last synced it. Check the catalog directly.
Processing crafted XML with DTD validation + XInclude can trigger a use-after-free, causing crashes or possible remote code execution.
Immediate action required