cve.bz

CVE-2025-32414 xmlsoft libxml2: Unchecked Return Value

7.5 highExploit referenceEPSS 0.4%Fix available

High (7.5) in xmlsoft libxml2. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
In libxml2 before 2.13.8 and 2.14.x before 2.14.2, out-of-bounds memory access can occur in the Python API (Python bindings) because of an incorrect return value. This occurs in xmlPythonFileRead and xmlPythonFileReadRaw because of a difference between bytes and characters.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-252 Unchecked Return Value
CWE-393 Return of Wrong Status Code
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-32414 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-32414?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-32414?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-32414 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
xmlsoft libxml2before 2.13.8
xmlsoft libxml2from 2.14.0 before 2.14.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libxml22.9.10+dfsg-6.7+deb11u7DLA-4146-1
Debian12libxml22.9.14+dfsg-1.3~deb12u2DEBIAN-CVE-2025-32414 DSA-5949-1
Debian13, 14libxml22.12.7+dfsg+really2.9.14-1DEBIAN-CVE-2025-32414
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.10UBUNTU-CVE-2025-32414 USN-7467-1
Ubuntu22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.7UBUNTU-CVE-2025-32414 USN-7467-1
Ubuntu24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.3UBUNTU-CVE-2025-32414 USN-7467-1
Ubuntu25.10libxml22.12.7+dfsg+really2.9.14-0.4ubuntu0.1UBUNTU-CVE-2025-32414
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm10UBUNTU-CVE-2025-32414 USN-7896-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm8UBUNTU-CVE-2025-32414 USN-7467-2
UbuntuPro:18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.9+esm3UBUNTU-CVE-2025-32414 USN-7467-2
Red Hatenterprise_linux:8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-20.el8_10RHSA-2025:8958
Red Hatenterprise_linux:8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-20.el8_10RHSA-2025:8958
Red Hatenterprise_linux:9::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-12.el9_6RHSA-2025:13428
Red Hatenterprise_linux:9::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.13-12.el9_6RHSA-2025:13428
Red Hatenterprise_linux:10.0libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-9.el10_0RHSA-2025:13429
Red Hathummingbird:1libxml2, libxml2-16, libxml2-devel and 2 more0:2.15.2-0.3.hum1RHSA-2026:7519
Red Hatrhel_aus:8.2::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_2.3RHSA-2025:12237
Red Hatrhel_aus:8.2::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_2.3RHSA-2025:12237
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_4.6RHSA-2025:12241
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_4.6RHSA-2025:12241
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-13.el8_6.10RHSA-2025:12098
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-13.el8_6.10RHSA-2025:12098
9 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.1libxml22.9.7-150000.3.79.1SUSE-SU-2025:1439-1
SUSELinux Enterprise Micro 5.2libxml2, python-libxml2-python2.9.7-150000.3.79.1SUSE-SU-2025:1439-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4libxml2, libxml2-python2.9.14-150400.5.41.1SUSE-SU-2025:1435-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP6libxml2, libxml2-python2.10.3-150500.5.26.1SUSE-SU-2025:1438-1
SUSELinux Enterprise Module for Python 3 15 SP6libxml2-python2.10.3-150500.5.26.1SUSE-SU-2025:1438-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libxml2, python-libxml22.9.4-46.84.1SUSE-SU-2025:1440-1
SUSELinux Micro 6.0libxml22.11.6-8.1SUSE-SU-2025:20333-1
SUSELinux Micro 6.1libxml22.11.6-slfo.1.1_3.1SUSE-SU-2025:20364-1
openSUSELeap 15.6libxml2, libxml2-python2.10.3-150500.5.26.1SUSE-SU-2025:1438-1
openSUSELeap 15.6python-libxml2-python2.9.7-150000.3.79.1SUSE-SU-2025:1439-1
openSUSETumbleweedlibxml22.13.8-1.1openSUSE-SU-2025:15019-1
AlmaLinux8libxml2, libxml2-devel, python3-libxml22.9.7-20.el8_10ALSA-2025:8958
AlmaLinux9libxml2, libxml2-devel, python3-libxml22.9.13-12.el9_6ALSA-2025:13428
AlmaLinux10libxml2, libxml2-devel, libxml2-static and 1 more2.12.5-9.el10_0ALSA-2025:13429
Rocky Linux8libxml20:2.9.7-20.el8_10RLSA-2025:8958
Rocky Linux9libxml20:2.9.13-12.el9_6RLSA-2025:13428
Rocky Linux10libxml20:2.12.5-9.el10_0RLSA-2025:13429
Alpinev3.18, v3.19libxml22.11.8-r3ALPINE-CVE-2025-32414
Alpinev3.20libxml22.12.10-r0ALPINE-CVE-2025-32414
Alpinev3.21libxml22.13.4-r6ALPINE-CVE-2025-32414
Alpinev3.22, v3.23, v3.24libxml22.13.8-r0ALPINE-CVE-2025-32414
Azure Linux2libxml22.10.4-7AZL-59722
Azure Linux3libxml22.11.5-5AZL-59740
Alpaquita23libxml22.10.4-r4BELL-CVE-2025-32414
Alpaquitastreamlibxml22.13.8-r0BELL-CVE-2025-32414
BellSoft Hardened Containers23libxml22.10.4-r4BELL-CVE-2025-32414
BellSoft Hardened Containersstreamlibxml22.13.8-r0BELL-CVE-2025-32414

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This bug affects parsing of text streams using:

- the Python bindings (pending deprecation: https://gitlab.gnome.org/GNOME/libxml2/-/issues/891)

- the libxml2 SAX driver drv_libxml2,

- the XML Reader API

Parsing of binary streams is not affected by this vulnerability.

The vulnerability exists in the libxml2 package the bug arises because of a mismatch between characters vs. bytes handling: functions xmlPythonFileRead and xmlPythonFileReadRaw may compute a length incorrectly (mistaking character count for byte count), but for a successful exploitation of this bug requires local access, on top of that the path to exploitation is non trivial, where handling of python binding's and specific input handling of bytes and characters are required which makes this outside the scope of an attacker and increases the attack complexity, for these reasons this has been marked as moderate by Red Hat.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libxml2-0:2.12.5-9.el10_0Fixed 2025-08-07RHSA-2025:13429
Red Hat Enterprise Linux 7 Extended Lifecycle Supportlibxml2-0:2.9.1-6.el7_9.10Fixed 2025-07-30RHSA-2025:12240
Red Hat Enterprise Linux 8libxml2-0:2.9.7-20.el8_10Fixed 2025-06-11RHSA-2025:8958
Red Hat Enterprise Linux 8.2 Advanced Update Supportlibxml2-0:2.9.7-9.el8_2.3Fixed 2025-07-30RHSA-2025:12237
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-9.el8_4.6Fixed 2025-07-30RHSA-2025:12241
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onlibxml2-0:2.9.7-9.el8_4.6Fixed 2025-07-30RHSA-2025:12241
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-13.el8_6.10Fixed 2025-07-29RHSA-2025:12098
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicelibxml2-0:2.9.7-13.el8_6.10Fixed 2025-07-29RHSA-2025:12098
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionslibxml2-0:2.9.7-13.el8_6.10Fixed 2025-07-29RHSA-2025:12098
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicelibxml2-0:2.9.7-16.el8_8.9Fixed 2025-07-30RHSA-2025:12239
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionslibxml2-0:2.9.7-16.el8_8.9Fixed 2025-07-30RHSA-2025:12239
Red Hat Enterprise Linux 9libxml2-0:2.9.13-12.el9_6Fixed 2025-08-07RHSA-2025:13428
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionslibxml2-0:2.9.13-1.el9_0.7Fixed 2025-08-12RHSA-2025:13684
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionslibxml2-0:2.9.13-3.el9_2.9Fixed 2025-08-12RHSA-2025:13683
Red Hat Enterprise Linux 9.4 Extended Update Supportlibxml2-0:2.9.13-12.el9_4Fixed 2025-08-12RHSA-2025:13677
Red Hat JBoss Core Services 2.4.62.SP1libxml2Fixed 2025-08-14RHSA-2025:13681
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202509030110-0Fixed 2025-09-11RHSA-2025:15308
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202509030117-0Fixed 2025-09-18RHSA-2025:15672
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202508270040-0Fixed 2025-09-04RHSA-2025:14853
Red Hat Enterprise Linux 6libxml2Affected
8 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-32414.

References

Check your stackJSON