---
id: CVE-2023-45322
title: >-
  libxml2 through 2.11.5 has a use-after-free that can only occur after a
  certain memory allocation fails
summary: >-
  libxml2 through 2.11.5 has a use-after-free that can only occur after a
  certain memory allocation fails. This occurs in xmlUnlinkNode in tree.c. NOTE:
  the vendor's position is "I don't think these issues are critical enough to
  warrant a …
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-416
vendor: xmlsoft
product: libxml2
affected:
  - libxml2 <= 2.11.5
published: '2023-10-06'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T00:16:38.260'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-45322'
references:
  - url: 'http://www.openwall.com/lists/oss-security/2023/10/06/5'
    label: cve@mitre.org
  - url: 'https://gitlab.gnome.org/GNOME/libxml2/-/issues/344'
    label: cve@mitre.org
  - url: 'https://gitlab.gnome.org/GNOME/libxml2/-/issues/583'
    label: cve@mitre.org
  - url: 'http://www.openwall.com/lists/oss-security/2023/10/06/5'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://gitlab.gnome.org/GNOME/libxml2/-/issues/344'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://gitlab.gnome.org/GNOME/libxml2/-/issues/583'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/02/msg00028.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00965
epssPercentile: 0.60893
ingestedAt: '2026-10-15T01:08:04.208Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-09-19T18:12:15.161434Z'
---

## Overview

libxml2 through 2.11.5 has a use-after-free that can only occur after a certain memory allocation fails. This occurs in xmlUnlinkNode in tree.c. NOTE: the vendor's position is "I don't think these issues are critical enough to warrant a CVE ID ... because an attacker typically can't control when memory allocations fail."

## Affected

- `libxml2 <= 2.11.5`

## Remediation

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