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-2026-32313

CVE-2026-32313: Xmlseclibs XXE Vulnerability

CVE-2026-32313 is an XXE flaw in Xmlseclibs_project Xmlseclibs affecting XML encryption with AES-GCM modes. Attackers can exploit weak authentication tags to decrypt data or forge ciphertexts. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 20, 2026

CVE-2026-32313 Overview

CVE-2026-32313 is a cryptographic vulnerability in xmlseclibs, a widely-used PHP library for working with XML Encryption and Signatures. The vulnerability exists in versions prior to 3.1.5 where XML nodes encrypted with AES-GCM algorithms (aes-128-gcm, aes-192-gcm, or aes-256-gcm) lack proper validation of the authentication tag length. This cryptographic weakness allows attackers to brute-force authentication tags, recover the GHASH key, and ultimately decrypt encrypted XML nodes without possessing the encryption key.

Critical Impact

Attackers can exploit this vulnerability to decrypt sensitive XML data and forge arbitrary ciphertexts without knowing the encryption key, potentially compromising authentication tokens, SAML assertions, and other cryptographically protected XML content.

Affected Products

  • xmlseclibs versions prior to 3.1.5
  • Applications using xmlseclibs for XML encryption with AES-GCM ciphers
  • SAML implementations and XML-based authentication systems dependent on xmlseclibs

Discovery Timeline

  • 2026-03-16 - CVE-2026-32313 published to NVD
  • 2026-03-17 - Last updated in NVD database

Technical Details for CVE-2026-32313

Vulnerability Analysis

The vulnerability stems from improper cryptographic integrity checking in xmlseclibs when handling AES-GCM encrypted XML data. AES-GCM (Galois/Counter Mode) is an authenticated encryption mode that produces both ciphertext and an authentication tag. The authentication tag is critical for verifying that the ciphertext has not been tampered with and was produced by a party possessing the correct key.

In vulnerable versions of xmlseclibs, the library fails to validate that the authentication tag has the expected length before processing decryption. This oversight enables a truncation attack where an attacker can submit ciphertexts with shortened authentication tags, dramatically reducing the brute-force space required to find a valid tag.

Root Cause

The root cause is the absence of length validation for the authentication tag extracted from encrypted XML data. The XMLSecurityKey.php component extracts the authentication tag from the end of the ciphertext data but does not verify that the extracted tag matches the expected length constant (AUTHTAG_LENGTH). This allows attackers to submit truncated tags that are easier to brute-force.

Attack Vector

This vulnerability is exploitable over the network without authentication. An attacker can intercept or obtain encrypted XML content and then craft malicious ciphertexts with truncated authentication tags. By systematically testing shortened tags, the attacker can:

  1. Brute-force valid authentication tags due to the reduced tag space
  2. Recover the GHASH key used in the GCM authentication process
  3. Decrypt the original encrypted XML nodes
  4. Forge arbitrary ciphertexts that will pass authentication validation

The following patch demonstrates the security fix implemented in version 3.1.5:

php
             // obtain and remove the authentication tag
             $offset = 0 - self::AUTHTAG_LENGTH;
             $authTag = substr($data, $offset);
+            if (strlen($authTag) !== self::AUTHTAG_LENGTH) {
+                throw new Exception('Authentication tag length is invalid');
+            }
             $data = substr($data, 0, $offset);
             $decrypted = openssl_decrypt($data, $this->cryptParams['cipher'], $this->key, OPENSSL_RAW_DATA, $this->iv, $authTag);
         } else {

Source: GitHub Commit

The fix adds explicit validation to ensure the authentication tag length matches the expected constant before proceeding with decryption, preventing truncation attacks.

Detection Methods for CVE-2026-32313

Indicators of Compromise

  • Unusual decryption failures or exceptions in XML processing logs that may indicate probing attempts
  • High volumes of SAML or encrypted XML requests with varying payload sizes from single sources
  • Application errors related to GCM authentication tag processing
  • Evidence of modified or truncated encrypted XML payloads in traffic analysis

Detection Strategies

  • Audit PHP application dependencies using Composer to identify xmlseclibs versions below 3.1.5
  • Implement application-level logging for XML decryption operations to detect anomalous patterns
  • Deploy Web Application Firewall (WAF) rules to inspect and flag malformed encrypted XML payloads
  • Use Software Composition Analysis (SCA) tools to continuously monitor for vulnerable library versions

Monitoring Recommendations

  • Enable detailed logging for all XML encryption and decryption operations in affected applications
  • Monitor for spikes in authentication or decryption failures that could indicate exploitation attempts
  • Configure alerts for unusual patterns in encrypted XML traffic size distributions
  • Review application security logs for exception messages related to authentication tag processing

How to Mitigate CVE-2026-32313

Immediate Actions Required

  • Upgrade xmlseclibs to version 3.1.5 or later immediately using Composer: composer update robrichards/xmlseclibs
  • Audit all applications using xmlseclibs to ensure they are using the patched version
  • Review any encrypted XML data that may have been exposed and consider key rotation
  • If immediate upgrade is not possible, temporarily disable AES-GCM cipher support in favor of alternative encryption modes

Patch Information

The vulnerability is fixed in xmlseclibs version 3.1.5. The fix was merged via GitHub Commit 03062be78178cbb5e8f605cd255dc32a14981f92 and adds proper authentication tag length validation. The complete release is available at the GitHub Release Tag 3.1.5. For additional details, consult the GitHub Security Advisory GHSA-4v26-v6cg-g6f9.

Workarounds

  • Temporarily switch to non-GCM encryption algorithms (e.g., aes-128-cbc, aes-256-cbc) until upgrade is complete
  • Implement additional application-layer validation for encrypted XML payload sizes and structure
  • Apply network-level filtering to reject encrypted XML payloads with unexpected sizes
  • Consider deploying a reverse proxy or WAF with custom rules to validate authentication tag lengths before they reach the application
bash
# Upgrade xmlseclibs to patched version
composer require robrichards/xmlseclibs:^3.1.5

# Verify installed version
composer show robrichards/xmlseclibs | grep versions

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechXmlseclibs

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-354
  • Technical References
  • GitHub Release Tag 3.1.5
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-4v26-v6cg-g6f9
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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