Heap-Based Buffer Under-Read in libxml2: CVE-2025-32415

libxml2 Updated 02 Oct 2025

Summary

17/04/2025
N/A
Yes i
High
7.5

ALPINE-CVE-2025-32415: In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in xmlschemas.c has a heap-based buffer under-read. Affects libxml2 versions < 2.11.8-r3. Fixed in 2.11.8-r3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libxml2 is a widely used XML parsing library that provides tools for parsing, validating, and manipulating XML documents. It is known for its performance and compliance with XML standards. However, certain versions of libxml2 are vulnerable to a heap-based buffer under-read, which can lead to potential security risks when processing crafted XML documents.

Vulnerability Detail

The vulnerability identified as CVE-2025-32415 arises from the function xmlSchemaIDCFillNodeTables in xmlschemas.c, which is present in libxml2 versions prior to 2.13.8 and 2.14.x before 2.14.2. This flaw allows an attacker to exploit a crafted XML document that is validated against an XML schema with specific identity constraints, or by using a crafted XML schema itself. The consequences of this vulnerability include potential information disclosure and application crashes, making it critical for users to address it promptly.

How To Fix

Minimum fixed version

2.11.8-r3

This is the first release that contains the fix.

sudo apk add --upgrade libxml2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid processing untrusted XML documents or schemas until the library is updated. Implement strict validation checks on XML inputs to minimize the risk of exploitation.

Conclusion

CVE-2025-32415 represents a significant security risk for applications using vulnerable versions of libxml2. It is crucial for users to update to the patched versions to protect against potential exploitation. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

CVE-2025-32415 is a vulnerability in libxml2 that allows for a heap-based buffer under-read, potentially leading to security issues when processing crafted XML documents.

Versions of libxml2 prior to 2.13.8 and 2.14.x before 2.14.2 are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

The CVSS score for CVE-2025-32415 is 7.5, indicating a high severity level.

If an immediate update is not possible, avoid processing untrusted XML documents and implement strict validation checks to minimize risk.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.11.8-r3

This is the first release that contains the fix.

sudo apk add --upgrade libxml2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback