CVE-2025-49795Libxml: null pointer dereference leads to denial of service (dos)
A NULL pointer dereference vulnerability was found in libxml2 when processing XPath XML expressions. This flaw allows an attacker to craft a malicious XML input to libxml2, leading to a denial of service.
What to do
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | libxml2 | Fixed | 2.14.5+dfsg-0.2 | UBUNTU-CVE-2025-49795 |
| Ubuntu 24.04 | libxml2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libxml2 | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 10 | libxml2 | Fixed | 0:2.12.5-7.el10_0 | RHSA-2025:10630 |
| Red Hat Enterprise Linux 10 | libxml2-devel | Fixed | 0:2.12.5-7.el10_0 | RHSA-2025:10630 |
| Red Hat Enterprise Linux 10 | libxml2-static | Fixed | 0:2.12.5-7.el10_0 | RHSA-2025:10630 |
| Red Hat Enterprise Linux 10 | python3-libxml2 | Fixed | 0:2.12.5-7.el10_0 | RHSA-2025:10630 |
| Red Hat Enterprise Linux 9 | libxml2 | Not affected | ||
| Red Hat Enterprise Linux 9 | libxml2-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-libxml2 | Not affected | ||
| Red Hat Enterprise Linux 8 | libxml2 | Not affected | ||
| Red Hat Enterprise Linux 8 | libxml2-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-libxml2 | Not affected | ||
| Red Hat Enterprise Linux 7 | libxml2 | Not affected | ||
| Red Hat Enterprise Linux 7 | libxml2-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libxml2-python | Not affected | ||
| Red Hat Enterprise Linux 7 | libxml2-static | Not affected | ||
| Red Hat Enterprise Linux 6 | libxml2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-static | Will not fix Out of support scope | ||
| AlmaLinux 10 | libxml2 | Fixed | 2.12.5-7.el10_0 | ALSA-2025:10630 |
| AlmaLinux 10 | libxml2-devel | Fixed | 2.12.5-7.el10_0 | ALSA-2025:10630 |
| AlmaLinux 10 | libxml2-static | Fixed | 2.12.5-7.el10_0 | ALSA-2025:10630 |
| AlmaLinux 10 | python3-libxml2 | Fixed | 2.12.5-7.el10_0 | ALSA-2025:10630 |
| Rocky Linux 10 | libxml2 | Fixed | 0:2.12.5-7.el10_0 | RLSA-2025:10630 |
| Alpine Linux 3.24 | libxml2 | Fixed | 2.13.9-r0 | ALPINE-CVE-2025-49795 |
| Alpine Linux 3.23 | libxml2 | Fixed | 2.13.9-r0 | ALPINE-CVE-2025-49795 |
| Alpine Linux 3.22 | libxml2 | Fixed | 2.13.9-r0 | ALPINE-CVE-2025-49795 |
| Alpine Linux 3.21 | libxml2 | Fixed | 2.13.9-r0 | ALPINE-CVE-2025-49795 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNOME libxml2: affected: 2.10.0 to before 2.14.5; fixed in
2.14.5 - Red Hat Enterprise Linux 10
- Red Hat JBoss Core Services 2.4.62.SP2
- Red Hat Hardened Images
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Workaround: Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2025:10630 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:19020 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:7519 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2025:10630
- https://access.redhat.com/errata/RHSA-2025:19020
- https://access.redhat.com/errata/RHSA-2026:7519
- https://access.redhat.com/security/cve/CVE-2025-49795
- https://bugzilla.redhat.com/show_bug.cgi?id=2372379
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/932
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.