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
    • 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-22822

CVE-2022-22822: Libexpat Buffer Overflow Vulnerability

CVE-2022-22822 is a buffer overflow flaw in Libexpat caused by an integer overflow in the addBinding function. This vulnerability affects versions before 2.4.3 and poses significant risks. Learn about technical details.

Published: February 18, 2026

CVE-2022-22822 Overview

CVE-2022-22822 is an integer overflow vulnerability in the addBinding function within xmlparse.c in the Expat XML parsing library (libexpat) before version 2.4.3. This vulnerability allows remote attackers to potentially execute arbitrary code or cause denial of service conditions by sending specially crafted XML input that triggers the integer overflow condition during namespace binding operations.

Critical Impact

This integer overflow vulnerability in a widely-deployed XML parsing library can be exploited remotely without authentication, potentially leading to arbitrary code execution or denial of service across numerous applications and systems that depend on libexpat for XML processing.

Affected Products

  • libexpat_project libexpat (versions before 2.4.3)
  • tenable nessus
  • siemens sinema_remote_connect_server
  • debian debian_linux (10.0, 11.0)

Discovery Timeline

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

Technical Details for CVE-2022-22822

Vulnerability Analysis

The vulnerability exists in the addBinding function within the Expat XML parser's core parsing module (xmlparse.c). This function is responsible for handling XML namespace bindings during document parsing. When processing namespace declarations, the function performs arithmetic operations on length values that can overflow when handling extremely large or maliciously crafted input values.

Integer overflow vulnerabilities in memory allocation contexts are particularly dangerous because they can result in undersized buffer allocations. When the application subsequently attempts to write data into these undersized buffers, heap corruption occurs, potentially enabling attackers to gain control of program execution flow.

The vulnerability can be triggered remotely by providing malicious XML content to any application that uses the vulnerable libexpat library for XML parsing. Since libexpat is one of the most widely used XML parsing libraries, this vulnerability affects a broad range of software including security tools, industrial control systems, and operating system components.

Root Cause

The root cause is an integer overflow condition (CWE-190) in the addBinding function. When calculating buffer sizes for namespace binding operations, the code fails to properly validate that arithmetic operations on size values do not exceed the maximum representable integer value. This allows an attacker to craft XML input where the computed size wraps around to a small value, leading to insufficient memory allocation followed by out-of-bounds memory writes during subsequent operations.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying an application that uses a vulnerable version of libexpat for XML parsing
  2. Crafting malicious XML content containing namespace declarations designed to trigger the integer overflow in addBinding
  3. Delivering the malicious XML to the target application through any input channel that accepts XML data (HTTP requests, file uploads, API calls, etc.)
  4. When the application parses the malicious XML, the integer overflow occurs during namespace binding processing, potentially leading to heap corruption and code execution

The vulnerability is particularly concerning because XML parsing often occurs early in request processing pipelines, before other security controls can evaluate the content.

Detection Methods for CVE-2022-22822

Indicators of Compromise

  • Unexpected application crashes or segmentation faults in processes that parse XML data
  • Memory corruption errors or heap corruption warnings in system logs related to XML processing applications
  • Abnormal XML parsing activity with unusually large namespace declarations or deeply nested namespace bindings
  • Core dumps from applications using libexpat showing corruption in heap memory regions

Detection Strategies

  • Monitor applications using libexpat for unexpected crashes or memory errors during XML parsing operations
  • Implement input validation to detect and reject XML documents with abnormally large namespace declarations
  • Deploy network-level monitoring to identify XML payloads with suspicious namespace binding patterns
  • Use memory safety tools (AddressSanitizer, Valgrind) in development environments to detect integer overflow conditions

Monitoring Recommendations

  • Enable detailed logging for applications that process XML input from untrusted sources
  • Configure crash reporting and analysis for services using libexpat to identify potential exploitation attempts
  • Monitor system memory usage patterns for anomalies that could indicate heap corruption attacks
  • Review vendor security advisories from Siemens and Tenable for product-specific guidance

How to Mitigate CVE-2022-22822

Immediate Actions Required

  • Update libexpat to version 2.4.3 or later immediately across all systems
  • Identify all applications and services that depend on libexpat for XML parsing functionality
  • Apply vendor-specific patches from Tenable, Siemens, and Debian as applicable
  • Restrict XML input processing to trusted sources where possible until patches are applied
  • Implement network-level controls to filter potentially malicious XML content

Patch Information

The vulnerability was addressed in libexpat version 2.4.3. The fix is available through the official GitHub pull request. Multiple vendors have released security advisories and patches for their affected products:

  • Debian: Security advisory DSA-5073 provides patched packages for Debian 10 and 11
  • Tenable: Security notification TNS-2022-05 addresses the vulnerability in Nessus
  • Siemens: Security advisory SSA-484086 covers SINEMA Remote Connect Server
  • Gentoo: Security advisory GLSA-202209-24 provides updated packages

Workarounds

  • Implement strict input validation for XML content size and complexity before parsing
  • Use application firewalls or web application firewalls (WAF) to inspect and filter XML payloads
  • Consider isolating XML parsing operations in sandboxed environments to limit impact of exploitation
  • Disable XML namespace processing if not required by the application (may impact functionality)
bash
# Update libexpat on Debian-based systems
sudo apt-get update
sudo apt-get install --only-upgrade libexpat1

# Verify installed version is 2.4.3 or later
dpkg -l | grep libexpat

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 Probability1.33%

  • 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 Security Mailing List Post

  • Gentoo GLSA Security Advisory

  • Debian Security Advisory DSA-5073

  • Tenable Security Notification TNS-2022-05
  • Vendor Resources
  • Siemens Security Advisory Document

  • GitHub Pull Request for Expat
  • 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