CVE-2025-32415 Memory corruption in libxml2

Low 2.9 Published Updated

A heap-based buffer under-read in libxml2 allows attackers to cause denial of service or potentially execute code via crafted XML documents or schemas.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-32415?

CVE-2025-32415 is a low-severity memory corruption vulnerability in Xmlsoft Libxml2, published on 17 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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. To exploit this, a crafted XML document must be validated against an XML schema with certain identity constraints, or a crafted XML schema must be used.

Weakness: CWE-125, CWE-1284

Which versions are affected by CVE-2025-32415?

3 open source packages ship an affected version, including java, java-min and jre. It affects 1 product.

PackageAffectedFixed in
java BitnamiAll versions1.8.0, 8.0.461
java-min BitnamiAll versions1.8.0, 8.0.461
jre BitnamiAll versions1.8.0, 8.0.461
Linux distribution packages (37)
libxml2 AlmaLinux:8All versions2.9.7-21.el8_10.3
libxml2-devel AlmaLinux:8All versions2.9.7-21.el8_10.3
python3-libxml2 AlmaLinux:8All versions2.9.7-21.el8_10.3
libxml2-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:2.9.7-21.el8_10.3
libxml2-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:2.9.7-21.el8_10.3
libxml2-devel Red Hat:enterprise_linux:8::appstreamAll versions0:2.9.7-21.el8_10.3
python3-libxml2-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:2.9.7-21.el8_10.3
libxml2 Red Hat:enterprise_linux:8::baseosAll versions0:2.9.7-21.el8_10.3
libxml2-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:2.9.7-21.el8_10.3
libxml2-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:2.9.7-21.el8_10.3
python3-libxml2 Red Hat:enterprise_linux:8::baseosAll versions0:2.9.7-21.el8_10.3
python3-libxml2-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:2.9.7-21.el8_10.3
libxml2-debuginfo Red Hat:rhel_aus:8.2::appstreamAll versions0:2.9.7-9.el8_2.5
libxml2-debugsource Red Hat:rhel_aus:8.2::appstreamAll versions0:2.9.7-9.el8_2.5
libxml2-devel Red Hat:rhel_aus:8.2::appstreamAll versions0:2.9.7-9.el8_2.5
python3-libxml2-debuginfo Red Hat:rhel_aus:8.2::appstreamAll versions0:2.9.7-9.el8_2.5
libxml2 Red Hat:rhel_aus:8.2::baseosAll versions0:2.9.7-9.el8_2.5
libxml2-debuginfo Red Hat:rhel_aus:8.2::baseosAll versions0:2.9.7-9.el8_2.5
libxml2-debugsource Red Hat:rhel_aus:8.2::baseosAll versions0:2.9.7-9.el8_2.5
python3-libxml2 Red Hat:rhel_aus:8.2::baseosAll versions0:2.9.7-9.el8_2.5
python3-libxml2-debuginfo Red Hat:rhel_aus:8.2::baseosAll versions0:2.9.7-9.el8_2.5
libxml2-debuginfo Red Hat:rhel_aus:8.4::appstreamAll versions0:2.9.7-9.el8_4.8
libxml2-debugsource Red Hat:rhel_aus:8.4::appstreamAll versions0:2.9.7-9.el8_4.8
libxml2-devel Red Hat:rhel_aus:8.4::appstreamAll versions0:2.9.7-9.el8_4.8
python3-libxml2-debuginfo Red Hat:rhel_aus:8.4::appstreamAll versions0:2.9.7-9.el8_4.8
libxml2 Red Hat:rhel_aus:8.4::baseosAll versions0:2.9.7-9.el8_4.8
libxml2-debuginfo Red Hat:rhel_aus:8.4::baseosAll versions0:2.9.7-9.el8_4.8
libxml2-debugsource Red Hat:rhel_aus:8.4::baseosAll versions0:2.9.7-9.el8_4.8
python3-libxml2 Red Hat:rhel_aus:8.4::baseosAll versions0:2.9.7-9.el8_4.8
python3-libxml2-debuginfo Red Hat:rhel_aus:8.4::baseosAll versions0:2.9.7-9.el8_4.8
libxml2-debuginfo Red Hat:rhel_aus:8.6::appstreamAll versions0:2.9.7-13.el8_6.12
libxml2-debugsource Red Hat:rhel_aus:8.6::appstreamAll versions0:2.9.7-13.el8_6.12
libxml2-devel Red Hat:rhel_aus:8.6::appstreamAll versions0:2.9.7-13.el8_6.12
python3-libxml2-debuginfo Red Hat:rhel_aus:8.6::appstreamAll versions0:2.9.7-13.el8_6.12
libxml2 Red Hat:rhel_aus:8.6::baseosAll versions0:2.9.7-13.el8_6.12
libxml2-debuginfo Red Hat:rhel_aus:8.6::baseosAll versions0:2.9.7-13.el8_6.12
libxml2-debugsource Red Hat:rhel_aus:8.6::baseosAll versions0:2.9.7-13.el8_6.12

Products include Xmlsoft Libxml2.

How do I fix CVE-2025-32415?

Upgrade java to a fixed version for your release line: 1.8.0 or 8.0.461.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-32415 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-32415 exists.

All Xmlsoft Libxml2 vulnerabilities

Sources

Also known as ALPINE-CVE-2025-32415, ALSA-2025:13203, AZL-60863, AZL-60886, BELL-CVE-2025-32415, BIT-java-2025-32415 and 24 more.

Is CVE-2025-32415 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free