CVE-2026-31790 Details
Description
Issue summary: Applications using RSASVE key encapsulation to establish a secret encryption key can send contents of an uninitialized memory buffer to a malicious peer. Impact summary: The uninitialized buffer might contain sensitive data from the previous execution of the application process which leads to sensitive data leakage to an attacker. RSA_public_encrypt() returns the number of bytes written on success and -1 on error. The affected code tests only whether the return value is non-zero. As a result, if RSA encryption fails, encapsulation can still return success to the caller, set the output lengths, and leave the caller to use the contents of the ciphertext buffer as if a valid KEM ciphertext had been produced. If applications use EVP_PKEY_encapsulate() with RSA/RSASVE on an attacker-supplied invalid RSA public key without first validating that key, then this may cause stale or uninitialized contents of the caller-provided ciphertext buffer to be disclosed to the attacker in place of the KEM ciphertext. As a workaround calling EVP_PKEY_public_check() or EVP_PKEY_public_check_quick() before EVP_PKEY_encapsulate() will mitigate the issue. The FIPS modules in 3.6, 3.5, 3.4, 3.3, 3.1 and 3.0 are affected by this issue.
A vulnerability exists in OpenSSL's RSASVE key encapsulation method, allowing applications to inadvertently send uninitialized memory buffer contents to a malicious peer. This issue arises because the RSA_public_encrypt() function, which is supposed to encrypt data, can fail without proper error handling. When this happens, the key encapsulation method may still report success, leaving the buffer with potentially sensitive data from previous application executions available to the attacker. This vulnerability affects OpenSSL versions 3.6, 3.5, 3.4, 3.3, 3.1, and 3.0, while versions 1.0.2 and 1.1.1 are not affected.
Users of OpenSSL 3.0 should upgrade to version 3.0.20, those on 3.3 should upgrade to 3.3.7, users of 3.4 should upgrade to 3.4.5, and those on 3.5 should upgrade to 3.5.6. OpenSSL 3.6 users should upgrade to 3.6.2.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-754 | Improper Check for Unusual or Exceptional Conditions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| openssl openssl | >= 3.0.0, < 3.0.20 >= 3.3.0, < 3.3.7 >= 3.4.0, < 3.4.5 >= 3.5.0, < 3.5.6 >= 3.6.0, < 3.6.2 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| May 12, 2026 | CVE Modified | siemens-SADP |
| Apr 23, 2026 | Initial Analysis | [email protected] |
| Apr 8, 2026 | CVE Modified | CISA-ADP |
| Apr 7, 2026 | New CVE Received | [email protected] |