Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-22823

CVE-2022-22823: Libexpat Buffer Overflow Vulnerability

CVE-2022-22823 is a buffer overflow vulnerability in Libexpat caused by an integer overflow in build_model function. This issue affects versions before 2.4.3. Explore technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-22823 Overview

CVE-2022-22823 is a critical integer overflow vulnerability in the build_model function within xmlparse.c of Expat (libexpat) versions prior to 2.4.3. This vulnerability affects the widely-used XML parsing library that is embedded in numerous applications and systems across the software ecosystem.

Critical Impact

This integer overflow vulnerability in libexpat can be exploited remotely over the network without authentication, potentially leading to complete system compromise including confidentiality, integrity, and availability impacts.

Affected Products

  • libexpat_project libexpat (versions before 2.4.3)
  • Tenable Nessus
  • Debian Linux 10.0 and 11.0
  • Siemens SINEMA Remote Connect Server

Discovery Timeline

  • 2022-01-10 - CVE CVE-2022-22823 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2022-22823

Vulnerability Analysis

The vulnerability resides in the build_model function located in xmlparse.c within the Expat XML parsing library. This function is responsible for constructing content models during XML document type definition (DTD) processing. The integer overflow condition (CWE-190) occurs when the function performs arithmetic operations on integer values without proper bounds checking.

When processing specially crafted XML content with complex or deeply nested DTD structures, the function can experience an integer wraparound condition. This occurs because the calculations used to determine memory allocation sizes or array indices can exceed the maximum value representable by the integer type, causing the value to wrap around to a small or negative number.

The exploitation path requires no authentication and can be triggered over the network by submitting maliciously crafted XML data to any application that uses the vulnerable libexpat library for XML parsing. Given libexpat's widespread use as a foundational XML parsing component, the attack surface is substantial across various platforms and applications.

Root Cause

The root cause is an integer overflow vulnerability (CWE-190) in the build_model function. When processing XML documents with specially crafted document type definitions, arithmetic operations performed during content model construction can overflow their integer boundaries. This can lead to undersized memory allocations, buffer overflows, or other memory corruption conditions that attackers can leverage for exploitation.

Attack Vector

The attack vector is network-based, requiring an attacker to send malicious XML content to a vulnerable application. The attack can be executed remotely without user interaction and without requiring any privileges or authentication. An attacker crafts an XML document with DTD content specifically designed to trigger the integer overflow in build_model during parsing.

Applications that accept XML input from untrusted sources—such as web services, API endpoints, file processors, or any network-facing service using libexpat—are particularly at risk. The vulnerability can be triggered through various XML delivery mechanisms including HTTP requests, file uploads, SOAP messages, or any other XML-based communication protocol.

Detection Methods for CVE-2022-22823

Indicators of Compromise

  • Unusual XML parsing errors or crashes in applications using libexpat
  • Unexpected memory consumption spikes during XML processing operations
  • Application crashes with stack traces referencing build_model or xmlparse.c
  • Anomalous XML documents with excessively complex or deeply nested DTD structures
  • Evidence of memory corruption in libexpat-dependent processes

Detection Strategies

  • Inventory all systems and applications using libexpat and verify version numbers are 2.4.3 or later
  • Monitor application logs for XML parsing failures or exceptions during DTD processing
  • Implement application-layer firewalls or WAFs with rules to detect malformed or oversized DTD content
  • Deploy endpoint detection solutions capable of identifying exploitation attempts targeting integer overflow conditions

Monitoring Recommendations

  • Enable verbose logging for XML parsing operations in critical applications
  • Monitor system resource utilization for abnormal patterns during XML processing
  • Track libexpat library versions across the environment using software composition analysis tools
  • Set up alerts for crashes or unexpected terminations in services that process XML data

How to Mitigate CVE-2022-22823

Immediate Actions Required

  • Update libexpat to version 2.4.3 or later immediately across all affected systems
  • Identify all applications embedding or dynamically linking to libexpat and apply vendor patches
  • Restrict XML processing from untrusted sources where possible until patches are applied
  • Review vendor security advisories for embedded libexpat updates in downstream products

Patch Information

The vulnerability is addressed in libexpat version 2.4.3 and later. Organizations should update their libexpat installations and any applications that bundle the library. Multiple vendors have released security advisories and patches:

  • Debian Security Advisory DSA-5073 provides patched packages for Debian Linux
  • Tenable Security Notice TNS-2022-05 addresses the vulnerability in Nessus
  • Siemens Product Security Advisory provides guidance for SINEMA Remote Connect Server
  • GitHub Expat Pull Request contains the upstream fix
  • Gentoo GLSA 202209-24 provides guidance for Gentoo users

Workarounds

  • Disable DTD processing in XML parsers where the feature is not required
  • Implement strict input validation to reject XML documents with complex DTD structures
  • Deploy network-level filtering to block potentially malicious XML content
  • Consider using alternative XML parsing configurations that minimize DTD processing exposure
bash
# Configuration example - Check libexpat version on Linux systems
dpkg -l | grep libexpat   # Debian/Ubuntu
rpm -qa | grep expat      # RHEL/CentOS

# Update libexpat on Debian-based systems
sudo apt-get update && sudo apt-get install libexpat1

# Update libexpat on RHEL-based systems
sudo yum update expat

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibexpat

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.43%

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

  • GitHub Expat Pull Request

  • Gentoo GLSA 202209-24

  • Debian Security Advisory DSA-5073

  • Tenable Security Notice TNS-2022-05
  • Vendor Resources
  • Siemens Product Security Advisory
  • Related CVEs
  • CVE-2026-25210: libexpat Buffer Overflow Vulnerability

  • CVE-2024-45492: Libexpat Buffer Overflow Vulnerability

  • CVE-2024-45491: Libexpat Buffer Overflow Vulnerability

  • CVE-2022-25314: Libexpat Buffer Overflow Vulnerability
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