A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Read More
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-25315

CVE-2022-25315: Libexpat Buffer Overflow Vulnerability

CVE-2022-25315 is a buffer overflow vulnerability in Libexpat caused by an integer overflow in storeRawNames. This critical flaw affects versions before 2.4.5. Learn about technical details, impact, and mitigation.

Updated: May 14, 2026

CVE-2022-25315 Overview

CVE-2022-25315 is an integer overflow vulnerability [CWE-190] in the storeRawNames function of Expat (also known as libexpat), an XML parsing library written in C. The flaw affects all versions of libexpat prior to 2.4.5. Because libexpat is embedded in numerous operating systems, web servers, and industrial products, the impact extends well beyond the upstream library. The vulnerability is remotely exploitable over the network without authentication or user interaction, and it can compromise confidentiality, integrity, and availability of affected systems.

Critical Impact

An unauthenticated remote attacker can supply crafted XML input that triggers an integer overflow in storeRawNames, potentially leading to memory corruption and arbitrary code execution in any application linking libexpat.

Affected Products

  • libexpat versions prior to 2.4.5
  • Debian Linux 10 and 11, Fedora 34 and 35, and Gentoo Linux distributions
  • Oracle HTTP Server 12.2.1.3.0 and 12.2.1.4.0, Oracle ZFS Storage Appliance Kit 8.8, and Siemens SINEMA Remote Connect Server

Discovery Timeline

  • 2022-02-18 - CVE-2022-25315 published to the National Vulnerability Database (NVD)
  • 2022-02-19 - Public discussion on the Openwall oss-security mailing list
  • 2022-03 - Debian LTS and DSA-5085 advisories released
  • 2022-04 - Oracle Critical Patch Update addresses affected products
  • 2025-05-05 - Last updated in the NVD database

Technical Details for CVE-2022-25315

Vulnerability Analysis

The vulnerability resides in the storeRawNames function in libexpat, which copies raw element names from the parser input buffer into per-tag storage during XML processing. Length calculations on these names are performed using a type that can overflow when an attacker supplies sufficiently large input. On 32-bit platforms the overflow is reached with substantially smaller payloads, but 64-bit systems remain vulnerable when memory pressure permits very large XML documents.

Once the overflow occurs, libexpat allocates an undersized buffer and then writes attacker-controlled tag data past its bounds. The resulting heap memory corruption can be steered into arbitrary code execution, depending on the host application's allocator state and mitigations. Because libexpat is consumed by web servers, language runtimes, and embedded firmware, exploitation surfaces include any service that parses untrusted XML.

Root Cause

The root cause is an unchecked arithmetic operation when computing the storage size required for tag names in storeRawNames. The size expression can wrap around the integer range, producing a small allocation that does not match the actual data length that will subsequently be copied. The upstream fix in libexpat pull request 559 introduces explicit overflow checks before allocation.

Attack Vector

An attacker delivers a crafted XML document to any application that parses input with libexpat. Typical delivery paths include HTTP request bodies handled by Oracle HTTP Server, SOAP and XML-RPC endpoints, configuration imports in Siemens SINEMA Remote Connect Server, and document processing pipelines on Debian and Fedora systems. No credentials or user interaction are required. See the GitHub libexpat Pull Request and the Openwall OSS Security Discussion for technical details on the overflow path.

No verified public proof-of-concept code is available for this CVE. The vulnerability mechanism is documented in upstream commits and the linked references rather than reproduced here.

Detection Methods for CVE-2022-25315

Indicators of Compromise

  • Crashes or segmentation faults in processes that link libexpat, such as httpd, python, or XML-aware daemons, when handling external input
  • Unusually large XML documents or tag names received by public-facing parsers, particularly payloads exceeding hundreds of megabytes
  • Unexpected child process creation or outbound network connections from XML-parsing services following inbound XML traffic

Detection Strategies

  • Inventory installed libexpat versions across hosts and containers using package managers and software bill of materials (SBOM) data, flagging anything earlier than 2.4.5
  • Inspect application logs from Oracle HTTP Server, Siemens SINEMA Remote Connect Server, and other affected products for parser errors or abrupt restarts correlated with XML traffic
  • Use endpoint detection telemetry to correlate XML-parsing process crashes with subsequent suspicious child processes

Monitoring Recommendations

  • Alert on repeated abnormal terminations of services known to embed libexpat, and capture core dumps for analysis
  • Monitor network traffic for oversized XML payloads directed at SOAP, REST, and management interfaces
  • Track vendor advisories from Debian, Fedora, Gentoo, Oracle, NetApp, and Siemens for follow-on patches to dependent products

How to Mitigate CVE-2022-25315

Immediate Actions Required

  • Upgrade libexpat to version 2.4.5 or later on every host, container image, and embedded device that ships the library
  • Apply distribution updates referenced in Debian Security DSA-5085, the Debian LTS Announcement, the Fedora package announcements, and Gentoo GLSA 2022-09-24
  • Install vendor patches for Oracle products per the Oracle CPU April 2022 Security Alerts and for Siemens products per the Siemens Product Security Advisory
  • Rebuild or update third-party applications that statically link libexpat, since updating the system package alone will not remediate them

Patch Information

The upstream fix is included in libexpat 2.4.5 and merged through GitHub libexpat Pull Request 559. Downstream patches are available from Debian, Fedora, Gentoo, NetApp (ntap-20220303-0008), Oracle, and Siemens.

Workarounds

  • Restrict the maximum size of XML payloads accepted by network-facing services using a web application firewall or reverse proxy
  • Disable or network-isolate XML-parsing endpoints that are not required for business operations until patches are deployed
  • Run XML-processing services under least-privilege accounts and with operating system hardening such as ASLR and stack canaries to raise exploitation cost
bash
# Verify the installed libexpat version on Debian-based systems
dpkg -l | grep -i libexpat

# Verify the installed libexpat version on RPM-based systems
rpm -q expat

# Apply distribution updates
sudo apt-get update && sudo apt-get install --only-upgrade libexpat1
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
  • TypeBuffer Overflow

  • Vendor/TechLibexpat

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability9.00%

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

  • Siemens Product Security Advisory

  • GitHub libexpat Pull Request

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 2022-09-24

  • NetApp Security Advisory ntap-20220303-0008

  • Debian Security DSA-5085
  • Vendor Resources
  • Oracle CPU April 2022 Security Alerts
  • 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 Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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