LiveActive security incident?Get immediate response
CVE Record

CVE-2025-71346: Nokogiri before 1.18.8 Heap Buffer Under-read via XML Schema

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.

HighCVSS 8.7Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Nokogiri versions before 1.18.8 bundle a vulnerable libxml2 release. Specially structured XML schema-validation inputs may cause an out-of-bounds memory read and disrupt the processing application. Risk is concentrated in services performing XML Schema validation, especially with attacker-controlled schemas or documents. The sources do not support data theft, code execution, or active exploitation.

Executive priority

Treat this as a targeted remediation priority rather than an organization-wide emergency. Quickly identify externally reachable XML-validation workloads and upgrade those first. The high supplied CVSS availability score warrants attention, but narrow trigger conditions, low upstream severity, and no cited exploitation evidence reduce immediate business urgency for systems without untrusted schema-validation inputs.

Technical view

The bundled libxml2 before 2.13.8 contains a heap buffer under-read in xmlSchemaIDCFillNodeTables within xmlschemas.c. Trigger conditions include untrusted schemas, or untrusted XML validated against trusted schemas using xsd:keyref with recursively defined types and additional identity constraints. The supplied CVSS 4.0 score is 8.7, although upstream and MITRE reportedly classify severity as low.

Likely exposure

Exposure is most likely where Ruby applications use Nokogiri before 1.18.8 for XML Schema validation and accept attacker-influenced schemas or XML documents. Applications that do not perform schema validation, or cannot receive untrusted validation inputs, have substantially lower practical exposure. The bundle does not establish which platforms or Nokogiri packaging variants are affected.

Exploitation context

The source bundle reports no CISA KEV listing and provides no evidence of active exploitation or a public exploit. Exploitation requires particular XML Schema validation behavior, narrowing practical reach. The documented consequence is an under-read with availability impact; the supplied evidence does not establish remote code execution, confidentiality loss, or integrity loss.

Researcher notes

CVE-2025-71346 describes Nokogiri's packaging of the libxml2 flaw tracked as CVE-2025-32415. Severity signals conflict: the bundle supplies CVSS 4.0 8.7 with high availability impact, while reporting low upstream and MITRE severity. Researchers should preserve that distinction and avoid inferring code execution. The affected-version array is ambiguous, but the narrative consistently states versions before 1.18.8.

Mitigation direction

  • Upgrade Nokogiri to version 1.18.8 or later following the vendor advisory.
  • Prioritize internet-facing services that validate attacker-controlled XML schemas or documents.
  • Restrict untrusted XML Schema validation until affected dependencies are upgraded.
  • Review vendor guidance for platform-specific package or deployment requirements.

Validation and detection

  • Inventory deployed Nokogiri versions, including transitive dependencies and packaged production artifacts.
  • Identify code paths invoking XML Schema validation through Nokogiri.
  • Determine whether schemas or validated XML documents can be influenced by untrusted users.
  • Review trusted schemas for xsd:keyref, recursive types, and additional identity constraints.
  • Confirm rebuilt production artifacts contain Nokogiri 1.18.8 or later.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-125: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-71346 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.7 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
3Timeline events
1ADP providers
3Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.7CVSS 4.0HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NVulnCheck
2.9CVSS 3.1LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L1.41.4VulnCheck

Vulnerability scoring details

Base CVSS 4.0 score

8.7High
CVSS 4.0 vector shape for CVE-2025-71346Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
sparklemotionnokogiri0, 1.18.8unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-125 · source CWE mapping

Out-of-bounds Read

Out-of-bounds Read represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.