CVE-2025-71346
Received Received - Intake

Heap-based Buffer Under-read in Nokogiri

Vulnerability report for CVE-2025-71346, 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.8 packages a vulnerable version of libxml2 (before 2.13.8) that contains a heap-based buffer under-read (CVE-2025-32415) in the xmlSchemaIDCFillNodeTables function in xmlschemas.c. The issue can be triggered when validating against an untrusted XML Schema, or when validating untrusted documents against trusted schemas that use xsd:keyref in combination with recursively defined types that have additional identity constraints. Upstream and MITRE rate this issue as low severity.

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 5 associated CPEs
Vendor Product Version / Range
sparklemotion nokogiri to 1.18.8 (exc)
gnome libxml2 to 2.13.8 (exc)
gnome libxml2 to 2.14.2 (exc)
nokogiri nokogiri to 1.18.8 (exc)
libxml2 libxml2 to 2.13.8 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads 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

This vulnerability is a heap-based buffer under-read in libxml2 versions before 2.13.8, included in Nokogiri before 1.18.8. It occurs when validating XML against untrusted schemas or documents with specific identity constraints, such as xsd:keyref with recursive types. The issue can be triggered by crafted XML input.

Detection Guidance

Detection involves checking the installed versions of Nokogiri and libxml2. Use commands like 'gem list nokogiri' to check Nokogiri version and 'xml2-config --version' or 'ldconfig -p | grep libxml2' to check libxml2 version. If Nokogiri is below 1.18.8 or libxml2 is below 2.13.8, the system is vulnerable.

Impact Analysis

Exploitation could lead to information disclosure or application crashes due to the buffer under-read. However, it requires a specially crafted XML document or schema, making real-world impact limited. The vulnerability is rated low severity by upstream and MITRE.

Compliance Impact

The vulnerability involves a low-severity heap-based buffer under-read in libxml2, which requires specific conditions like crafted XML documents or schemas for exploitation. It does not directly impact data confidentiality or integrity in typical use cases, so compliance with standards like GDPR or HIPAA is unlikely to be significantly affected unless the system processes untrusted XML data with identity constraints.

Mitigation Strategies

Upgrade Nokogiri to version 1.18.8 or later, which bundles a patched libxml2 version (2.13.8). This addresses the heap-based buffer under-read vulnerability in libxml2. Verify the upgrade with version checks after installation.

Chat Assistant

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

EPSS Chart