CVEfocus › CVE database › CVE-2025-49795

CVE-2025-49795Libxml: null pointer dereference leads to denial of service (dos)

CVSS 7.5 HighEPSS 1.1% (higher than 67% of CVEs)Published 2025-06-16Updated 2026-11-23Assigner: redhat

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.

CWE-825

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

14Fixed
4Will not fix
12Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10libxml2Fixed2.14.5+dfsg-0.2UBUNTU-CVE-2025-49795
Ubuntu 24.04libxml2Not affected
vulnerable_code_not_present
Ubuntu 22.04libxml2Not affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10libxml2Fixed0:2.12.5-7.el10_0RHSA-2025:10630
Red Hat Enterprise Linux 10libxml2-develFixed0:2.12.5-7.el10_0RHSA-2025:10630
Red Hat Enterprise Linux 10libxml2-staticFixed0:2.12.5-7.el10_0RHSA-2025:10630
Red Hat Enterprise Linux 10python3-libxml2Fixed0:2.12.5-7.el10_0RHSA-2025:10630
Red Hat Enterprise Linux 9libxml2Not affected
Red Hat Enterprise Linux 9libxml2-develNot affected
Red Hat Enterprise Linux 9python3-libxml2Not affected
Red Hat Enterprise Linux 8libxml2Not affected
Red Hat Enterprise Linux 8libxml2-develNot affected
Red Hat Enterprise Linux 8python3-libxml2Not affected
Red Hat Enterprise Linux 7libxml2Not affected
Red Hat Enterprise Linux 7libxml2-develNot affected
Red Hat Enterprise Linux 7libxml2-pythonNot affected
Red Hat Enterprise Linux 7libxml2-staticNot affected
Red Hat Enterprise Linux 6libxml2Will not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-staticWill not fix
Out of support scope
AlmaLinux 10libxml2Fixed2.12.5-7.el10_0ALSA-2025:10630
AlmaLinux 10libxml2-develFixed2.12.5-7.el10_0ALSA-2025:10630
AlmaLinux 10libxml2-staticFixed2.12.5-7.el10_0ALSA-2025:10630
AlmaLinux 10python3-libxml2Fixed2.12.5-7.el10_0ALSA-2025:10630
Rocky Linux 10libxml2Fixed0:2.12.5-7.el10_0RLSA-2025:10630
Alpine Linux 3.24libxml2Fixed2.13.9-r0ALPINE-CVE-2025-49795
Alpine Linux 3.23libxml2Fixed2.13.9-r0ALPINE-CVE-2025-49795
Alpine Linux 3.22libxml2Fixed2.13.9-r0ALPINE-CVE-2025-49795
Alpine Linux 3.21libxml2Fixed2.13.9-r0ALPINE-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.

Workaround: Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.

Vendor advisories:

References

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.