CVEfocus › CVE database › CVE-2026-31790

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

CVSS 7.5 HighEPSS 0.5% (higher than 32% of CVEs)Published 2026-04-07Updated 2026-05-12Assigner: openssl

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.

CWE-754

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

44Fixed
9Fix pending
1Under investigation
1Will not fix
44Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10edk2Fix pendingUBUNTU-CVE-2026-31790
Ubuntu 26.10edk2-hweFix pendingUBUNTU-CVE-2026-31790
Ubuntu 26.10opensslFixed3.5.5-1ubuntu3UBUNTU-CVE-2026-31790
Ubuntu 26.04edk2Fix pendingUBUNTU-CVE-2026-31790
Ubuntu 26.04edk2-hweUnder investigationUBUNTU-CVE-2026-31790
Ubuntu 26.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 26.04opensslFixed3.5.5-1ubuntu3UBUNTU-CVE-2026-31790
Ubuntu 25.10edk2Will not fix
edk2 in jammy embeds OpenSSL 1.1.1j edk2 in noble embeds OpenSSL 3.0.9 edk2 in plucky embeds OpenSSL 3.4.0 edk2 in questing embeds OpenSSL 3.4.0 3.6, 3.5,…
UBUNTU-CVE-2026-31790
Ubuntu 25.10nodejsNot affected
vulnerable_code_not_present
Ubuntu 25.10opensslFixed3.5.3-1ubuntu3.3UBUNTU-CVE-2026-31790
Ubuntu 24.04edk2Fix pendingUBUNTU-CVE-2026-31790
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04opensslFixed3.0.13-0ubuntu3.9UBUNTU-CVE-2026-31790
Ubuntu 22.04edk2Not affected
vulnerable_code_not_present
Ubuntu 22.04opensslFixed3.0.2-0ubuntu1.23UBUNTU-CVE-2026-31790
Debian 14opensslFixed3.6.2-1DEBIAN-CVE-2026-31790
Debian 13opensslFixed3.5.5-1~deb13u2DEBIAN-CVE-2026-31790
Debian 12opensslFixed3.0.19-1~deb12u2DEBIAN-CVE-2026-31790
Red Hat Enterprise Linux 10edk2Fixed0:20251114-5.el10_2.2RHSA-2026:39297
Red Hat Enterprise Linux 10edk2-aarch64Fixed0:20251114-5.el10_2.2RHSA-2026:39297
Red Hat Enterprise Linux 10edk2-ovmfFixed0:20251114-5.el10_2.2RHSA-2026:39297
Red Hat Enterprise Linux 10edk2-toolsFixed0:20251114-5.el10_2.2RHSA-2026:39297
Red Hat Enterprise Linux 10edk2-tools-docFixed0:20251114-5.el10_2.2RHSA-2026:39297
Red Hat Enterprise Linux 10mokutilNot affected
Red Hat Enterprise Linux 10opensslFixed1:3.5.5-2.el10_2RHSA-2026:19066
Red Hat Enterprise Linux 10openssl-develFixed1:3.5.5-2.el10_2RHSA-2026:19066
Red Hat Enterprise Linux 10openssl-fips-providerFixed0:3.0.7-11.el10_2RHSA-2026:27746
Red Hat Enterprise Linux 10openssl-fips-provider-soFixed0:3.0.7-11.el10_2RHSA-2026:27746
Red Hat Enterprise Linux 10openssl-libsFixed1:3.5.5-2.el10_2RHSA-2026:19066
Red Hat Enterprise Linux 10openssl-perlFixed1:3.5.5-2.el10_2RHSA-2026:19066
Red Hat Enterprise Linux 10shim-aa64Not affected
Red Hat Enterprise Linux 10shim-unsigned-aarch64Not affected
Red Hat Enterprise Linux 10shim-unsigned-x64Not affected
Red Hat Enterprise Linux 10shim-x64Not affected
Red Hat Enterprise Linux 9compat-openssl11Not affected
Red Hat Enterprise Linux 9edk2Fix pending
Affected
Red Hat Enterprise Linux 9edk2-aarch64Fix pending
Affected
Red Hat Enterprise Linux 9edk2-ovmfFix pending
Affected
Red Hat Enterprise Linux 9edk2-toolsFix pending
Affected
Red Hat Enterprise Linux 9edk2-tools-docFix pending
Affected
Red Hat Enterprise Linux 9opensslFixed1:3.5.5-2.el9_8RHSA-2026:19218
Red Hat Enterprise Linux 9openssl-develFixed1:3.5.5-2.el9_8RHSA-2026:19218
Red Hat Enterprise Linux 9openssl-fips-providerFixed0:3.0.7-11.el9_8RHSA-2026:27744
Red Hat Enterprise Linux 9openssl-fips-provider-soFixed0:3.0.7-11.el9_8RHSA-2026:27744
Red Hat Enterprise Linux 9openssl-libsFixed1:3.5.5-2.el9_8RHSA-2026:19218
Red Hat Enterprise Linux 9openssl-perlFixed1:3.5.5-2.el9_8RHSA-2026:19218
Red Hat Enterprise Linux 9shimNot affected
Red Hat Enterprise Linux 9shim-aa64Not affected
Red Hat Enterprise Linux 9shim-unsigned-aarch64Not affected
Red Hat Enterprise Linux 9shim-unsigned-x64Not affected
Red Hat Enterprise Linux 9shim-x64Not affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8edk2Not affected
Red Hat Enterprise Linux 8edk2-aarch64Not affected
Red Hat Enterprise Linux 8edk2-ovmfNot affected
Red Hat Enterprise Linux 8mingw-opensslNot affected
Red Hat Enterprise Linux 8mingw32-opensslNot affected
Red Hat Enterprise Linux 8mingw64-opensslNot affected
Red Hat Enterprise Linux 8opensslNot affected
Red Hat Enterprise Linux 8openssl-develNot affected
Red Hat Enterprise Linux 8openssl-libsNot affected
Red Hat Enterprise Linux 8openssl-perlNot affected
Red Hat Enterprise Linux 8openssl-staticNot affected
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 8shim-aa64Not affected
Red Hat Enterprise Linux 8shim-ia32Not affected
Red Hat Enterprise Linux 8shim-unsigned-x64Not affected
Red Hat Enterprise Linux 8shim-x64Not affected
Red Hat Enterprise Linux 7AAVMFNot affected
Red Hat Enterprise Linux 7OVMFNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7openssl-develNot affected
Red Hat Enterprise Linux 7openssl-libsNot affected
Red Hat Enterprise Linux 7openssl-perlNot affected
Red Hat Enterprise Linux 7openssl-staticNot affected
Red Hat Enterprise Linux 7ovmfNot affected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 6openssl-develNot affected
Red Hat Enterprise Linux 6openssl-perlNot affected
Red Hat Enterprise Linux 6openssl-staticNot affected
AlmaLinux 10edk2-aarch64Fixed20251114-5.el10_2.2ALSA-2026:39297
AlmaLinux 10edk2-ovmfFixed20251114-5.el10_2.2ALSA-2026:39297
AlmaLinux 10edk2-tools-docFixed20251114-5.el10_2.2ALSA-2026:39297
AlmaLinux 10opensslFixed1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux 10openssl-develFixed1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux 10openssl-libsFixed1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux 10openssl-perlFixed1:3.5.5-2.el10_2.alma.1ALSA-2026:19066
AlmaLinux 9opensslFixed1:3.5.5-2.el9_8ALSA-2026:19218
AlmaLinux 9openssl-develFixed1:3.5.5-2.el9_8ALSA-2026:19218
AlmaLinux 9openssl-libsFixed1:3.5.5-2.el9_8ALSA-2026:19218
AlmaLinux 9openssl-perlFixed1:3.5.5-2.el9_8ALSA-2026:19218
Rocky Linux 10edk2Fixed0:20251114-5.el10_2.2RLSA-2026:39297
Rocky Linux 10opensslFixed1:3.5.5-2.el10_2RLSA-2026:19066
Rocky Linux 9opensslFixed1:3.5.5-2.el9_8RLSA-2026:19218
Alpine Linux 3.24opensslFixed3.5.6-r0ALPINE-CVE-2026-31790
Alpine Linux 3.23opensslFixed3.5.6-r0ALPINE-CVE-2026-31790
Alpine Linux 3.22opensslFixed3.5.6-r0ALPINE-CVE-2026-31790
Alpine Linux 3.21opensslFixed3.3.7-r0ALPINE-CVE-2026-31790
Alpine Linux 3.20opensslFixed3.3.7-r0ALPINE-CVE-2026-31790

What the vendor says

As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.