cve.bz

CVE-2024-25062 xmlsoft libxml2: Use After Free

7.5 highExploit referenceEPSS 1.3%

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

On this page
An issue was discovered in libxml2 before 2.11.7 and 2.12.x before 2.12.5. When using the XML Reader interface with DTD validation and XInclude expansion enabled, processing crafted XML documents can lead to an xmlValidatePopElement use-after-free.

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
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-05-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.
CWE
CWE-416 Use After Free
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-2024-25062 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-25062?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-25062?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-2024-25062 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.

Badge for a README or a site

CVE-2024-25062

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2024-25062](https://cve.bz/cve/badge/CVE-2024-25062.svg)](https://cve.bz/cve/CVE-2024-25062)

HTML:

<a href="https://cve.bz/cve/CVE-2024-25062"><img src="https://cve.bz/cve/badge/CVE-2024-25062.svg" alt="CVE-2024-25062"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmlsoft:libxml2before 2.11.7
xmlsoft:libxml2from 2.12.0 before 2.12.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libxml22.9.10+dfsg-6.7+deb11u6DLA-4064-1
Debian12libxml22.9.14+dfsg-1.3~deb12u2DEBIAN-CVE-2024-25062 DSA-5949-1
Debian13, 14libxml22.12.7+dfsg+really2.9.14-1DEBIAN-CVE-2024-25062
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.7UBUNTU-CVE-2024-25062 USN-6658-1
Ubuntu22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.4UBUNTU-CVE-2024-25062 USN-6658-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm6UBUNTU-CVE-2024-25062 USN-6658-2
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm6UBUNTU-CVE-2024-25062 USN-6658-2
UbuntuPro:18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.9+esm1UBUNTU-CVE-2024-25062 USN-6658-2
Red Hatenterprise_linux:8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-18.el8_10.1RHSA-2024:3626
Red Hatenterprise_linux:8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-18.el8_10.1RHSA-2024:3626
Red Hatenterprise_linux:9::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-6.el9_4RHSA-2024:2679
Red Hatenterprise_linux:9::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.13-6.el9_4RHSA-2024:2679
Red Hatrhel_eus:8.6::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-13.el8_6.5RHSA-2024:3299
Red Hatrhel_eus:8.6::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-13.el8_6.5RHSA-2024:3299
Red Hatrhel_eus:8.8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-16.el8_8.4RHSA-2024:3303
Red Hatrhel_eus:8.8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-16.el8_8.4RHSA-2024:3303
Red Hatrhel_eus:9.2::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-3.el9_2.3RHSA-2024:3625
Red Hatrhel_eus:9.2::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.13-3.el9_2.3RHSA-2024:3625
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 5 morelibxml2, python-libxml2-python2.9.7-150000.3.66.1SUSE-SU-2024:0461-2
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morelibxml2, libxml2-python2.9.14-150400.5.28.1SUSE-SU-2024:0613-2
SUSELinux Enterprise Micro 5.1libxml22.9.7-150000.3.66.1SUSE-SU-2024:0461-1 SUSE-SU-2024:0461-2
SUSELinux Enterprise Micro 5.2libxml2, python-libxml2-python2.9.7-150000.3.66.1SUSE-SU-2024:0461-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4libxml2, libxml2-python2.9.14-150400.5.28.1SUSE-SU-2024:0613-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5libxml2, libxml2-python2.10.3-150500.5.14.1SUSE-SU-2024:0555-1
SUSELinux Enterprise Module for Python 3 15 SP5libxml2-python2.10.3-150500.5.14.1SUSE-SU-2024:0555-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5libxml2, python-libxml22.9.4-46.71.1SUSE-SU-2024:0556-1
SUSELinux Enterprise Software Development Kit 12 SP5libxml22.9.4-46.71.1SUSE-SU-2024:0556-1
openSUSELeap 15.5libxml2, libxml2-python2.10.3-150500.5.14.1SUSE-SU-2024:0555-1
openSUSELeap 15.5python-libxml2-python2.9.7-150000.3.66.1SUSE-SU-2024:0461-1 SUSE-SU-2024:0461-2
openSUSELeap Micro 5.3, Leap Micro 5.4libxml2, libxml2-python2.9.14-150400.5.28.1SUSE-SU-2024:0613-1 SUSE-SU-2024:0613-2
openSUSETumbleweedlibxml22.11.6-2.1openSUSE-SU-2024:13676-1
AlmaLinux8libxml2, libxml2-devel, python3-libxml22.9.7-18.el8_10.1ALSA-2024:3626
AlmaLinux9libxml2, libxml2-devel, python3-libxml22.9.13-6.el9_4ALSA-2024:2679
Rocky Linux8libxml20:2.9.7-18.el8_10.1RLSA-2024:3626
Rocky Linux9libxml20:2.9.13-6.el9_4RLSA-2024:2679
Alpinev3.18, v3.19libxml22.11.7-r0ALPINE-CVE-2024-25062
Alpinev3.19qt6-qtwebengine6.6.1-r9ALPINE-CVE-2024-25062
Alpinev3.20, v3.21, v3.22 and 2 morelibxml22.12.5-r0ALPINE-CVE-2024-25062
Alpinev3.20, v3.21, v3.22 and 2 moreqt6-qtwebengine6.6.3-r1ALPINE-CVE-2024-25062
Azure Linux2libxml22.10.4-4AZL-34290
Azure Linux3libxml22.11.5-4AZL-34961
Alpaquita23libxml22.10.4-r1BELL-CVE-2024-25062
Alpaquitastreamlibxml22.12.5-r0BELL-CVE-2024-25062
BellSoft Hardened Containers23libxml22.10.4-r1BELL-CVE-2024-25062
BellSoft Hardened Containersstreamlibxml22.12.5-r0BELL-CVE-2024-25062

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

The severity of this vulnerability is not important but moderate due to the lack of impact to both confidentiality and integrity, but potential impact to availability. The theoretical risk of impact to availability is limited due to the specific requirement that applications must continue to misuse the reader API after it has already reported validation errors instead of handling those errors. The flaw requires that crafted XML documents can be provided by an attacker and the utilization of DTD validation and XInclude expansion using the XMLReader API. Along with those conditions, the application using the XMLReader API must be ignoring errors when expanding invalid XInclude nodes in an maliciously crafted document. These conditions are unlikely to exist in the intended usage of the XMLReader API.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't 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 8libxml2-0:2.9.7-18.el8_10.1Fixed 2024-06-05RHSA-2024:3626
Red Hat Enterprise Linux 8.6 Extended Update Supportlibxml2-0:2.9.7-13.el8_6.5Fixed 2024-05-22RHSA-2024:3299
Red Hat Enterprise Linux 8.8 Extended Update Supportlibxml2-0:2.9.7-16.el8_8.4Fixed 2024-05-23RHSA-2024:3303
Red Hat Enterprise Linux 9libxml2-0:2.9.13-6.el9_4Fixed 2024-05-02RHSA-2024:2679
Red Hat Enterprise Linux 9.2 Extended Update Supportlibxml2-0:2.9.13-3.el9_2.3Fixed 2024-06-05RHSA-2024:3625
Red Hat JBoss Core Serviceslibxml2Fixed 2024-03-18RHSA-2024:1317
Red Hat Enterprise Linux 6libxml2Out of support scope
Red Hat Enterprise Linux 7libxml2Out of support scope
Red Hat Satellite 6puppet-agentAffected

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-2024-25062.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-228-06Siemens SINEC NMS2024-08-13MultipleSINEC NMSnone listed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON