---
id: CVE-2026-86142
title: >-
  In libxml2 before 2.15.4, there is a heap-based buffer overflow in
  xmlXPtrEvalXPtrPart because of xmlXPtrEval xpointer length saturation.
summary: >-
  In libxml2 before 2.15.4, there is a heap-based buffer overflow in
  xmlXPtrEvalXPtrPart because of xmlXPtrEval xpointer length saturation.
severity: medium
cvss: 6.9
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L'
cwe:
  - CWE-122
  - CWE-805
vendor: xmlsoft
product: libxml2
affected:
  - libxml2 < 2.15.4
patched:
  - libxml2 2.15.4
published: '2026-09-05'
updated: '2026-09-15'
sourceUpdated: '2026-09-15T19:35:48.663'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86142'
references:
  - url: >-
      https://github.com/GNOME/libxml2/commit/6b3a736c0edc74ceec3d82f5252499d7911b3a58
    label: cve@mitre.org
  - url: 'https://github.com/GNOME/libxml2/compare/v2.15.3...v2.15.4'
    label: cve@mitre.org
  - url: 'https://gitlab.gnome.org/GNOME/libxml2/-/work_items/1113'
    label: cve@mitre.org
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86142.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-86142'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2528990'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-86142'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86142'
  - url: 'https://access.redhat.com/errata/RHSA-2026:64463'
  - url: 'https://access.redhat.com/errata/RHSA-2026:71586'
  - url: 'https://access.redhat.com/errata/RHSA-2026:71585'
  - url: 'https://access.redhat.com/errata/RHSA-2026:72475'
  - url: 'https://access.redhat.com/errata/RHSA-2026:72476'
  - url: 'https://access.redhat.com/errata/RHSA-2026:72470'
  - url: 'https://access.redhat.com/errata/RHSA-2026:79357'
  - url: 'https://access.redhat.com/errata/RHSA-2026:89759'
  - url: 'https://access.redhat.com/errata/RHSA-2026:80675'
  - url: 'https://access.redhat.com/errata/RHSA-2026:89750'
  - url: 'https://access.redhat.com/errata/RHSA-2026:82939'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00157
epssPercentile: 0.04761
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-14T13:26:26.776763Z'
ingestedAt: '2026-09-06T02:48:38.913Z'
---

## Overview

In libxml2 before 2.15.4, there is a heap-based buffer overflow in xmlXPtrEvalXPtrPart because of xmlXPtrEval xpointer length saturation.

## Affected

- `libxml2 < 2.15.4`

## Remediation

Upgrade past the affected range:

- `libxml2 2.15.4`

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat OpenShift Container Platform 4 · updated 2026-10-26 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86142.json)
- **RHSA-2026:64463** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-06 · [advisory](https://access.redhat.com/errata/RHSA-2026:64463)
- **RHSA-2026:71586** · 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 2026-09-24 · [advisory](https://access.redhat.com/errata/RHSA-2026:71586)
- **RHSA-2026:71585** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9) · released 2026-09-24 · [advisory](https://access.redhat.com/errata/RHSA-2026:71585)
- **RHSA-2026:72475** · Red Hat · fixed in: Cert Manager support for Red Hat OpenShift release 1.20 · released 2026-09-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:72475)
- **RHSA-2026:72476** · Red Hat · fixed in: Cert Manager support for Red Hat OpenShift release 1.20 · released 2026-09-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:72476)
- **RHSA-2026:72470** · Red Hat · fixed in: Cert Manager support for Red Hat OpenShift release 1.20 · released 2026-09-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:72470)
- **RHSA-2026:79357** · Red Hat · fixed in: Red Hat Cost Management On-Premise 1 · released 2026-10-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:79357)
- **RHSA-2026:89759** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream EUS (v. 10.0), Red Hat Enterprise Linux BaseOS EUS (v. 10.0), Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) · released 2026-10-26 · [advisory](https://access.redhat.com/errata/RHSA-2026:89759)
- **RHSA-2026:80675** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux BaseOS (v. 8) · released 2026-10-12 · [advisory](https://access.redhat.com/errata/RHSA-2026:80675)
- **RHSA-2026:89750** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream E4S (v.9.4), Red Hat Enterprise Linux BaseOS E4S (v.9.4) · released 2026-10-26 · [advisory](https://access.redhat.com/errata/RHSA-2026:89750)
- **RHSA-2026:82939** · Red Hat · fixed in: Red Hat Update Infrastructure 5 · released 2026-10-14 · [advisory](https://access.redhat.com/errata/RHSA-2026:82939)
