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

CVE-2026-32877: Botan C++ Buffer Overflow Vulnerability

CVE-2026-32877 is a buffer overflow flaw in Botan C++ cryptography library affecting SM2 decryption that can cause heap over-reads and crashes. This article covers technical details, affected versions, impact, and mitigation.

Published: April 2, 2026

CVE-2026-32877 Overview

CVE-2026-32877 is a heap-based out-of-bounds read vulnerability in the Botan C++ cryptography library affecting SM2 decryption operations. The vulnerability exists from version 2.3.0 to before version 3.11.0, where the authentication code value (C3) validation fails to verify the expected length of the encoded value before comparison. An attacker can exploit this flaw by providing an invalid ciphertext, triggering a heap over-read of up to 31 bytes, which can result in application crashes or potentially other undefined behavior.

Critical Impact

This vulnerability enables denial of service through application crashes and may lead to information disclosure or undefined behavior due to improper memory access during SM2 decryption operations.

Affected Products

  • Botan C++ cryptography library versions 2.3.0 to 3.10.x
  • Applications and systems integrating vulnerable Botan versions for SM2 cryptographic operations
  • Services utilizing SM2 decryption functionality through the Botan library

Discovery Timeline

  • 2026-03-30 - CVE CVE-2026-32877 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-32877

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-Bounds Read), a memory safety issue that occurs when the software reads data past the end of the intended buffer. In the context of the Botan cryptography library, the flaw manifests during SM2 decryption operations—specifically in the code responsible for validating the authentication code component (C3) of the SM2 ciphertext structure.

SM2 is a Chinese national cryptographic standard that includes public key encryption, digital signatures, and key exchange algorithms. During the decryption process, the C3 component serves as a hash-based authentication code that verifies the integrity of the encrypted message. The vulnerable code path performs a comparison operation on the C3 value without first validating that the encoded value matches the expected length, creating a boundary condition where the comparison may read beyond allocated memory.

Root Cause

The root cause is an improper input validation error in the SM2 decryption routine. The code fails to enforce a length check on the authentication code (C3) field before performing memory comparison operations. When a maliciously crafted ciphertext with an incorrectly sized C3 component is processed, the comparison function continues reading memory beyond the intended buffer boundaries, potentially accessing up to 31 bytes of adjacent heap memory.

Attack Vector

The attack can be executed remotely over the network by supplying specially crafted invalid SM2 ciphertext to any application using a vulnerable version of the Botan library. The attacker does not require authentication or user interaction to trigger the vulnerability. The exploitation scenario involves:

  1. Identifying an application or service that uses Botan for SM2 decryption
  2. Crafting a malformed SM2 ciphertext with an authentication code (C3) of unexpected length
  3. Sending the malicious ciphertext to the target service
  4. The heap over-read is triggered when the decryption routine attempts to validate the C3 component

The vulnerability can cause application crashes leading to denial of service, and depending on memory layout and application behavior, may potentially leak sensitive information from adjacent heap memory or trigger other undefined behavior.

Detection Methods for CVE-2026-32877

Indicators of Compromise

  • Unexpected application crashes or segmentation faults in services performing SM2 decryption operations
  • Abnormal memory access patterns or memory corruption errors in applications using the Botan library
  • Increased error rates in cryptographic operations with malformed input handling

Detection Strategies

  • Monitor application logs for SM2 decryption failures accompanied by memory-related errors or crashes
  • Implement runtime memory sanitizers (ASan, MSan) in development and testing environments to detect out-of-bounds read attempts
  • Deploy intrusion detection signatures that identify malformed SM2 ciphertext structures with abnormal C3 field lengths

Monitoring Recommendations

  • Enable detailed logging for cryptographic operations, particularly SM2 decryption failures
  • Configure application crash monitoring and alerting for services using the Botan library
  • Audit and inventory all systems and applications that incorporate Botan versions between 2.3.0 and 3.10.x

How to Mitigate CVE-2026-32877

Immediate Actions Required

  • Upgrade all Botan library installations to version 3.11.0 or later immediately
  • Identify and inventory all applications and services using vulnerable Botan versions for SM2 operations
  • Implement input validation at the application layer to reject malformed ciphertext before passing to the decryption function
  • Consider temporarily disabling SM2 decryption functionality if upgrading is not immediately feasible

Patch Information

The vulnerability has been patched in Botan version 3.11.0. Organizations should update to this version or later to remediate the vulnerability. The patch adds proper length validation for the C3 authentication code component before performing the comparison operation during SM2 decryption. For detailed patch information and the security advisory, refer to the GitHub Security Advisory.

Workarounds

  • Implement strict input validation to verify SM2 ciphertext structure and component lengths before processing
  • Deploy network-level filtering to sanitize or reject potentially malicious cryptographic payloads
  • Isolate services performing SM2 decryption in sandboxed environments to limit the impact of potential crashes
  • Consider using alternative cryptographic libraries for SM2 operations until the patch can be applied
bash
# Verify Botan version and update
# Check installed Botan version
botan version

# Update Botan to patched version 3.11.0 or later
# Example using package manager or from source
git clone https://github.com/randombit/botan.git
cd botan
git checkout 3.11.0
./configure.py
make
sudo 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/TechBotan

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32883: Botan Information Disclosure Vulnerability

  • CVE-2026-32884: Botan C++ Authentication Bypass 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