A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-49794

CVE-2025-49794: libxml2 Use-After-Free Vulnerability

CVE-2025-49794 is a use-after-free vulnerability in libxml2 affecting XPath parsing with XML schematron elements. Attackers can exploit this flaw to crash applications or trigger undefined behavior. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Updated: May 14, 2026

CVE-2025-49794 Overview

CVE-2025-49794 is a use-after-free vulnerability in libxml2, the widely deployed XML parsing library maintained by the GNOME project. The flaw occurs when parsing XPath elements under specific conditions involving XML Schematron documents that contain <sch:name path="..."/> schema elements. An attacker can craft a malicious XML document that, when processed by libxml2, triggers memory corruption through access to a freed object [CWE-825]. Successful exploitation results in process crashes or other undefined behavior, including the potential for further memory corruption. Because libxml2 is embedded in countless operating systems, language runtimes, browsers, and industrial control products, the impact surface is broad.

Critical Impact

A remote attacker can trigger a use-after-free in libxml2 by supplying a crafted XML document to any application that parses untrusted XML with Schematron schema processing enabled.

Affected Products

  • GNOME libxml2 (see GNOME libxml2 Issue #931)
  • Red Hat Enterprise Linux distributions shipping libxml2 (see Red Hat CVE Report CVE-2025-49794)
  • Debian LTS libxml2 packages (see Debian LTS Announcement July 2025)
  • Siemens industrial products bundling libxml2 (see Siemens Product Security SSA-577017)

Discovery Timeline

  • 2025-06-16 - CVE-2025-49794 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2025-49794

Vulnerability Analysis

The vulnerability is a use-after-free condition [CWE-825] in the XPath evaluation path of libxml2. It is reachable when the library processes a Schematron schema containing <sch:name path="..."/> elements. During XPath compilation and evaluation tied to these Schematron constructs, libxml2 references a memory object after it has been released back to the allocator. Subsequent operations on the dangling pointer corrupt internal parser state.

The consequences are determined by allocator behavior at the time of the freed-object reuse. In the most common case, the process aborts due to invalid memory access, producing a denial-of-service condition for the host application. Under attacker-controlled heap layouts, the dangling reference may operate on attacker-influenced data, leading to undefined behavior that affects integrity as well as availability. The vulnerability requires no authentication and no user interaction beyond submitting an XML document to a vulnerable parser.

Root Cause

The defect lies in the lifetime management of XPath context objects created while evaluating Schematron path attributes. An internal reference is retained after the underlying allocation is freed, causing later code paths to dereference an invalid pointer.

Attack Vector

An attacker delivers a malicious XML document to any application that links against vulnerable libxml2 and performs Schematron validation. Delivery channels include web service endpoints that accept XML payloads, document-processing pipelines, configuration parsers in network appliances, and industrial control protocols. The attacker requires no privileges on the target.

No verified public exploit code is available. The technical mechanism is described in GNOME libxml2 Issue #931 and the Red Hat Bugzilla Report #2372373.

Detection Methods for CVE-2025-49794

Indicators of Compromise

  • Unexpected crashes, SIGSEGV signals, or core dumps from processes that invoke libxml2, particularly during XML or Schematron validation workloads.
  • Inbound XML payloads containing <sch:name path="..."/> elements directed at services not normally consuming Schematron schemas.
  • Repeated parser failures or restart loops in applications such as web servers, document processors, or industrial gateways that embed libxml2.

Detection Strategies

  • Inventory installed libxml2 versions across Linux, macOS, and Windows hosts and compare them against the fixed packages listed in the Red Hat and Debian advisories.
  • Inspect network traffic and message queues for XML documents that include Schematron namespaces (http://purl.oclc.org/dsdl/schematron) sent to services that do not require them.
  • Correlate application crash telemetry with XML parsing activity to surface exploitation attempts producing denial of service.

Monitoring Recommendations

  • Forward application crash events, systemd-coredump records, and Windows Error Reporting logs to a centralized analytics platform for correlation with XML processing.
  • Enable verbose logging on XML-consuming services to capture document metadata and source identifiers for post-incident review.
  • Track package update status for libxml2 across all managed hosts and alert on hosts that remain on pre-patch versions.

How to Mitigate CVE-2025-49794

Immediate Actions Required

  • Apply the libxml2 updates published by your operating system vendor. Red Hat customers should consult the relevant advisory for their channel, beginning with RHSA-2025:10630.
  • Restart all long-running services that load libxml2 so the patched library is loaded into memory.
  • Audit applications that accept untrusted XML and disable Schematron processing where it is not required.

Patch Information

Fixed libxml2 packages are available through upstream GNOME and downstream distributions. Red Hat has published more than 25 advisories covering affected products, including RHSA-2025:10630, RHSA-2025:11580, RHSA-2025:13335, and RHSA-2026:7519. Debian LTS users should follow the Debian LTS Announcement July 2025. Industrial operators running Siemens products must apply the firmware and software updates referenced in Siemens SSA-577017.

Workarounds

  • Reject XML documents containing Schematron schema elements at network or application boundaries when Schematron is not a required feature.
  • Sandbox XML parsing processes with seccomp, AppArmor, or SELinux profiles to limit the impact of a successful crash or memory corruption.
  • Validate and constrain XML input size, depth, and accepted namespaces before passing documents to libxml2.
bash
# Configuration example: verify installed libxml2 version on RHEL-family systems
rpm -q libxml2

# Apply vendor updates and restart services that link libxml2
sudo dnf update -y libxml2
sudo systemctl restart httpd php-fpm

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLibxml2

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.45%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-825
  • Technical References
  • Red Hat Security Advisory RHSA-2025:10630

  • Red Hat Security Advisory RHSA-2025:10698

  • Red Hat Security Advisory RHSA-2025:10699

  • Red Hat Security Advisory RHSA-2025:11580

  • Red Hat Security Advisory RHSA-2025:12098

  • Red Hat Security Advisory RHSA-2025:12099

  • Red Hat Security Advisory RHSA-2025:12199

  • Red Hat Security Advisory RHSA-2025:12237

  • Red Hat Security Advisory RHSA-2025:12239

  • Red Hat Security Advisory RHSA-2025:12240

  • Red Hat Security Advisory RHSA-2025:12241

  • Red Hat Security Advisory RHSA-2025:13335

  • Red Hat Security Advisory RHSA-2025:15397

  • Red Hat Security Advisory RHSA-2025:15827

  • Red Hat Security Advisory RHSA-2025:15828

  • Red Hat Security Advisory RHSA-2025:18217

  • Red Hat Security Advisory RHSA-2025:18218

  • Red Hat Security Advisory RHSA-2025:18219

  • Red Hat Security Advisory RHSA-2025:18240

  • Red Hat Security Advisory RHSA-2025:19020

  • Red Hat Security Advisory RHSA-2025:19041

  • Red Hat Security Advisory RHSA-2025:19046

  • Red Hat Security Advisory RHSA-2025:19894

  • Red Hat Security Advisory RHSA-2025:21913

  • Red Hat Security Advisory RHSA-2026:0934

  • Red Hat Security Advisory RHSA-2026:7519

  • Red Hat CVE Report CVE-2025-49794

  • Red Hat Bugzilla Report #2372373

  • GNOME libxml2 Issue #931

  • Debian LTS Announcement July 2025

  • Siemens Product Security SSA-577017
  • Related CVEs
  • CVE-2025-27113: Xmlsoft Libxml2 Use After Free Flaw

  • CVE-2024-25062: Xmlsoft Libxml2 Use-After-Free Vulnerability

  • CVE-2024-56171: Xmlsoft Libxml2 Use-After-Free Flaw

  • CVE-2023-45322: Libxml2 Use-After-Free 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