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

CVE-2026-0819: wolfSSL Buffer Overflow Vulnerability

CVE-2026-0819 is a stack buffer overflow vulnerability in wolfSSL's PKCS7 SignedData encoding that enables memory corruption. This article covers the technical details, affected versions, exploit conditions, and mitigation.

Published: March 19, 2026

CVE-2026-0819 Overview

A stack buffer overflow vulnerability exists in wolfSSL's PKCS7 SignedData encoding functionality. The flaw resides in the wc_PKCS7_BuildSignedAttributes() function where, when adding custom signed attributes, the code passes an incorrect capacity value (esd->signedAttribsCount) to EncodeAttributes() instead of the remaining available space in the fixed-size signedAttribs[7] array. When an application sets pkcs7->signedAttribsSz to a value greater than MAX_SIGNED_ATTRIBS_SZ (default 7) minus the number of default attributes already added, EncodeAttributes() writes beyond the array bounds, causing stack memory corruption. In WOLFSSL_SMALL_STACK builds, this becomes heap corruption.

Critical Impact

Memory corruption vulnerability that can lead to integrity and availability impacts when untrusted input controls the signedAttribs array size in cryptographic signing operations.

Affected Products

  • wolfSSL library (versions with vulnerable PKCS7 SignedData encoding)
  • Applications using wc_PKCS7_EncodeSignedData() or related signing functions
  • Systems compiled with WOLFSSL_SMALL_STACK build option (heap corruption variant)

Discovery Timeline

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

Technical Details for CVE-2026-0819

Vulnerability Analysis

This vulnerability stems from a classic off-by-one style logic error in bounds checking within wolfSSL's PKCS7 implementation. The wc_PKCS7_BuildSignedAttributes() function is responsible for constructing the signed attributes portion of PKCS7 SignedData structures. When processing custom signed attributes supplied by the calling application, the function incorrectly calculates the available buffer space.

The core issue is a parameter mismatch: instead of passing the remaining capacity of the fixed-size signedAttribs[7] array to EncodeAttributes(), the code passes esd->signedAttribsCount, which represents the current count of attributes rather than available space. This semantic error allows EncodeAttributes() to write beyond the allocated array boundaries when processing user-controlled attribute sizes.

The exploitation scenario requires a local attacker who can influence the signedAttribs array size parameter when an application calls wc_PKCS7_EncodeSignedData() or related signing functions. While this limits the attack surface, applications that process untrusted PKCS7 signing requests or allow user-controlled cryptographic parameters could be vulnerable.

Root Cause

The root cause is CWE-121: Stack-based Buffer Overflow. The vulnerability occurs due to incorrect capacity calculation in wc_PKCS7_BuildSignedAttributes(), where the function passes esd->signedAttribsCount (the current attribute count) to EncodeAttributes() instead of calculating the remaining available slots in the fixed-size signedAttribs[7] array. This logic error causes the encoding function to exceed array bounds when the combined count of default and custom attributes exceeds MAX_SIGNED_ATTRIBS_SZ (7).

Attack Vector

The attack vector requires local access and specific application conditions. An attacker must be able to control the pkcs7->signedAttribsSz value when the application calls PKCS7 signing functions. The attack flow proceeds as follows:

  1. The attacker provides input that causes the application to set pkcs7->signedAttribsSz to a value that, when combined with default attributes, exceeds 7
  2. The application calls wc_PKCS7_EncodeSignedData() or a related signing function
  3. The wc_PKCS7_BuildSignedAttributes() function processes the attributes and calls EncodeAttributes() with incorrect capacity
  4. EncodeAttributes() writes beyond the signedAttribs[7] array bounds, corrupting adjacent stack memory

In WOLFSSL_SMALL_STACK builds, the signedAttribs array is heap-allocated, transforming the stack corruption into heap corruption. This may present different exploitation opportunities depending on the heap allocator in use.

The vulnerability mechanism involves the wc_PKCS7_BuildSignedAttributes() function maintaining a fixed-size array of 7 signed attribute entries. When building the attribute list, the function first adds default attributes (such as content type and message digest), then processes any custom attributes specified by the application. The bug occurs because the capacity check uses the wrong variable, allowing writes past the array boundary when too many attributes are specified.

Detection Methods for CVE-2026-0819

Indicators of Compromise

  • Unexpected application crashes or segmentation faults during PKCS7 signing operations
  • Stack smashing detection alerts from compiler security features (e.g., -fstack-protector)
  • Memory corruption errors reported by runtime sanitizers (ASan, MSan)
  • Unusual behavior in applications processing PKCS7 SignedData with custom attributes

Detection Strategies

  • Deploy application crash monitoring to detect abnormal terminations during cryptographic operations
  • Enable AddressSanitizer (ASan) in development and testing environments to catch buffer overflows
  • Monitor for applications using wolfSSL PKCS7 signing functions with user-controlled attribute parameters
  • Implement input validation to limit signedAttribsSz values before calling wolfSSL functions

Monitoring Recommendations

  • Audit applications using wolfSSL to identify those that allow untrusted input to control PKCS7 signing parameters
  • Review code paths that call wc_PKCS7_EncodeSignedData(), wc_PKCS7_EncodeSignedData_ex(), or related functions
  • Monitor wolfSSL security advisories and the GitHub Pull Request #9630 for updates
  • Implement runtime memory protection mechanisms on systems processing untrusted cryptographic data

How to Mitigate CVE-2026-0819

Immediate Actions Required

  • Update wolfSSL to the latest patched version that addresses this vulnerability
  • Review and audit all applications that use wolfSSL PKCS7 signing functionality
  • Implement input validation to ensure signedAttribsSz does not exceed safe limits
  • Consider enabling compiler stack protection features (-fstack-protector-strong) as defense-in-depth

Patch Information

The fix for this vulnerability is tracked in GitHub Pull Request #9630. The patch corrects the capacity calculation in wc_PKCS7_BuildSignedAttributes() to pass the actual remaining available space in the signedAttribs array to EncodeAttributes(), rather than the current attribute count. Organizations should apply this fix by updating to a wolfSSL version that includes this correction.

Workarounds

  • Implement application-level validation to ensure pkcs7->signedAttribsSz plus default attributes does not exceed MAX_SIGNED_ATTRIBS_SZ (7)
  • Avoid allowing untrusted input to directly control PKCS7 signed attribute parameters
  • Deploy applications with stack canary protection enabled to detect exploitation attempts
  • Consider sandboxing or isolating processes that handle PKCS7 signing operations with untrusted data
bash
# Compile wolfSSL applications with stack protection and sanitizers for detection
gcc -fstack-protector-strong -fsanitize=address -o myapp myapp.c -lwolfssl

# Check current wolfSSL version for vulnerability assessment
wolfssl-config --version

# Review application code for vulnerable function calls
grep -rn "wc_PKCS7_EncodeSignedData\|signedAttribsSz" /path/to/application/

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.2

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/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
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-121
  • Technical References
  • 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