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-2021-3711

CVE-2021-3711: OpenSSL SM2 Buffer Overflow Vulnerability

CVE-2021-3711 is a buffer overflow vulnerability in OpenSSL's SM2 decryption function that allows attackers to overflow buffers by up to 62 bytes. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2021-3711 Overview

CVE-2021-3711 is a critical buffer overflow vulnerability in OpenSSL's SM2 decryption implementation. The flaw exists in the EVP_PKEY_decrypt() API function, which is used to decrypt SM2 encrypted data. Applications typically call this function twice—first to determine the required buffer size and then to perform the actual decryption. A bug in the buffer size calculation causes the first call to return a size that may be smaller than what the second call actually requires, leading to a heap-based buffer overflow of up to 62 bytes when processing malicious SM2-encrypted content.

Critical Impact

Attackers who can present SM2 content for decryption to a vulnerable application can trigger a heap-based buffer overflow, potentially achieving remote code execution, altering application behavior, or causing denial of service through application crashes.

Affected Products

  • OpenSSL versions 1.1.1 through 1.1.1k
  • Debian Linux 10.0 and 11.0
  • NetApp Active IQ Unified Manager, Clustered Data ONTAP, E-Series SANtricity OS Controller, HCI Management Node, OnCommand Insight, SnapCenter, SolidFire, and related products
  • Oracle Communications Cloud Native Core, MySQL Server, PeopleSoft Enterprise PeopleTools, JD Edwards EnterpriseOne Tools, and related products
  • Tenable Nessus Network Monitor and Tenable.sc

Discovery Timeline

  • 2021-08-24 - CVE-2021-3711 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3711

Vulnerability Analysis

This vulnerability resides in OpenSSL's implementation of the SM2 cryptographic algorithm, which is a Chinese national cryptographic standard. The EVP_PKEY_decrypt() function follows a two-call pattern that is common in cryptographic APIs: the first call with a NULL output buffer returns the required buffer size, and the second call performs the actual decryption into the allocated buffer.

The core issue is a miscalculation in the buffer size estimation logic. When an application queries for the required plaintext buffer size during the first call, the SM2 decryption code returns an estimate that can be smaller than the actual plaintext size produced during decryption. This discrepancy means that when the application allocates a buffer based on this erroneous size and calls EVP_PKEY_decrypt() a second time, the decryption operation can write beyond the allocated buffer boundaries.

Root Cause

The root cause is an improper calculation of the plaintext buffer size in the SM2 decryption routines. The estimation algorithm fails to account for certain padding or encoding scenarios in SM2-encrypted data, resulting in an underestimation of up to 62 bytes. This is classified as CWE-120 (Buffer Copy without Checking Size of Input), a classic buffer overflow condition where the destination buffer is insufficiently sized for the data being written.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker must be able to supply maliciously crafted SM2-encrypted data to a vulnerable application that uses OpenSSL for decryption. The attacker controls the content that overflows the buffer, potentially allowing:

  • Corruption of adjacent heap metadata or application data
  • Modification of program control flow leading to arbitrary code execution
  • Application crashes causing denial of service

The overflow destination is application-dependent but typically occurs in heap-allocated memory, making exploitation dependent on the target application's memory layout and heap implementation.

Detection Methods for CVE-2021-3711

Indicators of Compromise

  • Unexpected application crashes in processes using OpenSSL for SM2 decryption operations
  • Memory corruption errors or heap integrity violations in application logs
  • Anomalous network traffic containing malformed SM2-encrypted payloads targeting vulnerable services
  • Signs of heap spray or memory manipulation in process memory

Detection Strategies

  • Deploy intrusion detection rules to identify malformed SM2 encryption structures in network traffic
  • Monitor for abnormal process termination or segmentation faults in OpenSSL-dependent applications
  • Implement application-level logging around EVP_PKEY_decrypt() calls to detect unusual decryption failures
  • Use memory protection tools (ASAN, Valgrind) in development environments to detect buffer overflows

Monitoring Recommendations

  • Conduct inventory assessment to identify all systems running OpenSSL versions 1.1.1 through 1.1.1k
  • Monitor security mailing lists and vendor advisories for related exploitation activity
  • Review application logs for cryptographic operation failures that could indicate exploitation attempts
  • Implement runtime memory protection mechanisms where available

How to Mitigate CVE-2021-3711

Immediate Actions Required

  • Upgrade OpenSSL to version 1.1.1l or later, which contains the fix for this vulnerability
  • Identify and prioritize patching of internet-facing services that process SM2-encrypted data
  • Apply vendor-specific patches for affected products including Debian, NetApp, Oracle, and Tenable systems
  • If SM2 is not required, consider disabling SM2 cipher support as a temporary measure

Patch Information

OpenSSL has released version 1.1.1l which addresses this vulnerability. The fix corrects the buffer size calculation in the SM2 decryption implementation to accurately estimate the required plaintext buffer size. Organizations should obtain the patched version from the OpenSSL Security Advisory 2021-08-24 or through their operating system's package manager. Additional vendor-specific patches are available from Oracle CPU October 2021 Security Alert, Oracle CPU January 2022 Security Alert, Oracle CPU April 2022 Security Alert, NetApp Advisory NTAP-20210827-0010, and Debian DSA-4963 Security Announcement.

Workarounds

  • Disable SM2 cipher support in OpenSSL configuration if not required by the application
  • Implement network-level filtering to block untrusted SM2-encrypted content from reaching vulnerable applications
  • Deploy Web Application Firewalls (WAF) with custom rules to inspect and block malicious payloads
  • Use containerization or sandboxing to limit the impact of potential exploitation
bash
# Check OpenSSL version for vulnerability status
openssl version -a

# Expected vulnerable versions: 1.1.1 through 1.1.1k
# Update to 1.1.1l or later via package manager
# Debian/Ubuntu:
sudo apt update && sudo apt upgrade openssl

# RHEL/CentOS:
sudo yum update openssl

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechOpenssl

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability2.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • Openwall OSS-Security Discussion

  • Siemens Security PDF Advisory

  • OpenSSL Commit Update

  • Apache Tomcat Developer Thread

  • Apache Tomcat Dev Discussions

  • Gentoo GLSA 2022-09-02

  • Gentoo GLSA 2022-10-02

  • NetApp Advisory NTAP-20210827-0010

  • NetApp Advisory NTAP-20211022-0003

  • NetApp Advisory NTAP-20240621-0006

  • Debian DSA-4963 Security Announcement

  • Tenable Security Notification TNS-2021-16

  • Tenable Security Notification TNS-2022-02
  • Vendor Resources
  • OpenSSL Security Advisory 2021-08-24

  • Oracle CPU April 2022 Security Alert

  • Oracle CPU January 2022 Security Alert

  • Oracle CPU October 2021 Security Alert
  • Related CVEs
  • CVE-2026-31789: OpenSSL Buffer Overflow Vulnerability

  • CVE-2025-15467: OpenSSL Buffer Overflow Vulnerability

  • CVE-2025-11187: OpenSSL Buffer Overflow Vulnerability

  • CVE-2025-69419: OpenSSL 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