CVE-2024-25062 Use after free in n/a
Attackers can trigger a use-after-free in libxml2 via crafted XML when DTD validation and XInclude are enabled, potentially causing crashes or code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-25062?
CVE-2024-25062 is a high-severity use after free vulnerability in Xmlsoft Libxml2, published on 4 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-416
Which versions are affected by CVE-2024-25062?
3 open source packages ship an affected version, including java, java-min and jre. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
java Bitnami | All versions | 1.8.0, 8.0.431 |
java-min Bitnami | All versions | 1.8.0, 8.0.431 |
jre Bitnami | All versions | 1.8.0, 8.0.431 |
Linux distribution packages (37)
libxml2 AlmaLinux:8 | All versions | 2.9.7-18.el8_10.1 |
libxml2-devel AlmaLinux:8 | All versions | 2.9.7-18.el8_10.1 |
python3-libxml2 AlmaLinux:8 | All versions | 2.9.7-18.el8_10.1 |
libxml2 AlmaLinux:9 | All versions | 2.9.13-6.el9_4 |
libxml2-devel AlmaLinux:9 | All versions | 2.9.13-6.el9_4 |
python3-libxml2 AlmaLinux:9 | All versions | 2.9.13-6.el9_4 |
libxml2-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.1 |
libxml2-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.1 |
libxml2-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.1 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.1 |
libxml2 Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.1 |
libxml2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.1 |
libxml2-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.1 |
python3-libxml2 Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.1 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.1 |
libxml2-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_4 |
libxml2-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_4 |
libxml2-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_4 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_4 |
libxml2 Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_4 |
libxml2-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_4 |
libxml2-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_4 |
python3-libxml2 Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_4 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_4 |
libxml2-debuginfo Red Hat:rhel_eus:8.6::appstream | All versions | 0:2.9.7-13.el8_6.5 |
libxml2-debugsource Red Hat:rhel_eus:8.6::appstream | All versions | 0:2.9.7-13.el8_6.5 |
libxml2-devel Red Hat:rhel_eus:8.6::appstream | All versions | 0:2.9.7-13.el8_6.5 |
python3-libxml2-debuginfo Red Hat:rhel_eus:8.6::appstream | All versions | 0:2.9.7-13.el8_6.5 |
libxml2 Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.9.7-13.el8_6.5 |
libxml2-debuginfo Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.9.7-13.el8_6.5 |
libxml2-debugsource Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.9.7-13.el8_6.5 |
python3-libxml2 Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.9.7-13.el8_6.5 |
python3-libxml2-debuginfo Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.9.7-13.el8_6.5 |
libxml2-debuginfo Red Hat:rhel_eus:8.8::appstream | All versions | 0:2.9.7-16.el8_8.4 |
libxml2-debugsource Red Hat:rhel_eus:8.8::appstream | All versions | 0:2.9.7-16.el8_8.4 |
libxml2-devel Red Hat:rhel_eus:8.8::appstream | All versions | 0:2.9.7-16.el8_8.4 |
python3-libxml2-debuginfo Red Hat:rhel_eus:8.8::appstream | All versions | 0:2.9.7-16.el8_8.4 |
Products include Xmlsoft Libxml2.
How do I fix CVE-2024-25062?
Upgrade java to a fixed version for your release line: 1.8.0 or 8.0.431.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-25062 being exploited?
There is no known exploitation of CVE-2024-25062 in the wild and no public exploit code.
Other vulnerabilities in Xmlsoft Libxml2
Sources
Also known as ALPINE-CVE-2024-25062, ALSA-2024:2679, ALSA-2024:3626, AZL-34290, AZL-34961, BELL-CVE-2024-25062 and 35 more.