The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2022-43680

CVE-2022-43680: Libexpat Use-After-Free Vulnerability

CVE-2022-43680 is a use-after-free vulnerability in Libexpat through version 2.4.9 caused by improper DTD handling in low-memory conditions. This article covers the technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-43680 Overview

CVE-2022-43680 is a use-after-free vulnerability discovered in libexpat, a widely-used XML parsing library. The vulnerability exists in versions through 2.4.9 and occurs in the XML_ExternalEntityParserCreate function. When the system encounters out-of-memory conditions during XML parsing, an overeager destruction of a shared DTD (Document Type Definition) object can lead to memory being freed prematurely while still being referenced, resulting in a use-after-free condition.

Critical Impact

Remote attackers can exploit this vulnerability to cause denial of service conditions by triggering application crashes through crafted XML documents that induce memory allocation failures.

Affected Products

  • libexpat_project libexpat (through version 2.4.9)
  • Debian Linux 10.0 and 11.0
  • Fedora 35, 36, and 37
  • NetApp H300S, H500S, H700S, H410S, H410C (firmware and hardware)
  • NetApp Active IQ Unified Manager
  • NetApp OnCommand Workflow Automation
  • NetApp SolidFire & HCI Management Node
  • NetApp HCI Compute Node

Discovery Timeline

  • October 24, 2022 - CVE-2022-43680 published to NVD
  • May 30, 2025 - Last updated in NVD database

Technical Details for CVE-2022-43680

Vulnerability Analysis

This use-after-free vulnerability stems from improper memory management in libexpat's handling of external entity parsers. When XML_ExternalEntityParserCreate is called to create a parser for processing external entities, it shares DTD data with the parent parser. Under normal conditions, this shared DTD is managed through reference counting to ensure proper lifetime management.

However, when an out-of-memory (OOM) condition occurs during parser creation or operation, the error handling code path triggers premature destruction of the shared DTD. This occurs because the OOM handler attempts to clean up resources aggressively, not accounting for the fact that the DTD is still referenced by other parser instances. Subsequent operations that attempt to access the now-freed DTD memory result in undefined behavior, typically manifesting as application crashes.

The vulnerability is particularly concerning because XML parsing is often performed on untrusted input in web applications, API endpoints, and document processing systems. An attacker who can control XML content processed by a vulnerable application could potentially craft input designed to trigger OOM conditions and exploit this vulnerability.

Root Cause

The root cause of CVE-2022-43680 lies in the overeager destruction of shared DTD objects during out-of-memory error handling in XML_ExternalEntityParserCreate. The libexpat library uses shared DTD structures to optimize memory usage when parsing external entities. When memory allocation fails, the cleanup routine incorrectly frees the shared DTD without verifying whether other parsers still hold references to it. This violates the fundamental principle of reference-counted memory management, where an object should only be freed when its reference count reaches zero.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious XML document containing external entity declarations
  2. Engineering the XML structure to maximize memory consumption during parsing
  3. Triggering out-of-memory conditions that invoke the vulnerable code path
  4. Causing the application to crash when it attempts to access the freed DTD memory

The exploitation typically results in denial of service through application crashes. While the vulnerability is classified as impacting availability rather than confidentiality or integrity, repeated exploitation could be used to disrupt critical services that depend on XML processing.

Since no verified exploit code is available for this vulnerability, detailed technical analysis should be consulted through the GitHub Issue #649 which documents the original bug report and the GitHub PR #650 which contains the fix implementation.

Detection Methods for CVE-2022-43680

Indicators of Compromise

  • Unexpected application crashes in processes that perform XML parsing operations
  • Core dumps or crash logs showing memory access violations in libexpat library functions
  • Abnormal patterns of memory allocation failures in XML processing components
  • Increased frequency of out-of-memory events correlated with XML parsing activities

Detection Strategies

  • Monitor system logs for segmentation faults or memory corruption errors in applications using libexpat
  • Implement application-level crash monitoring to detect repeated failures in XML parsing routines
  • Use memory debugging tools like AddressSanitizer (ASan) during testing to identify use-after-free conditions
  • Deploy intrusion detection rules to identify malformed XML documents with excessive external entity declarations

Monitoring Recommendations

  • Enable detailed logging for XML parsing operations in production environments
  • Configure alerting for abnormal application restart patterns that may indicate exploitation attempts
  • Monitor memory usage patterns in applications that process untrusted XML input
  • Regularly audit installed libexpat versions across infrastructure using software composition analysis tools

How to Mitigate CVE-2022-43680

Immediate Actions Required

  • Update libexpat to version 2.5.0 or later, which contains the fix for this vulnerability
  • Identify all applications and systems using vulnerable versions of libexpat through dependency scanning
  • Prioritize patching systems that process untrusted XML input from external sources
  • Consider implementing input validation to limit XML document complexity as a defense-in-depth measure

Patch Information

The libexpat project has addressed this vulnerability in versions released after 2.4.9. The fix ensures proper reference counting for shared DTD objects, preventing premature destruction during out-of-memory conditions. Detailed patch information is available through:

  • GitHub PR #616 - Initial fix implementation
  • GitHub PR #650 - Additional fixes and improvements
  • Debian Security Advisory DSA-5266
  • NetApp Security Advisory NTAP-20221118-0007
  • Gentoo GLSA 202210-38

Workarounds

  • Limit XML document size and complexity to reduce the likelihood of triggering OOM conditions
  • Implement memory limits for XML parsing processes using operating system resource controls
  • Consider using alternative XML parsing libraries temporarily if immediate patching is not feasible
  • Deploy application-level rate limiting to prevent attackers from repeatedly attempting exploitation
bash
# Check installed libexpat version on Debian/Ubuntu
dpkg -l | grep libexpat

# Update libexpat on Debian/Ubuntu
sudo apt update && sudo apt upgrade libexpat1

# Check installed version on RHEL/CentOS/Fedora
rpm -qa | grep expat

# Update on Fedora
sudo dnf update expat

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/TechLibexpat

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.36%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • OpenWall OSS Security Update

  • OpenWall OSS Security Announcement

  • Debian LTS Announcement October 2022

  • Fedora Package Announcement AJ5VY

  • Fedora Package Announcement BY4OPS

  • Fedora Package Announcement DPQVIF

  • Fedora Package Announcement FFCOMBS

  • Fedora Package Announcement IUJ2BULJ

  • Fedora Package Announcement XG5XOOB

  • Gentoo GLSA 202210-38

  • NetApp Security Advisory NTAP-20221118-0007

  • Debian Security Advisory DSA-5266
  • Vendor Resources
  • GitHub Issue #649 - libexpat

  • GitHub PR #616 - libexpat

  • GitHub PR #650 - libexpat
  • Related CVEs
  • CVE-2022-40674: Libexpat Use-After-Free Vulnerability

  • CVE-2026-32778: Libexpat NULL Pointer Dereference Flaw

  • CVE-2026-32777: Libexpat DOS Vulnerability

  • CVE-2026-32776: Libexpat NULL Pointer Dereference Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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