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-23852

CVE-2022-23852: Libexpat Buffer Overflow Vulnerability

CVE-2022-23852 is a signed integer overflow vulnerability in Libexpat affecting versions before 2.4.4. This buffer overflow occurs in XML_GetBuffer with nonzero XML_CONTEXT_BYTES configurations, posing security risks.

Published: February 18, 2026

CVE-2022-23852 Overview

CVE-2022-23852 is a critical integer overflow vulnerability in Expat (libexpat), a widely-used XML parsing library. The vulnerability exists in the XML_GetBuffer function when configurations have a nonzero XML_CONTEXT_BYTES value. This signed integer overflow can lead to memory corruption, potentially enabling remote code execution or denial of service attacks against applications that process untrusted XML input.

Critical Impact

A signed integer overflow in XML_GetBuffer allows remote attackers to potentially execute arbitrary code or crash applications processing malicious XML content. Given libexpat's widespread use in numerous software products and systems, this vulnerability has significant impact across enterprise environments.

Affected Products

  • libexpat_project libexpat (versions before 2.4.4)
  • netapp clustered_data_ontap
  • netapp oncommand_workflow_automation
  • tenable nessus
  • oracle communications_metasolv_solution
  • debian debian_linux
  • siemens sinema_remote_connect_server

Discovery Timeline

  • 2022-01-24 - CVE-2022-23852 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2022-23852

Vulnerability Analysis

The vulnerability resides in the XML_GetBuffer function within the libexpat XML parsing library. When XML_CONTEXT_BYTES is configured with a nonzero value, the function performs arithmetic operations that can result in a signed integer overflow. This overflow condition occurs during buffer size calculations when processing XML data, leading to an incorrectly sized memory allocation.

The exploitation of this vulnerability does not require authentication and can be triggered remotely over a network connection. The attack complexity is low, meaning an attacker can reliably trigger the vulnerability without requiring specialized conditions or sophisticated techniques. Upon successful exploitation, an attacker could achieve complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause is classified as CWE-190 (Integer Overflow or Wraparound). The XML_GetBuffer function fails to properly validate integer arithmetic operations before performing memory allocations. When calculating buffer sizes, the function uses signed integer arithmetic without adequate overflow checks. If an attacker provides carefully crafted XML input that causes the buffer size calculation to exceed the maximum value of a signed integer, the result wraps around to a negative or unexpectedly small positive value, leading to undersized buffer allocation and subsequent memory corruption.

Attack Vector

The attack vector is network-based, allowing remote exploitation. An attacker can craft malicious XML content designed to trigger the integer overflow condition in XML_GetBuffer. When a vulnerable application parses this malicious XML input, the overflow occurs during buffer management operations.

The exploitation scenario involves:

  1. The attacker identifies an application using a vulnerable version of libexpat (prior to 2.4.4)
  2. The attacker crafts XML input that manipulates buffer size calculations in XML_GetBuffer
  3. The malicious XML is delivered to the target application via any interface that accepts XML input
  4. The signed integer overflow causes an undersized buffer allocation
  5. Subsequent write operations overflow the buffer, potentially allowing arbitrary code execution

Technical details regarding the vulnerability fix can be found in the GitHub Pull Request for Expat.

Detection Methods for CVE-2022-23852

Indicators of Compromise

  • Unexpected application crashes or segmentation faults in processes that parse XML content
  • Anomalous memory consumption patterns in applications utilizing libexpat
  • Core dumps indicating memory corruption in XML parsing routines
  • Unusual network traffic containing malformed or excessively large XML payloads

Detection Strategies

  • Deploy SentinelOne agents to detect exploitation attempts through behavioral analysis and memory protection mechanisms
  • Implement network-based intrusion detection rules to identify malicious XML payloads targeting buffer overflow conditions
  • Monitor application logs for parsing errors or exceptions related to XML processing
  • Use software composition analysis (SCA) tools to identify applications with vulnerable libexpat versions

Monitoring Recommendations

  • Enable enhanced logging for applications that process untrusted XML input
  • Configure SentinelOne's Storyline technology to correlate events across XML parsing activities
  • Establish baseline metrics for XML processing performance to detect anomalous behavior
  • Implement file integrity monitoring on libexpat library files to detect unauthorized modifications

How to Mitigate CVE-2022-23852

Immediate Actions Required

  • Update libexpat to version 2.4.4 or later immediately across all systems
  • Inventory all applications and systems using libexpat to ensure comprehensive patching
  • Prioritize patching for internet-facing systems and applications that process untrusted XML input
  • Review vendor advisories from affected products including NetApp, Tenable, Oracle, Siemens, and Debian for product-specific patches

Patch Information

The vulnerability has been addressed in libexpat version 2.4.4. Multiple vendors have released patches for their affected products:

  • Debian: Security updates available via Debian DSA-5073 Security Update and Debian LTS Security Notice
  • NetApp: Advisory and patches available at NetApp Security Advisory NTAP-20220217-0001
  • Oracle: Addressed in Oracle Critical Patch Update
  • Tenable: Nessus updates detailed in Tenable Security Notification TNS-2022-05
  • Siemens: SINEMA Remote Connect Server patches in Siemens Security Advisory
  • Gentoo: Security updates via Gentoo GLSA 2022-09-24

Workarounds

  • If immediate patching is not possible, consider disabling XML processing functionality in affected applications
  • Implement strict input validation and size limits for XML content before parsing
  • Deploy network-level controls to filter potentially malicious XML payloads
  • Isolate vulnerable applications in segmented network zones with restricted access
bash
# Verify libexpat version on Linux systems
expat -v 2>/dev/null || dpkg -l libexpat1 2>/dev/null || rpm -qa | grep expat

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

# Update libexpat on RHEL/CentOS
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 Probability1.71%

  • 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
  • Siemens Security Advisory

  • Debian LTS Security Notice

  • Gentoo GLSA 2022-09-24

  • NetApp Security Advisory NTAP-20220217-0001

  • Debian DSA-5073 Security Update

  • Oracle Critical Patch Update

  • Tenable Security Notification TNS-2022-05
  • Vendor Resources
  • 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