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

CVE-2026-31789: OpenSSL Buffer Overflow Vulnerability

CVE-2026-31789 is a heap buffer overflow vulnerability in OpenSSL affecting 32-bit platforms when processing X.509 certificates with large OCTET STRING values. This article covers technical details, impact, and mitigations.

Published: April 10, 2026

CVE-2026-31789 Overview

CVE-2026-31789 is a heap buffer overflow vulnerability in OpenSSL affecting 32-bit platforms. The vulnerability occurs when converting an excessively large OCTET STRING value to a hexadecimal string, specifically within X.509 certificate processing. When extensions such as Subject Key Identifier (SKID) or Authority Key Identifier (AKID) contain oversized OCTET STRING values, the buffer size calculation can overflow due to integer multiplication, leading to allocation of an insufficient buffer and subsequent heap corruption.

Critical Impact

Applications processing untrusted X.509 certificates on 32-bit systems may experience crashes or potentially attacker-controlled code execution through heap buffer overflow exploitation.

Affected Products

  • OpenSSL versions prior to security patches (excluding FIPS modules in 3.6, 3.5, 3.4, 3.3, and 3.0)
  • Applications and services that print or log contents of untrusted X.509 certificates
  • 32-bit platforms running vulnerable OpenSSL versions

Discovery Timeline

  • 2026-04-07 - CVE-2026-31789 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-31789

Vulnerability Analysis

This vulnerability (CWE-787: Out-of-Bounds Write) exists in the buffer-to-hexadecimal conversion function within OpenSSL's crypto/o_str.c file. The core issue lies in how the required buffer size is calculated when converting binary OCTET STRING data to its hexadecimal representation.

When processing X.509 certificate extensions like SKID or AKID, the function computes the output buffer size by multiplying the input length by 3 (when using separators) or by 2 plus 1 (without separators). On 32-bit platforms where size_t is limited to 32 bits, providing input data larger than approximately 1.4 GB causes this multiplication to wrap around due to integer overflow. The result is a drastically undersized buffer allocation, and subsequent write operations overflow the heap buffer.

While exploitation requires certificates exceeding 1 GB in size—making practical attacks rare—the vulnerability could enable memory corruption, denial of service, or potentially arbitrary code execution in affected applications.

Root Cause

The root cause is the absence of overflow checking in the buffer size calculation within the buf2hex conversion routine. The calculation buflen * 3 (with separator) or 1 + buflen * 2 (without separator) can overflow the size_t data type on 32-bit platforms when buflen exceeds SIZE_MAX / 3 or (SIZE_MAX - 1) / 2 respectively. This results in allocating a buffer much smaller than required for the actual data conversion operation.

Attack Vector

An attacker could exploit this vulnerability by crafting a malicious X.509 certificate containing an oversized OCTET STRING value in certificate extensions. When a vulnerable application attempts to print, log, or otherwise convert these extension values to hexadecimal format, the integer overflow triggers, leading to heap corruption. The attack requires the target application to:

  1. Accept and process untrusted X.509 certificates
  2. Convert certificate extension OCTET STRING values to hexadecimal representation
  3. Run on a 32-bit platform with a vulnerable OpenSSL version
c
// Security patch in crypto/o_str.c - Avoid possible buffer overflow in buf2hex conversion
// Source: https://github.com/openssl/openssl/commit/364f095b80601db632b0def6a33316967f863bde

    int has_sep = (sep != CH_ZERO);
    size_t i, len = has_sep ? buflen * 3 : 1 + buflen * 2;

+    if (buflen > (has_sep ? SIZE_MAX / 3 : (SIZE_MAX - 1) / 2)) {
+        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_MANY_BYTES);
+        return 0;
+    }
+
    if (len == 0)
        ++len;
    if (strlength != NULL)

Detection Methods for CVE-2026-31789

Indicators of Compromise

  • Unexpected application crashes in OpenSSL-linked applications on 32-bit systems when processing certificates
  • Memory corruption errors or segmentation faults during X.509 certificate parsing operations
  • Abnormally large X.509 certificate files (exceeding 1 GB) appearing in logs or traffic

Detection Strategies

  • Monitor for applications processing unusually large X.509 certificates on 32-bit platforms
  • Implement file size checks for certificate inputs, flagging any exceeding reasonable thresholds
  • Use memory sanitizers (ASan, MSan) in development environments to detect heap overflow conditions
  • Deploy SentinelOne Singularity to detect memory corruption exploitation attempts in real-time

Monitoring Recommendations

  • Enable crash reporting and memory fault logging for applications handling certificate processing
  • Monitor OpenSSL-dependent services for unusual memory allocation patterns or allocation failures
  • Set up alerts for X.509 certificate processing failures with error codes related to oversized inputs

How to Mitigate CVE-2026-31789

Immediate Actions Required

  • Update OpenSSL to the latest patched version that includes overflow checking in buf2hex conversion
  • Audit applications running on 32-bit platforms that process untrusted X.509 certificates
  • Consider migrating critical certificate-processing services to 64-bit platforms where this overflow is not exploitable
  • Implement input validation to reject excessively large certificate files before processing

Patch Information

OpenSSL has released security patches addressing this vulnerability. The fix adds explicit bounds checking before the buffer size calculation to prevent integer overflow. Multiple commits address the issue across different OpenSSL branches:

  • OpenSSL commit 364f095b
  • OpenSSL commit 7a9087ef
  • OpenSSL commit 945b935a
  • OpenSSL commit a2421601
  • OpenSSL commit a91e537d

For full details, see the OpenSSL Security Advisory.

Workarounds

  • Limit the maximum size of X.509 certificates accepted by applications to prevent processing of oversized inputs
  • Migrate certificate-processing workloads to 64-bit platforms where this integer overflow cannot occur
  • Implement application-level input validation to reject certificates with extensions exceeding reasonable sizes
  • Note that FIPS modules in OpenSSL 3.6, 3.5, 3.4, 3.3, and 3.0 are not affected as the vulnerable code is outside the FIPS boundary
bash
# Configuration example - Check OpenSSL version and architecture
openssl version -a
# Verify if running 32-bit (vulnerable) or 64-bit (not vulnerable to this specific issue)
getconf LONG_BIT
# Update OpenSSL on Debian/Ubuntu systems
sudo apt-get update && sudo apt-get upgrade openssl
# Update OpenSSL on RHEL/CentOS systems
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

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.01%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-787
  • Technical References
  • Github

  • Github

  • Github

  • Github

  • Github

  • Openssl-library
  • Related CVEs
  • CVE-2025-15467: OpenSSL Buffer Overflow Vulnerability

  • CVE-2025-11187: OpenSSL Buffer Overflow Vulnerability

  • CVE-2025-69419: OpenSSL Buffer Overflow Vulnerability

  • CVE-2022-3786: 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