A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-45322

CVE-2023-45322: Libxml2 Use-After-Free Vulnerability

CVE-2023-45322 is a use-after-free vulnerability in Xmlsoft Libxml2 through version 2.11.5 triggered by memory allocation failures. This article covers the technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-45322 Overview

CVE-2023-45322 is a use-after-free vulnerability affecting libxml2, a widely-used XML parsing library, through version 2.11.5. The vulnerability occurs in the xmlUnlinkNode function within tree.c and can only be triggered after a specific memory allocation failure occurs. While the vendor has noted that attackers typically cannot control when memory allocations fail, the vulnerability still presents a risk in memory-constrained environments or under specific attack scenarios.

Critical Impact

This use-after-free vulnerability could lead to denial of service conditions when exploited in memory-constrained environments. Applications parsing untrusted XML content using affected libxml2 versions may be vulnerable.

Affected Products

  • xmlsoft libxml2 through version 2.11.5
  • Applications and systems using libxml2 for XML parsing
  • Linux distributions and other platforms bundling affected libxml2 versions

Discovery Timeline

  • 2023-10-06 - CVE-2023-45322 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2023-45322

Vulnerability Analysis

This use-after-free vulnerability (CWE-416) exists within the XML node manipulation functionality of libxml2. The flaw manifests in the xmlUnlinkNode function located in tree.c, which is responsible for removing nodes from the XML document tree structure. The vulnerability can be exploited remotely through network-delivered XML content, though it requires user interaction to process the malicious payload.

The exploitation path depends on a specific memory allocation failure occurring during XML processing. When this condition is met, the code may continue to reference memory that has already been freed, leading to undefined behavior. This condition creates an availability impact where the application could crash or become unresponsive.

Root Cause

The root cause of CVE-2023-45322 lies in improper memory handling within the xmlUnlinkNode function. When a memory allocation fails during XML tree manipulation, the function does not properly account for this failure state. This leads to a scenario where the code attempts to access or manipulate memory that has already been deallocated. The use-after-free condition occurs because error handling paths do not adequately prevent access to freed memory regions after allocation failures.

Attack Vector

The vulnerability has a network-based attack vector, meaning attackers can potentially deliver malicious XML content remotely. However, successful exploitation requires user interaction, such as opening a malicious XML document or processing untrusted XML input. The attack specifically requires:

  1. A target application using an affected version of libxml2
  2. The application processing attacker-controlled XML content
  3. A memory allocation failure to occur during the xmlUnlinkNode operation

The vulnerability primarily impacts availability, as the use-after-free condition can cause application crashes or denial of service. There is no documented impact to confidentiality or integrity based on the current analysis.

For technical details on the vulnerability mechanism, refer to the GNOME libxml2 Issue #344 and GNOME libxml2 Issue #583 for the vendor's discussion of the memory handling issues.

Detection Methods for CVE-2023-45322

Indicators of Compromise

  • Application crashes during XML parsing operations, particularly when handling large or complex XML documents
  • Memory-related errors or segmentation faults in processes utilizing libxml2
  • Unexpected termination of services that process XML content
  • Core dumps indicating use-after-free patterns in xmlUnlinkNode or related functions

Detection Strategies

  • Monitor for application crashes or abnormal terminations in XML-processing services
  • Implement memory sanitizer tools (AddressSanitizer, Valgrind) during development and testing to detect use-after-free conditions
  • Review system logs for repeated XML parsing failures or memory allocation errors
  • Conduct regular vulnerability scanning to identify systems running affected libxml2 versions

Monitoring Recommendations

  • Enable crash reporting and analysis for applications using libxml2
  • Monitor memory usage patterns in XML-processing applications for anomalies
  • Implement application-level logging for XML parsing operations to track failures
  • Use SentinelOne's runtime protection capabilities to detect and prevent exploitation attempts targeting memory corruption vulnerabilities

How to Mitigate CVE-2023-45322

Immediate Actions Required

  • Inventory all systems and applications using libxml2 to identify affected deployments
  • Update libxml2 to the latest available version from your distribution's package repository
  • Apply available security patches from operating system vendors
  • Consider implementing input validation and size limits for XML content processed by applications

Patch Information

Updates addressing this vulnerability are available through distribution-specific channels. The Debian LTS Announcement provides security update information for Debian systems. Additional details about the vulnerability and potential fixes can be found in the Openwall OSS-Security Message.

Organizations should check with their Linux distribution or software vendor for specific patch availability and apply updates according to their patch management processes.

Workarounds

  • Limit processing of untrusted XML content where possible
  • Implement strict input validation and file size limits for XML documents
  • Run XML-processing applications with reduced privileges to minimize impact
  • Consider using application sandboxing to isolate XML parsing operations
  • Monitor memory utilization and set appropriate limits for XML-processing services
bash
# Check installed libxml2 version
pkg-config --modversion libxml-2.0

# For Debian/Ubuntu systems - update libxml2
sudo apt update && sudo apt upgrade libxml2

# For RHEL/CentOS systems - update libxml2
sudo yum update libxml2

# Verify the installed version after update
xml2-config --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLibxml2

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • Openwall OSS-Security Message

  • GNOME libxml2 Issue #344

  • GNOME libxml2 Issue #583
  • Related CVEs
  • CVE-2025-49794: libxml2 Use-After-Free Vulnerability

  • CVE-2025-27113: Xmlsoft Libxml2 Use After Free Flaw

  • CVE-2024-25062: Xmlsoft Libxml2 Use-After-Free Vulnerability

  • CVE-2024-56171: Xmlsoft Libxml2 Use-After-Free Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English