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

CVE-2026-5187: wolfSSL Buffer Overflow Vulnerability

CVE-2026-5187 is a heap buffer overflow flaw in wolfSSL's wolfCrypt library affecting the DecodeObjectId function. Attackers can exploit this to write beyond buffer boundaries. This article covers technical details, affected versions, impact, and mitigation steps.

Published: April 9, 2026

CVE-2026-5187 Overview

Two potential heap out-of-bounds write vulnerabilities exist in the DecodeObjectId() function within wolfcrypt/src/asn.c in wolfSSL. The first flaw occurs when a bounds check only validates one available slot before writing two OID arc values (out[0] and out[1]), enabling a 2-byte out-of-bounds write when outSz equals 1. The second vulnerability stems from multiple callers passing sizeof(decOid) (64 bytes on 64-bit platforms) instead of the element count MAX_OID_SZ (32), causing the function to accept crafted OIDs with 33 or more arcs that write past the end of the allocated buffer.

Critical Impact

Attackers with network access and low privileges can exploit this heap-based buffer overflow to corrupt memory, potentially leading to denial of service or limited integrity compromise through crafted OID values in ASN.1 data structures.

Affected Products

  • wolfSSL wolfcrypt library (versions containing vulnerable DecodeObjectId() implementation)
  • Applications utilizing wolfSSL for TLS/SSL or cryptographic operations
  • Embedded systems and IoT devices using wolfSSL for certificate parsing

Discovery Timeline

  • 2026-04-09 - CVE-2026-5187 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-5187

Vulnerability Analysis

This vulnerability is classified as CWE-122 (Heap-based Buffer Overflow), a dangerous memory corruption flaw that occurs in the ASN.1 Object Identifier decoding functionality of wolfSSL's cryptographic library. The vulnerability manifests in the DecodeObjectId() function, which is responsible for parsing and decoding Object Identifiers (OIDs) from ASN.1-encoded data structures commonly found in X.509 certificates, PKCS standards, and other cryptographic protocols.

The core issue involves two distinct but related buffer overflow conditions. The first occurs due to an insufficient bounds check that validates only a single available slot in the output buffer before the function attempts to write two OID arc values. When the output buffer size (outSz) is exactly 1, the function proceeds to write both out[0] and out[1], resulting in a 2-byte heap overflow.

The second vulnerability arises from a semantic mismatch between callers and the function implementation. Multiple code paths pass sizeof(decOid) as the buffer size parameter, which on 64-bit platforms equals 64 bytes. However, the actual array can only safely hold MAX_OID_SZ (32) elements. This discrepancy allows attackers to craft malicious OIDs containing 33 or more arcs, causing writes beyond the allocated buffer boundary.

Root Cause

The root cause of this vulnerability is improper input validation and incorrect size calculations in the DecodeObjectId() function. The bounds checking logic fails to account for the dual-write operation in the first case, and caller functions incorrectly use byte-based sizeof() instead of element count when specifying buffer capacity. This represents a classic C programming error where the distinction between buffer size in bytes versus element count is not properly maintained, compounded by insufficient validation before multi-element write operations.

Attack Vector

The vulnerability is exploitable over the network by authenticated users with low privileges. An attacker can craft malicious ASN.1-encoded data containing specially constructed Object Identifiers and send them to applications using wolfSSL for certificate parsing or cryptographic operations. When the vulnerable DecodeObjectId() function processes this data, the heap buffer overflow occurs.

Exploitation requires the attacker to control or influence ASN.1 data being parsed by the target application, such as through certificate exchanges during TLS handshakes, PKCS message processing, or other cryptographic protocol interactions. The attack has prerequisites that make exploitation more complex, limiting the overall impact despite the network accessibility.

The vulnerability mechanism involves crafting an OID with either:

  1. Minimal encoded data that triggers the 2-byte overflow when outSz equals 1
  2. An OID containing 33 or more arcs to exceed the MAX_OID_SZ limit

When decoded, the function writes beyond the allocated heap buffer, potentially corrupting adjacent memory structures. This can lead to denial of service through application crashes or limited integrity violations if adjacent data structures can be controllably overwritten.

Detection Methods for CVE-2026-5187

Indicators of Compromise

  • Unexpected application crashes or segmentation faults during certificate parsing or TLS handshake operations
  • Abnormal memory consumption patterns in processes using wolfSSL libraries
  • Core dumps or crash logs showing memory corruption in ASN.1 decoding routines

Detection Strategies

  • Deploy memory sanitizers (ASan, MSan) in development and testing environments to detect heap overflow attempts
  • Monitor for malformed or unusually long OIDs in network traffic during TLS negotiations
  • Implement application-level logging for ASN.1 parsing failures and exceptions

Monitoring Recommendations

  • Enable verbose logging for wolfSSL certificate validation and ASN.1 parsing operations
  • Configure intrusion detection systems to alert on malformed certificate exchanges
  • Monitor process stability for applications using wolfSSL, tracking crash frequency and patterns

How to Mitigate CVE-2026-5187

Immediate Actions Required

  • Identify all applications and systems using wolfSSL cryptographic libraries
  • Review the wolfSSL GitHub project for security patches addressing this vulnerability
  • Apply vendor patches as soon as they become available
  • Consider temporarily restricting certificate parsing from untrusted sources until patches are applied

Patch Information

Organizations should monitor the official wolfSSL GitHub repository for security updates addressing CVE-2026-5187. The fix should address both the insufficient bounds check before dual-write operations and correct the caller functions to pass element counts rather than byte sizes when invoking DecodeObjectId().

Workarounds

  • Implement additional input validation on ASN.1 data before passing to wolfSSL parsing functions
  • Restrict network exposure of affected applications until patches are available
  • Deploy web application firewalls or network filters to inspect and reject malformed certificate data
  • Consider using alternative cryptographic libraries for critical operations until the vulnerability is patched

The mitigation configuration will depend on your specific deployment environment and application architecture. Consult wolfSSL documentation and your security team to implement appropriate controls for your use case.

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechWolfcrypt

  • SeverityLOW

  • CVSS Score2.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/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:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-122
  • Technical References
  • GitHub wolfSSL Project
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer 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