CVE-2022-49043 Use after free in libxml2
A use-after-free vulnerability in libxml2 allows attackers to execute arbitrary code or cause a denial of service via crafted XML input.
- 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-2022-49043?
CVE-2022-49043 is a high-severity use after free vulnerability in Xmlsoft Libxml2, published on 26 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
xmlXIncludeAddNode in xinclude.c in libxml2 before 2.11.0 has a use-after-free.
Weakness: CWE-416
Which versions are affected by CVE-2022-49043?
It affects 1 product.
Linux distribution packages (40)
libxml2 AlmaLinux:8 | All versions | 2.9.7-18.el8_10.2 |
libxml2-devel AlmaLinux:8 | All versions | 2.9.7-18.el8_10.2 |
python3-libxml2 AlmaLinux:8 | All versions | 2.9.7-18.el8_10.2 |
libxml2 AlmaLinux:9 | All versions | 2.9.13-6.el9_5.1 |
libxml2-devel AlmaLinux:9 | All versions | 2.9.13-6.el9_5.1 |
python3-libxml2 AlmaLinux:9 | All versions | 2.9.13-6.el9_5.1 |
libxml2-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.2 |
libxml2-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.2 |
libxml2-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.2 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.9.7-18.el8_10.2 |
libxml2 Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.2 |
libxml2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.2 |
libxml2-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.2 |
python3-libxml2 Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.2 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.9.7-18.el8_10.2 |
libxml2-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_5.1 |
libxml2-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_5.1 |
libxml2-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_5.1 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:2.9.13-6.el9_5.1 |
libxml2 Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_5.1 |
libxml2-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_5.1 |
libxml2-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_5.1 |
python3-libxml2 Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_5.1 |
python3-libxml2-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:2.9.13-6.el9_5.1 |
libxml2-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:2.9.13-3.el9_2.4 |
libxml2-debugsource Red Hat:rhel_eus:9.2::appstream | All versions | 0:2.9.13-3.el9_2.4 |
libxml2-devel Red Hat:rhel_eus:9.2::appstream | All versions | 0:2.9.13-3.el9_2.4 |
python3-libxml2-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:2.9.13-3.el9_2.4 |
libxml2 Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.9.13-3.el9_2.4 |
libxml2-debuginfo Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.9.13-3.el9_2.4 |
libxml2-debugsource Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.9.13-3.el9_2.4 |
python3-libxml2 Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.9.13-3.el9_2.4 |
python3-libxml2-debuginfo Red Hat:rhel_eus:9.2::baseos | All versions | 0:2.9.13-3.el9_2.4 |
libxml2 Rocky Linux:8 | All versions | 0:2.9.7-18.el8_10.2 |
libxml2 SUSE:Enterprise Storage 7.1 | All versions | 2.9.7-150000.3.73.1 |
python-libxml2-python SUSE:Enterprise Storage 7.1 | All versions | 2.9.7-150000.3.73.1 |
libxml2 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.9.7-150000.3.73.1 |
python-libxml2-python SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.9.7-150000.3.73.1 |
libxml2 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.9.14-150400.5.35.1 |
libxml2-python SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.9.14-150400.5.35.1 |
Products include Xmlsoft Libxml2.
How do I fix CVE-2022-49043?
Upgrade to a fixed version.
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-2022-49043 being exploited?
There is no known exploitation of CVE-2022-49043 in the wild and no public exploit code.
Other vulnerabilities in Xmlsoft Libxml2
Sources
Also known as ALSA-2025:1350, ALSA-2025:1517, AZL-55967, CLSA-2025-1739961336, CLSA-2025-1742577756, CLSA-2025-1742578098 and 21 more.