---
id: CVE-2026-86140
title: >-
  In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat
  stack-based buffer overflow.
summary: >-
  In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat
  stack-based buffer overflow.
severity: high
cvss: 8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L'
cwe:
  - CWE-121
  - CWE-120
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:39:17.010'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86140'
references:
  - url: >-
      https://github.com/GNOME/libxml2/commit/d1686f91dbda141a752200419d35639fd6b38340
    label: cve@mitre.org
  - url: 'https://github.com/GNOME/libxml2/compare/v2.15.3...v2.15.4'
    label: cve@mitre.org
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86140.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-86140'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2528989'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-86140'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86140'
  - 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:71641'
  - url: 'https://access.redhat.com/errata/RHSA-2026:71585'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.0021
epssPercentile: 0.09931
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-08T18:06:03.098551Z'
scores:
  nvd: 8
  vendor: 7.4
  cna: 8
ingestedAt: '2026-09-06T02:48:38.731Z'
---

## Overview

In libxml2 before 2.15.4, xmlSnprintfElements in valid.c has a strcat stack-based buffer overflow.

## Affected

- `libxml2 < 2.15.4`

## Remediation

Upgrade past the affected range:

- `libxml2 2.15.4`

## Vendor advisories

- **Red Hat VEX** · Important · 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-09-24 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86140.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:71641** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux BaseOS (v. 8) · released 2026-09-24 · [advisory](https://access.redhat.com/errata/RHSA-2026:71641)
- **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)
