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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | edk2-aarch64 | 20251114-5.el10_2.2 | ALSA-2026:39297 |
| AlmaLinux:10 | edk2-ovmf | 20251114-5.el10_2.2 | ALSA-2026:39297 |
| AlmaLinux:10 | edk2-tools | 20251114-5.el10_2.2 | ALSA-2026:39297 |
| AlmaLinux:10 | edk2-tools-doc | 20251114-5.el10_2.2 | ALSA-2026:39297 |
| AlmaLinux:10 | openssl | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux:9 | openssl | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| AlmaLinux:10 | openssl-devel | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux:9 | openssl-devel | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| AlmaLinux:10 | openssl-libs | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux:9 | openssl-libs | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| AlmaLinux:10 | openssl-perl | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux:9 | openssl-perl | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| Alpine:v3.20 | openssl | 3.3.7-r0 | ALPINE-CVE-2026-31790 |
| Alpine:v3.21 | openssl | 3.3.7-r0 | ALPINE-CVE-2026-31790 |
| Alpine:v3.22 | openssl | 3.5.6-r0 | ALPINE-CVE-2026-31790 |
| Alpine:v3.23 | openssl | 3.5.6-r0 | ALPINE-CVE-2026-31790 |
| Alpine:v3.24 | openssl | 3.5.6-r0 | ALPINE-CVE-2026-31790 |
| Debian:12 | openssl | 3.0.19-1~deb12u2 | DEBIAN-CVE-2026-31790 |
| Debian:13 | openssl | 3.5.5-1~deb13u2 | DEBIAN-CVE-2026-31790 |
| Debian:14 | openssl | 3.6.2-1 | DEBIAN-CVE-2026-31790 |
| Rocky Linux:10 | edk2 | 0:20251114-5.el10_2.2 | RLSA-2026:39297 |
| Rocky Linux:10 | openssl | 1:3.5.5-2.el10_2 | RLSA-2026:19066 |
| Rocky Linux:9 | openssl | 1:3.5.5-2.el9_8 | RLSA-2026:19218 |
| Ubuntu:24.04:LTS | edk2 | no fix listed | UBUNTU-CVE-2026-31790 |
| Ubuntu:25.10 | edk2 | no fix listed | UBUNTU-CVE-2026-31790 |
| Ubuntu:26.04:LTS | edk2 | no fix listed | UBUNTU-CVE-2026-31790 |
| Ubuntu:26.10 | edk2 | no fix listed | UBUNTU-CVE-2026-31790 |
| Ubuntu:26.04:LTS | edk2-hwe | no fix listed | UBUNTU-CVE-2026-31790 |
| Ubuntu:26.10 | edk2-hwe | no fix listed | UBUNTU-CVE-2026-31790 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.23 | UBUNTU-CVE-2026-31790 |
| Ubuntu:24.04:LTS | openssl | 3.0.13-0ubuntu3.9 | UBUNTU-CVE-2026-31790 |
| Ubuntu:25.10 | openssl | 3.5.3-1ubuntu3.3 | UBUNTU-CVE-2026-31790 |
| Ubuntu:26.04:LTS | openssl | 3.5.5-1ubuntu3 | UBUNTU-CVE-2026-31790 |
| Ubuntu:26.10 | openssl | 3.5.5-1ubuntu3 | UBUNTU-CVE-2026-31790 |
Affected products (as reported)
Weakness: CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- OpenSSL Advisory vendor-advisory
- 3.6.2 git commit patch
- 3.5.6 git commit patch
- 3.4.5 git commit patch
- 3.3.7 git commit patch
- 3.0.20 git commit patch
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html