CVE-2025-71407 PUBLISHED

Nokogiri before 1.18.3 Stack Buffer Overflow and Use-After-Free

Assigner: VulnCheck
Reserved: 18.07.2026 Published: 25.08.2026 Updated: 25.08.2026

Nokogiri before 1.18.3 contains a stack buffer overflow vulnerability in libxml2 when reporting DTD validation errors with long QName prefixes, and a use-after-free vulnerability during validation against untrusted XML Schemas. Attackers can trigger these vulnerabilities by providing malicious DTD content or untrusted XSD files to cause denial of service or potential code execution.

Metrics

CVSS Vector: 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
CVSS Score: 9.3

Product Status

Vendor sparklemotion
Product nokogiri
Versions Default: unaffected
  • affected from 0 to 1.18.3 (excl.)
  • Version 1.18.3 is unaffected

References

Problem Types

  • Out-of-bounds Write CWE