---
id: CVE-2025-49795
title: >-
  A NULL pointer dereference vulnerability was found in libxml2 when processing
  XPath XML expressions
summary: >-
  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.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-825
vendor: GNOME
product: libxml2
affected:
  - libxml2 >= 2.10.0 < 2.14.5
  - libxml2 (all versions)
  - libxml2-main (all versions)
  - libxml2
  - libxml2
  - libxml2
  - libxml2
published: '2025-06-16'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T18:17:03.603'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-49795'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2025:10630'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:19020'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:7519'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-49795'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2372379'
    label: secalert@redhat.com
  - url: 'https://gitlab.gnome.org/GNOME/libxml2/-/issues/932'
    label: secalert@redhat.com
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-253495.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-49795.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-49795'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-49795'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00592
epssPercentile: 0.45949
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2025-06-16T15:30:23.392664Z'
ingestedAt: '2026-06-29T13:24:34.369Z'
patched:
  - enterprise_linux_appstream_v_10
  - enterprise_linux_baseos_v_10
  - enterprise_linux_codeready_linux_builder_v_10
  - hardened_images
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2025:10630** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) · released 2025-07-08 · [advisory](https://access.redhat.com/errata/RHSA-2025:10630)
- **RHSA-2026:7519** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-04-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:7519)
- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 6 · no fix planned: Red Hat Enterprise Linux 6 · updated 2026-09-18 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-49795.json)
