CVE-2024-25062: Use After Free

Published Feb 4, 2024
·
Updated

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.

Affected Software

20 affected componentsFixes available
redhat/libxml2 2.11.7 and libxml2<2.12.5
2.12.5
Xmlsoft Libxml2<2.11.7
Xmlsoft Libxml2>=2.12.0<2.12.5
debian/libxml2<2.9.14+dfsg-1.3~deb12u2
2.9.14+dfsg-1.3~deb12u2
debian/libxml2<2.12.7+dfsg+really2.9.14-1
2.12.7+dfsg+really2.9.14-1
debian/libxml2<2.12.7+dfsg+really2.9.14-1
2.12.7+dfsg+really2.9.14-1
debian/libxml2
2.9.14+dfsg-1.3~deb12u62.9.14+dfsg-1.3~deb12u42.12.7+dfsg+really2.9.14-2.1+deb13u32.12.7+dfsg+really2.9.14-2.1+deb13u12.15.4+dfsg-1
alpine/libxml2>=2.12.0<2.11.7-r0
2.11.7-r0
alpine/libxml2>=2.12.0<2.11.7-r0
2.11.7-r0
alpine/libxml2>=2.12.0<2.12.5-r0
2.12.5-r0
alpine/libxml2>=2.12.0<2.12.5-r0
2.12.5-r0
alpine/libxml2>=2.12.0<2.12.5-r0
2.12.5-r0
alpine/libxml2>=2.12.0<2.12.5-r0
2.12.5-r0
alpine/libxml2>=2.12.0<2.12.5-r0
2.12.5-r0
alpine/qt6-qtwebengine<6.6.1-r9
6.6.1-r9
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libxml2 2.11.7 and libxml2 to a version that resolves this vulnerability.

    Fixed in 2.12.5
  2. Upgrade

    Upgrade debian/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.14+dfsg-1.3~deb12u2
  3. Upgrade

    Upgrade debian/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.12.7+dfsg+really2.9.14-1
  4. Upgrade

    Upgrade debian/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.14+dfsg-1.3~deb12u6Fixed in 2.9.14+dfsg-1.3~deb12u4Fixed in 2.12.7+dfsg+really2.9.14-2.1+deb13u3Fixed in 2.12.7+dfsg+really2.9.14-2.1+deb13u1Fixed in 2.15.4+dfsg-1
  5. Upgrade

    Upgrade alpine/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.11.7-r0
  6. Upgrade

    Upgrade alpine/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.12.5-r0
  7. Upgrade

    Upgrade alpine/qt6-qtwebengine to a version that resolves this vulnerability.

    Fixed in 6.6.1-r9
  8. Upgrade

    Upgrade alpine/qt6-qtwebengine to a version that resolves this vulnerability.

    Fixed in 6.6.3-r1
  9. Upgrade

    Upgrade libxml2 to a version that resolves this vulnerability.

    Fixed in 2.11.7
  10. Upgrade

    Upgrade libxml2 to a version that resolves this vulnerability.

    Fixed in 2.12.5

Event History

Feb 4, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Feb 5, 2024
Data Sourced
via Red Hat·04:29 AM
DescriptionSeverityAffected Software
Feb 4, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-25062?

CVE-2024-25062 is classified as a high severity vulnerability due to the potential for exploitation through crafted XML documents.

2

How do I fix CVE-2024-25062?

To address CVE-2024-25062, upgrade libxml2 to version 2.12.7 or later, or to 2.12.5 from Red Hat's distribution.

3

Which versions of libxml2 are affected by CVE-2024-25062?

Versions of libxml2 before 2.11.7 and between 2.12.0 and 2.12.5 are affected by CVE-2024-25062.

4

What type of vulnerability is CVE-2024-25062?

CVE-2024-25062 is a use-after-free vulnerability that occurs during XML processing with DTD validation and XInclude expansion.

5

Is CVE-2024-25062 exploitable remotely?

Yes, CVE-2024-25062 can be remotely exploited when processing maliciously crafted XML documents.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203