Vulnerability · Published Apr 7, 2026 · Assigned by openssl

CVE-2026-31790Incorrect Failure Handling in RSA KEM RSASVE Encapsulation

High 7.5

In plain English

A high-severity security flaw in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.0%top 35.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10edk2-aarch6420251114-5.el10_2.2ALSA-2026:39297
AlmaLinux:10edk2-ovmf20251114-5.el10_2.2ALSA-2026:39297
AlmaLinux:10edk2-tools20251114-5.el10_2.2ALSA-2026:39297
AlmaLinux:10edk2-tools-doc20251114-5.el10_2.2ALSA-2026:39297
AlmaLinux:10openssl1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux:9openssl1:3.5.5-2.el9_8ALSA-2026:19218
AlmaLinux:10openssl-devel1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux:9openssl-devel1:3.5.5-2.el9_8ALSA-2026:19218
AlmaLinux:10openssl-libs1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux:9openssl-libs1:3.5.5-2.el9_8ALSA-2026:19218
AlmaLinux:10openssl-perl1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux:9openssl-perl1:3.5.5-2.el9_8ALSA-2026:19218
Alpine:v3.20openssl3.3.7-r0ALPINE-CVE-2026-31790
Alpine:v3.21openssl3.3.7-r0ALPINE-CVE-2026-31790
Alpine:v3.22openssl3.5.6-r0ALPINE-CVE-2026-31790
Alpine:v3.23openssl3.5.6-r0ALPINE-CVE-2026-31790
Alpine:v3.24openssl3.5.6-r0ALPINE-CVE-2026-31790
Debian:12openssl3.0.19-1~deb12u2DEBIAN-CVE-2026-31790
Debian:13openssl3.5.5-1~deb13u2DEBIAN-CVE-2026-31790
Debian:14openssl3.6.2-1DEBIAN-CVE-2026-31790
Rocky Linux:10edk20:20251114-5.el10_2.2RLSA-2026:39297
Rocky Linux:10openssl1:3.5.5-2.el10_2RLSA-2026:19066
Rocky Linux:9openssl1:3.5.5-2.el9_8RLSA-2026:19218
Ubuntu:24.04:LTSedk2no fix listedUBUNTU-CVE-2026-31790
Ubuntu:25.10edk2no fix listedUBUNTU-CVE-2026-31790
Ubuntu:26.04:LTSedk2no fix listedUBUNTU-CVE-2026-31790
Ubuntu:26.10edk2no fix listedUBUNTU-CVE-2026-31790
Ubuntu:26.04:LTSedk2-hweno fix listedUBUNTU-CVE-2026-31790
Ubuntu:26.10edk2-hweno fix listedUBUNTU-CVE-2026-31790
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.23UBUNTU-CVE-2026-31790
Ubuntu:24.04:LTSopenssl3.0.13-0ubuntu3.9UBUNTU-CVE-2026-31790
Ubuntu:25.10openssl3.5.3-1ubuntu3.3UBUNTU-CVE-2026-31790
Ubuntu:26.04:LTSopenssl3.5.5-1ubuntu3UBUNTU-CVE-2026-31790
Ubuntu:26.10openssl3.5.5-1ubuntu3UBUNTU-CVE-2026-31790

Affected products (as reported)

VendorProductVersions
OpenSSL OpenSSL 3.6.0 – before 3.6.23.5.0 – before 3.5.63.4.0 – before 3.4.53.3.0 – before 3.3.73.0.0 – before 3.0.20

Weakness: CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References