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

CVE-2021-3712: OpenSSL ASN.1 String DoS Vulnerability

CVE-2021-3712 is a denial of service vulnerability in OpenSSL ASN.1 string handling that can cause crashes or memory disclosure. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-3712 Overview

CVE-2021-3712 is an Out-of-Bounds Read vulnerability affecting OpenSSL's handling of ASN.1 strings. The vulnerability stems from how OpenSSL represents ASN.1 strings internally using the ASN1_STRING structure, which contains a buffer holding string data and a length field. Unlike standard C strings that are NUL-terminated, ASN.1 strings constructed directly by applications may not include this termination byte. When OpenSSL functions that print ASN.1 data process these non-NUL-terminated strings, a read buffer overrun can occur, potentially leading to denial of service or disclosure of sensitive memory contents.

Critical Impact

This vulnerability can cause application crashes (Denial of Service) or leak private memory contents including private keys and sensitive plaintext data through out-of-bounds memory reads.

Affected Products

  • OpenSSL 1.1.1 through 1.1.1k
  • OpenSSL 1.0.2 through 1.0.2y
  • Debian Linux 9.0, 10.0, 11.0
  • NetApp Clustered Data ONTAP and related products
  • McAfee ePolicy Orchestrator
  • Tenable Nessus Network Monitor and Tenable.sc
  • Oracle MySQL Server, MySQL Workbench, MySQL Connectors
  • Oracle PeopleSoft Enterprise PeopleTools
  • Oracle Communications products
  • Siemens SINEC Infrastructure Network Services

Discovery Timeline

  • August 24, 2021 - CVE-2021-3712 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-3712

Vulnerability Analysis

The vulnerability exists in how OpenSSL handles ASN.1 string structures internally. The ASN1_STRING structure consists of a data buffer and a length field. When strings are parsed using OpenSSL's d2i functions or set via ASN1_STRING_set(), the byte array is additionally NUL-terminated as a safety measure. However, applications can directly construct ASN1_STRING structures by setting the "data" and "length" fields directly, or by using the ASN1_STRING_set0() function, without including a NUL terminator.

Multiple OpenSSL functions that print ASN.1 data incorrectly assume the byte array will always be NUL-terminated. When these functions process directly-constructed strings without proper termination, they continue reading beyond the intended buffer boundary, causing an out-of-bounds read condition. This can also occur during certificate name constraints processing when certificates are directly constructed by applications rather than loaded through OpenSSL parsing functions.

Root Cause

The root cause is a failure to properly validate buffer boundaries when processing ASN.1 string data. OpenSSL's printing functions assume NUL termination of the ASN1_STRING byte array, but this assumption is not enforced for strings constructed via ASN1_STRING_set0() or direct field manipulation. The affected functions include X509_get1_email(), X509_REQ_get1_email(), and X509_get1_ocsp(), as well as various ASN.1 printing routines that process certificate data.

Attack Vector

For an attacker to exploit this vulnerability, they must be able to cause an application to directly construct an ASN1_STRING structure and then process it through one of the affected OpenSSL functions. This could occur in scenarios where:

  1. An application accepts externally-provided data to construct certificate structures
  2. Custom certificate validation or processing logic directly manipulates ASN.1 strings
  3. Certificate name constraints processing operates on directly-constructed certificates

The vulnerability is exploitable over the network, though it requires specific application behaviors and attack complexity is considered high. Successful exploitation could result in a crash (Denial of Service) or disclosure of private memory contents such as private keys or sensitive plaintext data.

Detection Methods for CVE-2021-3712

Indicators of Compromise

  • Unexpected application crashes in services utilizing OpenSSL for certificate processing
  • Abnormal memory access patterns in processes handling X.509 certificates
  • Unusual certificate parsing errors or malformed certificate warnings in application logs
  • Evidence of memory disclosure in network traffic or application outputs

Detection Strategies

  • Monitor for OpenSSL library versions between 1.0.2 and 1.0.2y, or 1.1.1 and 1.1.1k in deployed applications
  • Implement application crash monitoring with stack trace analysis focusing on ASN.1 string handling functions
  • Deploy memory safety tools (AddressSanitizer, Valgrind) in development and testing environments to detect out-of-bounds reads
  • Review application code for direct construction of ASN1_STRING structures using ASN1_STRING_set0() or direct field assignment

Monitoring Recommendations

  • Enable verbose logging for certificate processing operations in affected applications
  • Monitor system memory usage for signs of information disclosure attacks
  • Track process stability metrics for services using OpenSSL certificate handling
  • Implement network traffic analysis to detect potential exfiltration of leaked memory data

How to Mitigate CVE-2021-3712

Immediate Actions Required

  • Upgrade OpenSSL 1.1.1 to version 1.1.1l or later
  • Upgrade OpenSSL 1.0.2 to version 1.0.2za or later (premium support customers)
  • Apply vendor-specific patches for affected downstream products including Oracle, NetApp, McAfee, and Tenable products
  • Review application code for direct ASN.1 string construction patterns that bypass standard parsing functions

Patch Information

OpenSSL has released fixed versions addressing this vulnerability. OpenSSL 1.1.1l contains the fix for the 1.1.1 branch, while OpenSSL 1.0.2za addresses the issue in the 1.0.2 branch. Multiple vendors have released corresponding patches:

  • OpenSSL Security Advisory August 2021 - Official advisory with patch details
  • Oracle Security Alert CPU April 2022 - Patches for Oracle products
  • Debian Security Advisory DSA-4963 - Debian package updates
  • NetApp Security Advisory ntap-20210827-0010 - NetApp product patches

Workarounds

  • Ensure all certificates processed by applications are loaded through OpenSSL's standard parsing functions (d2i_*) rather than directly constructed
  • Avoid using ASN1_STRING_set0() with externally-provided data; use ASN1_STRING_set() instead which adds NUL termination
  • Implement input validation for any certificate data before processing through OpenSSL functions
  • Consider implementing application-level boundary checks when processing certificate fields
bash
# Check OpenSSL version on Linux systems
openssl version -a

# Update OpenSSL on Debian/Ubuntu
sudo apt-get update && sudo apt-get install openssl libssl1.1

# Update OpenSSL on RHEL/CentOS
sudo yum update openssl

# Verify updated version
openssl version

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechOpenssl

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.49%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Openwall OSS Security List Update

  • OpenSSL Commit Diff 94d23fcf

  • OpenSSL Commit Diff ccb0a111

  • McAfee Security Bulletin SB10366

  • Apache Tomcat Development Thread Discussion

  • Apache Tomcat Development Thread Update

  • Debian LTS Security Announcement 14

  • Debian LTS Security Announcement 21

  • Gentoo GLSA 202209-02

  • Gentoo GLSA 202210-02

  • NetApp Security Advisory ntap-20210827-0010

  • NetApp Security Advisory ntap-20240621-0006

  • Debian Security Advisory DSA-4963

  • Oracle Security Alert CPU January 2022

  • Tenable Security Notice TNS-2021-16
  • Vendor Resources
  • Siemens Security Advisory SSA-244969

  • Siemens Security Advisory SSA-389290

  • OpenSSL Security Advisory August 2021

  • Oracle Security Alert CPU April 2022

  • Oracle Security Alert CPU October 2021

  • Tenable Security Notice TNS-2022-02
  • Related CVEs
  • CVE-2026-28389: OpenSSL CMS DoS Vulnerability

  • CVE-2026-28388: OpenSSL Delta CRL DoS Vulnerability

  • CVE-2026-28386: OpenSSL AES-CFB128 DoS Vulnerability

  • CVE-2026-28390: OpenSSL CMS DoS 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