CVE-2025-71407
Received Received - Intake

Stack Buffer Overflow and Use-After-Free in Nokogiri

Vulnerability report for CVE-2025-71407, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
sparklemotion nokogiri to 1.18.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

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

Detection Guidance

To detect this vulnerability, check the installed version of Nokogiri using the command: gem list nokogiri. If the version is below 1.18.3, the system is vulnerable. Additionally, inspect XML processing workflows for DTD validation errors or untrusted XSD files.

Impact Analysis

This vulnerability can lead to denial of service or potential code execution if exploited. Attackers could crash applications or run arbitrary code by providing specially crafted XML content.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling denial of service attacks or code execution through malicious XML processing. Unauthorized data access or system disruption may violate data protection requirements under these regulations.

Mitigation Strategies

Upgrade Nokogiri to version 1.18.3 or later using the command: gem install nokogiri -v 1.18.3. This updates the bundled libxml2 dependency to 2.13.6, addressing the stack buffer overflow and use-after-free vulnerabilities.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-71407. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart