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

CVE-2025-11931: WolfSSL Buffer Overflow Vulnerability

CVE-2025-11931 is a buffer overflow flaw in WolfSSL's XChaCha20-Poly1305 decryption function caused by integer underflow. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 28, 2026

CVE-2025-11931 Overview

An integer underflow vulnerability exists in wolfSSL's XChaCha20-Poly1305 decryption implementation that leads to out-of-bounds memory access. The vulnerability is triggered specifically through direct application calls to the wc_XChaCha20Poly1305_Decrypt() function and does not affect TLS connections.

Critical Impact

Applications directly using the wc_XChaCha20Poly1305_Decrypt() function may experience out-of-bounds memory access due to integer underflow, potentially leading to information disclosure or memory corruption.

Affected Products

  • wolfSSL wolfssl version 5.8.4
  • Applications using direct calls to wc_XChaCha20Poly1305_Decrypt()
  • Non-TLS implementations utilizing XChaCha20-Poly1305 decryption

Discovery Timeline

  • 2025-11-21 - CVE CVE-2025-11931 published to NVD
  • 2025-12-04 - Last updated in NVD database

Technical Details for CVE-2025-11931

Vulnerability Analysis

This vulnerability is classified as CWE-191 (Integer Underflow), a memory corruption issue that occurs when an arithmetic operation produces a value that wraps around below the minimum integer value. In the context of wc_XChaCha20Poly1305_Decrypt(), improper handling of size calculations can result in an integer underflow condition, causing subsequent buffer operations to access memory outside of intended boundaries.

The vulnerability is notable for its limited attack surface, as it specifically requires direct application-level calls to the affected function. TLS connections using wolfSSL are not impacted because they do not utilize this particular decryption pathway. However, applications that implement their own cryptographic protocols using wolfSSL's XChaCha20-Poly1305 primitive may be vulnerable.

Root Cause

The root cause lies in insufficient validation of input parameters before arithmetic operations in the wc_XChaCha20Poly1305_Decrypt() function. When calculating buffer sizes or offsets, the function fails to properly check for conditions that would cause the result to underflow, leading to an unexpectedly large value that is then used for memory access operations.

Attack Vector

The attack vector is network-based but requires specific conditions to be exploited. An attacker would need to:

  1. Identify an application that directly calls wc_XChaCha20Poly1305_Decrypt() with attacker-controlled input
  2. Craft malicious input that triggers the integer underflow condition
  3. Exploit the resulting out-of-bounds memory access for information disclosure or potential memory corruption

The vulnerability requires active user participation and specific preconditions, which limits its practical exploitability. Since TLS connections are not affected, the most common wolfSSL use cases remain protected.

Detection Methods for CVE-2025-11931

Indicators of Compromise

  • Unexpected application crashes or segmentation faults during XChaCha20-Poly1305 decryption operations
  • Memory access violations reported in application logs or crash dumps
  • Anomalous memory consumption patterns in applications using wolfSSL cryptographic functions

Detection Strategies

  • Monitor for crashes or exceptions in applications using wolfSSL wc_XChaCha20Poly1305_Decrypt() function calls
  • Implement runtime memory safety tools (AddressSanitizer, Valgrind) during development and testing phases
  • Review application code for direct usage of wc_XChaCha20Poly1305_Decrypt() with external input
  • Deploy application-level logging around cryptographic operations to detect anomalous behavior

Monitoring Recommendations

  • Enable verbose logging in wolfSSL-based applications to capture cryptographic operation errors
  • Implement application crash monitoring and alerting for services using wolfSSL
  • Review network traffic for malformed encrypted payloads targeting XChaCha20-Poly1305 implementations
  • Conduct periodic code audits to identify direct usage of affected wolfSSL functions

How to Mitigate CVE-2025-11931

Immediate Actions Required

  • Audit application code to identify any direct usage of wc_XChaCha20Poly1305_Decrypt() function
  • Update wolfSSL to the patched version as soon as available from the vendor
  • Implement input validation before passing data to XChaCha20-Poly1305 decryption functions
  • Consider temporarily disabling XChaCha20-Poly1305 functionality if not critical to application operation

Patch Information

wolfSSL has addressed this vulnerability through a code fix available in their GitHub repository. The GitHub Pull Request #9223 contains the security patch that resolves the integer underflow issue. Organizations should apply this patch or upgrade to a wolfSSL version that includes this fix as soon as possible.

Workarounds

  • Validate input lengths and parameters before calling wc_XChaCha20Poly1305_Decrypt() to prevent underflow conditions
  • Implement wrapper functions that perform bounds checking prior to invoking the vulnerable function
  • Use alternative authenticated encryption algorithms (such as AES-GCM) if XChaCha20-Poly1305 is not specifically required
  • Deploy runtime memory protection mechanisms to detect and prevent out-of-bounds access
bash
# Configuration example - Update wolfSSL to patched version
cd /path/to/wolfssl
git pull origin master
git checkout <patched-version>
./autogen.sh
./configure --enable-xchacha
make
make install

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechWolfssl

  • SeverityLOW

  • CVSS Score2.1

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-191
  • Vendor Resources
  • GitHub Pull Request for wolfSSL
  • Related CVEs
  • CVE-2026-5448: wolfSSL X.509 Buffer Overflow Vulnerability

  • CVE-2026-4395: wolfSSL Buffer Overflow Vulnerability

  • CVE-2026-3849: wolfSSL Buffer Overflow Vulnerability

  • CVE-2026-3549: TLS 1.3 ECH 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