Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-4395

CVE-2026-4395: wolfSSL Buffer Overflow Vulnerability

CVE-2026-4395 is a heap-based buffer overflow in wolfSSL's KCAPI ECC code that allows remote attackers to write data beyond buffer bounds. This article covers technical details, affected versions, impact, and mitigation.

Published: March 19, 2026

CVE-2026-4395 Overview

A heap-based buffer overflow vulnerability exists in the KCAPI ECC code path of wc_ecc_import_x963_ex() in wolfSSL wolfcrypt. This vulnerability allows a remote attacker to write attacker-controlled data past the bounds of the pubkey_raw buffer by sending a crafted oversized EC public key point. The flaw occurs because the WOLFSSL_KCAPI_ECC code path copies input data to key->pubkey_raw (a 132-byte buffer) using XMEMCPY without performing proper bounds checking, unlike the ATECC code path which includes length validation.

Critical Impact

Remote attackers can trigger this vulnerability during TLS key exchange by sending a malicious ECPoint in ServerKeyExchange, potentially leading to memory corruption.

Affected Products

  • wolfSSL wolfcrypt (versions with WOLFSSL_KCAPI_ECC enabled)
  • Systems using KCAPI (Kernel Crypto API) ECC implementation in wolfSSL
  • TLS servers and clients using vulnerable wolfSSL library builds

Discovery Timeline

  • 2026-03-19 - CVE CVE-2026-4395 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-4395

Vulnerability Analysis

This vulnerability is classified as CWE-122 (Heap-based Buffer Overflow). The root issue lies in the inconsistent handling of input validation between different code paths within the wc_ecc_import_x963_ex() function. When the WOLFSSL_KCAPI_ECC preprocessor macro is defined, the code path that handles ECC key imports fails to validate the length of the incoming public key data before copying it into a fixed-size heap buffer.

The vulnerability can be exploited remotely over the network, requiring some user interaction. An attacker must send a crafted TLS handshake containing an oversized ECPoint structure during the key exchange phase to trigger the overflow condition.

Root Cause

The vulnerability stems from a missing bounds check in the KCAPI ECC code path. When importing an X9.63 formatted ECC public key, the WOLFSSL_KCAPI_ECC implementation directly copies the input data to key->pubkey_raw using XMEMCPY without first validating that the input length does not exceed the 132-byte buffer size. This contrasts with the ATECC code path, which properly validates the input length before performing the copy operation. The inconsistency between these two code paths represents a classic case of incomplete security hardening across parallel implementations.

Attack Vector

The attack can be conducted remotely over the network during a TLS handshake. A malicious peer (either server or client depending on the scenario) can craft a TLS ServerKeyExchange or ClientKeyExchange message containing an oversized EC public key point. When the victim processes this malformed message using wc_ecc_import_x963_ex() with the KCAPI ECC code path enabled, the oversized key data overflows the pubkey_raw heap buffer.

The attack mechanism involves crafting an ECPoint structure larger than 132 bytes. When this malformed point is processed, the XMEMCPY operation writes past the allocated buffer boundary, potentially corrupting adjacent heap metadata or application data. Depending on the heap layout and the attacker's control over the overflow data, this could lead to information disclosure, denial of service, or potentially code execution.

For technical details on the vulnerable code path and the fix, see the GitHub Pull Request.

Detection Methods for CVE-2026-4395

Indicators of Compromise

  • Abnormal TLS handshake failures with wolfSSL-based applications
  • Crash logs indicating heap corruption in wc_ecc_import_x963_ex() or related ECC functions
  • Unexpected memory allocation patterns in processes using wolfSSL with KCAPI ECC enabled

Detection Strategies

  • Monitor for TLS connections containing unusually large ECPoint values in key exchange messages
  • Deploy memory corruption detection tools (AddressSanitizer, Valgrind) in development and testing environments
  • Implement network-level inspection for malformed TLS handshake messages with oversized ECC parameters
  • Review application crash dumps for stack traces involving wolfSSL ECC import functions

Monitoring Recommendations

  • Enable heap integrity checking in production environments where feasible
  • Configure intrusion detection systems to alert on anomalous TLS handshake patterns
  • Monitor system logs for repeated TLS negotiation failures that could indicate exploitation attempts
  • Implement application-level logging for ECC key import operations to track unusual key sizes

How to Mitigate CVE-2026-4395

Immediate Actions Required

  • Update wolfSSL to the latest patched version that includes the bounds check fix
  • If immediate patching is not possible, consider disabling the KCAPI ECC code path by removing the WOLFSSL_KCAPI_ECC compile-time option
  • Review and audit any custom TLS implementations using wolfSSL for proper input validation
  • Implement network-level filtering to block malformed TLS handshakes if possible

Patch Information

The fix for this vulnerability adds proper bounds checking to the KCAPI ECC code path before copying input data to the pubkey_raw buffer. The patch ensures that the input length is validated against the buffer size (132 bytes) before the XMEMCPY operation is performed, bringing the KCAPI implementation in line with the security measures already present in the ATECC code path. For the official fix, refer to the wolfSSL GitHub Pull Request #9988.

Workarounds

  • Rebuild wolfSSL without the WOLFSSL_KCAPI_ECC preprocessor macro defined to use alternative ECC implementations
  • Implement application-layer validation of incoming ECC public key sizes before passing them to wolfSSL
  • Use TLS termination proxies that can filter out malformed key exchange messages
  • Consider using hardware security modules (HSMs) for ECC operations as an alternative to the vulnerable code path

If you must use the KCAPI ECC code path, ensure strict network segmentation to limit exposure to untrusted peers until a patch can be applied.

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 Score1.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/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:Y/R:U/V:D/RE:L/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-122
  • Technical References
  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-5448: wolfSSL X.509 Buffer Overflow Vulnerability

  • CVE-2026-3849: wolfSSL Buffer Overflow Vulnerability

  • CVE-2026-3549: TLS 1.3 ECH Buffer Overflow Vulnerability

  • CVE-2026-3229: wolfSSL 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