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

CVE-2022-25235: Libexpat XXE Vulnerability

CVE-2022-25235 is an XML External Entity (XXE) flaw in Libexpat that lacks proper UTF-8 encoding validation in xmltok_impl.c. This post covers the technical details, affected versions, impact, and mitigation steps.

Published: February 17, 2026

CVE-2022-25235 Overview

CVE-2022-25235 is a critical Input Validation Error vulnerability in xmltok_impl.c within Expat (also known as libexpat) before version 2.4.5. The vulnerability stems from insufficient validation of encoding, specifically failing to verify whether a UTF-8 character is valid within a given context. This flaw in the widely-used XML parsing library can be exploited remotely without authentication to potentially achieve code execution, data corruption, or denial of service.

Critical Impact

This vulnerability affects a foundational XML parsing library used across numerous platforms including Debian Linux, Fedora, Oracle HTTP Server, Oracle ZFS Storage Appliance Kit, and Siemens SINEMA Remote Connect Server. Remote attackers can exploit this flaw without authentication to compromise affected systems.

Affected Products

  • libexpat_project libexpat (versions before 2.4.5)
  • Debian Linux 10.0 and 11.0
  • Fedora 34 and 35
  • Oracle HTTP Server 12.2.1.3.0 and 12.2.1.4.0
  • Oracle ZFS Storage Appliance Kit 8.8
  • Siemens SINEMA Remote Connect Server

Discovery Timeline

  • 2022-02-16 - CVE-2022-25235 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2022-25235

Vulnerability Analysis

The vulnerability exists in the xmltok_impl.c file of the Expat XML parsing library. The core issue is that the parser does not adequately validate UTF-8 character sequences to ensure they are appropriate for their context during XML processing. This improper encoding validation (CWE-116: Improper Encoding or Escaping of Output) allows specially crafted XML input containing malformed or contextually invalid UTF-8 sequences to bypass security controls.

When the parser encounters these malicious sequences, it may misinterpret the data structure, leading to various security impacts. The network-accessible nature of many applications using libexpat means attackers can deliver malicious XML payloads remotely. The vulnerability requires no privileges and no user interaction to exploit, significantly lowering the barrier for attackers.

Root Cause

The root cause lies in incomplete validation logic within xmltok_impl.c. The code fails to perform comprehensive checks on UTF-8 character validity in relation to their position and context within the XML document structure. Specifically, the parser does not verify whether certain UTF-8 characters are semantically valid in particular locations, allowing malformed input to be processed as legitimate data. This encoding validation gap enables attackers to inject malicious content that the parser incorrectly interprets.

Attack Vector

Exploitation occurs over the network by submitting specially crafted XML content to an application using a vulnerable version of libexpat. The attack requires no authentication and no user interaction. An attacker can craft XML documents containing invalid UTF-8 character sequences positioned in specific contexts that the parser fails to validate properly.

The exploitation mechanism involves:

  1. Identifying an application that processes XML using a vulnerable libexpat version
  2. Crafting XML content with strategically placed invalid UTF-8 sequences
  3. Submitting the malicious XML to the target application
  4. The parser processes the malformed data, potentially leading to memory corruption, information disclosure, or code execution

For detailed technical analysis of the vulnerable code path and the specific encoding validation checks that were missing, refer to the GitHub Pull Request for Expat which contains the patch implementing proper validation.

Detection Methods for CVE-2022-25235

Indicators of Compromise

  • Unexpected XML parsing errors or crashes in applications using libexpat
  • Anomalous memory usage patterns in XML processing components
  • Malformed UTF-8 sequences in incoming XML traffic logs
  • Application crashes with stack traces referencing xmltok_impl.c or related Expat functions

Detection Strategies

  • Deploy network intrusion detection rules to identify malformed UTF-8 sequences within XML payloads
  • Implement application-level logging for XML parsing errors and unexpected character encoding issues
  • Use vulnerability scanners to identify systems running libexpat versions prior to 2.4.5
  • Monitor for unusual patterns in XML processing workloads that may indicate exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for XML parsing operations in production environments
  • Configure SIEM rules to alert on repeated XML parsing failures from single sources
  • Implement rate limiting on endpoints that accept XML input to slow potential exploitation attempts
  • Review application crash reports for patterns consistent with encoding-based attacks

How to Mitigate CVE-2022-25235

Immediate Actions Required

  • Update libexpat to version 2.4.5 or later immediately on all affected systems
  • Inventory all applications and systems using libexpat to ensure comprehensive patching
  • For systems that cannot be immediately patched, consider temporarily disabling XML processing features or implementing input validation at the application layer
  • Review and apply vendor-specific patches from Oracle, Siemens, Debian, and Fedora as applicable

Patch Information

The vulnerability is fixed in libexpat version 2.4.5. The patch implements proper UTF-8 character validation to ensure characters are valid within their specific context during XML parsing. Administrators should update libexpat through their distribution's package manager or by downloading the latest version directly from the project.

Key vendor resources for patching:

  • GitHub Pull Request for Expat - Original patch implementation
  • Oracle Security Alert April 2022 - Oracle product patches
  • Debian Security Advisory DSA-5085 - Debian package updates
  • Siemens Security Advisory - SINEMA Remote Connect Server updates

Workarounds

  • Implement strict input validation on XML content before passing to the parser
  • Deploy web application firewalls (WAF) with rules to detect and block malformed UTF-8 sequences
  • Isolate XML processing components in sandboxed environments to limit potential impact
  • Consider alternative XML parsing libraries as a temporary measure if patching is delayed
bash
# Update libexpat on Debian/Ubuntu systems
sudo apt update
sudo apt install --only-upgrade libexpat1

# Update libexpat on Fedora/RHEL systems
sudo dnf update expat

# Verify installed version (should be 2.4.5 or later)
apt-cache policy libexpat1 # Debian/Ubuntu
rpm -q expat # Fedora/RHEL

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechLibexpat

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability13.32%

  • 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-116
  • Technical References
  • Openwall Security Mailing List

  • Siemens Security Advisory

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 2022-09-24

  • NetApp Security Advisory

  • Debian Security Advisory DSA-5085
  • Vendor Resources
  • GitHub Pull Request for Expat

  • Oracle Security Alert April 2022
  • Related CVEs
  • CVE-2026-24515: libexpat XXE Vulnerability Exposure

  • CVE-2024-28757: Libexpat XXE Vulnerability

  • CVE-2023-52426: Libexpat XXE Vulnerability

  • CVE-2024-45490: Libexpat XXE 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