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
    • 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-31790

CVE-2026-31790: OpenSSL Information Disclosure Flaw

CVE-2026-31790 is an information disclosure vulnerability in OpenSSL RSASVE key encapsulation that leaks uninitialized memory to attackers. This article covers technical details, affected FIPS modules, and mitigation.

Published: April 10, 2026

CVE-2026-31790 Overview

CVE-2026-31790 is a high-severity information disclosure vulnerability in OpenSSL affecting applications using RSASVE key encapsulation to establish secret encryption keys. The vulnerability allows attackers to receive contents of uninitialized memory buffers, potentially exposing sensitive data from previous execution of the application process.

The flaw stems from improper error handling in the RSA_public_encrypt() function. When RSA encryption fails, the encapsulation operation can still return success to the caller, set output lengths, and leave the caller to use stale or uninitialized contents of the ciphertext buffer as if a valid KEM ciphertext had been produced.

Critical Impact

Applications using EVP_PKEY_encapsulate() with RSA/RSASVE on attacker-supplied invalid RSA public keys may inadvertently disclose sensitive data from uninitialized memory buffers to malicious peers.

Affected Products

  • OpenSSL FIPS Module 3.6
  • OpenSSL FIPS Module 3.5
  • OpenSSL FIPS Module 3.4
  • OpenSSL FIPS Module 3.3
  • OpenSSL FIPS Module 3.1
  • OpenSSL FIPS Module 3.0

Discovery Timeline

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

Technical Details for CVE-2026-31790

Vulnerability Analysis

This vulnerability represents a classic case of improper check for exceptional conditions (CWE-754). The core issue lies in how the OpenSSL library handles return values from the RSA_public_encrypt() function during RSASVE key encapsulation operations.

The RSA_public_encrypt() function returns the number of bytes written on success and -1 on error. However, the affected code only tests whether the return value is non-zero, failing to distinguish between a successful encryption (positive value) and an error condition (negative value of -1). This improper validation creates a scenario where encryption failures are silently treated as successes.

When applications use EVP_PKEY_encapsulate() with RSA/RSASVE on an attacker-supplied invalid RSA public key without first validating that key, the function may return success even when the underlying RSA encryption has failed. The caller then proceeds to use whatever data happens to be in the ciphertext buffer—which may contain sensitive information from previous operations within the same process memory space.

Root Cause

The root cause is improper validation of the return value from RSA_public_encrypt(). The affected code uses a non-zero check (!= 0) instead of properly checking for positive return values indicating success. Since -1 (the error indicator) is also non-zero, error conditions pass the validation check and are incorrectly treated as successful operations.

This error handling deficiency means that when RSA encryption fails due to an invalid public key supplied by an attacker, the encapsulation function:

  1. Returns success status to the calling application
  2. Sets the output length parameters
  3. Leaves the ciphertext buffer containing uninitialized or stale data

Attack Vector

The attack requires an adversary to supply a malicious, invalid RSA public key to an application that performs RSASVE key encapsulation without first validating the key. The attack flow proceeds as follows:

  1. Attacker provides a specially crafted invalid RSA public key to the target application
  2. Application calls EVP_PKEY_encapsulate() with the malicious key
  3. Internal RSA_public_encrypt() call fails and returns -1
  4. Improper error checking causes encapsulation to report success
  5. Uninitialized or stale memory contents in the ciphertext buffer are returned to the attacker
  6. Attacker receives sensitive data that may have been present in the buffer from previous operations

This is a network-accessible vulnerability that requires no privileges or user interaction to exploit, making it particularly concerning for server applications that accept external cryptographic keys.

Detection Methods for CVE-2026-31790

Indicators of Compromise

  • Unusual patterns of failed RSA operations followed by successful KEM encapsulation responses
  • Presence of malformed or invalid RSA public keys in application inputs
  • Memory analysis revealing sensitive data in cryptographic output buffers
  • Anomalous network traffic containing unexpected data patterns in KEM ciphertext responses

Detection Strategies

  • Implement application logging for all EVP_PKEY_encapsulate() operations and monitor for discrepancies between internal errors and external responses
  • Deploy network intrusion detection signatures to identify patterns of invalid RSA key submissions
  • Use memory debugging tools such as Valgrind or AddressSanitizer during development to detect uninitialized memory usage
  • Monitor for applications using affected OpenSSL FIPS module versions (3.0, 3.1, 3.3, 3.4, 3.5, 3.6)

Monitoring Recommendations

  • Review application logs for cryptographic operation failures that may indicate exploitation attempts
  • Implement key validation logging before encapsulation operations
  • Monitor system memory for signs of information disclosure through cryptographic channels
  • Track OpenSSL library versions across deployed systems and flag instances running vulnerable FIPS modules

How to Mitigate CVE-2026-31790

Immediate Actions Required

  • Update OpenSSL to patched versions as soon as they become available from the vendor
  • Implement the recommended workaround by calling EVP_PKEY_public_check() or EVP_PKEY_public_check_quick() before any EVP_PKEY_encapsulate() operations
  • Audit applications for usage of RSASVE key encapsulation with externally provided RSA public keys
  • Consider temporarily disabling acceptance of external RSA public keys in high-risk applications until patches are applied

Patch Information

OpenSSL has released security patches addressing this vulnerability. Multiple commits have been published to fix the improper return value handling:

  • GitHub OpenSSL Commit Fix
  • GitHub OpenSSL Commit Update
  • GitHub OpenSSL Commit Change
  • GitHub OpenSSL Commit Modification
  • GitHub OpenSSL Commit Revision

For complete details, refer to the OpenSSL Security Advisory 20260407.

Workarounds

  • Validate all RSA public keys before use by calling EVP_PKEY_public_check() or EVP_PKEY_public_check_quick() prior to EVP_PKEY_encapsulate()
  • Implement application-level input validation to reject malformed or suspicious RSA public keys
  • Initialize ciphertext buffers with zeroes before encapsulation operations to reduce exposure of sensitive stale data
  • Restrict acceptance of RSA public keys to trusted sources only until patches can be deployed
c
// Workaround: Validate RSA public key before encapsulation
EVP_PKEY *pkey = /* externally provided RSA public key */;

// Validate the public key before encapsulation
if (EVP_PKEY_public_check(pkey) != 1) {
    // Key validation failed - reject the key
    fprintf(stderr, "Invalid RSA public key rejected\n");
    EVP_PKEY_free(pkey);
    return -1;
}

// Proceed with encapsulation only after successful validation
ret = EVP_PKEY_encapsulate(ctx, ciphertext, &ciphertext_len, secret, &secret_len);

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechOpenssl

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-754
  • Technical References
  • GitHub OpenSSL Commit Update

  • GitHub OpenSSL Commit Change

  • GitHub OpenSSL Commit Modification

  • GitHub OpenSSL Commit Revision

  • GitHub OpenSSL Commit Fix

  • OpenSSL Security Advisory 20260407
  • Related CVEs
  • CVE-2026-2673: OpenSSL TLS 1.3 Key Exchange Vulnerability

  • CVE-2025-69418: OpenSSL OCB Information Disclosure Flaw

  • CVE-2025-15469: OpenSSL Dgst Data Truncation Vulnerability

  • CVE-2023-5363: OpenSSL Information Disclosure Flaw
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