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-3849

CVE-2026-3849: wolfSSL Buffer Overflow Vulnerability

CVE-2026-3849 is a stack buffer overflow in wolfSSL 5.8.4 ECH support that enables remote code execution via malicious ECH configs. This article covers technical details, affected versions, exploitation risks, and mitigation.

Published: March 19, 2026

CVE-2026-3849 Overview

A stack buffer overflow vulnerability exists in wolfSSL 5.8.4 within the wc_HpkeLabeledExtract function when processing Encrypted Client Hello (ECH) configurations. When a maliciously crafted oversized ECH config is received from a TLS server, the vulnerability triggers a stack buffer overflow on the client side. This can lead to potential remote code execution or cause the client program to crash.

The vulnerability is exploitable by a malicious TLS server that supports ECH. However, it's important to note that ECH support is disabled by default in wolfSSL and must be explicitly enabled using the --enable-ech build option, which limits the attack surface.

Critical Impact

A malicious TLS server can exploit this stack buffer overflow to potentially achieve remote code execution on vulnerable wolfSSL clients with ECH enabled, or cause denial of service through client program crashes.

Affected Products

  • wolfSSL 5.8.4 with ECH enabled (--enable-ech)
  • Applications built against wolfSSL 5.8.4 with ECH support compiled in
  • TLS clients utilizing wolfSSL's Encrypted Client Hello functionality

Discovery Timeline

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

Technical Details for CVE-2026-3849

Vulnerability Analysis

This vulnerability is classified as CWE-787 (Out-of-bounds Write), specifically manifesting as a stack buffer overflow. The flaw resides in the wc_HpkeLabeledExtract function, which is part of wolfSSL's HPKE (Hybrid Public Key Encryption) implementation used by ECH.

When processing an ECH configuration received from a TLS server, the function fails to properly validate the size of the incoming configuration data before copying it to a fixed-size stack buffer. An attacker controlling a malicious TLS server can craft an oversized ECH config that exceeds the expected buffer boundaries, causing memory corruption on the stack.

The network-based attack vector with low complexity means that exploitation does not require authentication or user interaction, though the scope is limited by the requirement that ECH must be explicitly enabled on the client.

Root Cause

The root cause is insufficient bounds checking in the wc_HpkeLabeledExtract function when handling ECH configuration data. The function allocates a fixed-size buffer on the stack to process HPKE labeled extraction operations. When the ECH config exceeds the expected maximum size, the function copies data beyond the buffer boundaries, corrupting adjacent stack memory.

This type of vulnerability typically occurs when:

  • Input length validation is missing or inadequate
  • Fixed-size stack buffers are used without proper size constraints
  • The code trusts externally-provided length fields without verification

Attack Vector

The attack requires a malicious TLS server that supports ECH. When a vulnerable wolfSSL client initiates a TLS connection with ECH enabled, the server can respond with a specially crafted ECH configuration containing an oversized payload.

The attack flow involves the client connecting to a malicious TLS server, which then sends a crafted ECH configuration with excessive size. When the client processes this configuration via wc_HpkeLabeledExtract, the oversized data overflows the stack buffer. Depending on the overflow contents, this results in either remote code execution or a client crash.

Since the vulnerability requires the target to connect to a malicious server, practical exploitation scenarios include DNS spoofing to redirect legitimate connections, man-in-the-middle attacks on initial connections, or watering hole attacks where victims are lured to attacker-controlled servers.

Detection Methods for CVE-2026-3849

Indicators of Compromise

  • Unexpected crashes in applications using wolfSSL with ECH enabled
  • Stack corruption or buffer overflow exceptions in TLS client processes
  • Unusual network connections to suspicious TLS servers from ECH-enabled clients
  • Core dumps showing memory corruption patterns in wolfSSL-related stack frames

Detection Strategies

  • Monitor for crash events in applications built with wolfSSL 5.8.4 that have ECH support
  • Deploy network intrusion detection rules to identify anomalously large ECH configurations in TLS handshakes
  • Implement application-level monitoring for stack canary violations or buffer overflow protections triggering
  • Review build configurations to identify systems where --enable-ech was used

Monitoring Recommendations

  • Enable verbose logging on TLS client applications to capture ECH configuration details
  • Configure crash reporting systems to alert on wolfSSL-related stack buffer overflow crashes
  • Monitor network traffic for TLS connections with unusually large server hello or ECH-related extensions
  • Implement endpoint detection for memory corruption indicators in wolfSSL client processes

How to Mitigate CVE-2026-3849

Immediate Actions Required

  • Identify all applications built with wolfSSL 5.8.4 where ECH support is enabled
  • Disable ECH functionality temporarily by rebuilding without --enable-ech if not required
  • Apply the security patch referenced in the wolfSSL GitHub Pull Request #9737
  • Prioritize patching for internet-facing TLS client applications

Patch Information

The wolfSSL team has addressed this vulnerability in Pull Request #9737. Organizations should upgrade to the patched version of wolfSSL as soon as it becomes available in an official release. The patch adds proper bounds checking to the wc_HpkeLabeledExtract function to prevent oversized ECH configurations from causing buffer overflows.

Workarounds

  • Rebuild wolfSSL without ECH support by omitting the --enable-ech configuration flag
  • Implement network-level filtering to block or inspect ECH configurations exceeding expected sizes
  • Deploy compile-time stack protection mechanisms (stack canaries, ASLR) to mitigate exploitation
  • Restrict outbound TLS connections to trusted servers where possible to reduce exposure to malicious ECH configs
bash
# Configuration example - Rebuild wolfSSL without ECH support
./configure --disable-ech
make clean
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

  • SeverityMEDIUM

  • CVSS Score6.9

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/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:D/RE:M/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-787
  • Technical References
  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-4395: wolfSSL Buffer Overflow Vulnerability

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

  • CVE-2026-3229: wolfSSL Buffer Overflow Vulnerability

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