Skip to content
OpenAdvisories

Description

Issue summary: Checking excessively long invalid RSA public keys may take
a long time.

Impact summary: Applications that use the function EVP_PKEY_public_check()
to check RSA public keys may experience long delays. Where the key that
is being checked has been obtained from an untrusted source this may lead
to a Denial of Service.

When function EVP_PKEY_public_check() is called on RSA public keys,
a computation is done to confirm that the RSA modulus, n, is composite.
For valid RSA keys, n is a product of two or more large primes and this
computation completes quickly. However, if n is an overly large prime,
then this computation would take a long time.

An application that calls EVP_PKEY_public_check() and supplies an RSA key
obtained from an untrusted source could be vulnerable to a Denial of Service
attack.

The function EVP_PKEY_public_check() is not called from other OpenSSL
functions however it is called from the OpenSSL pkey command line
application. For that reason that application is also vulnerable if used
with the '-pubin' and '-check' options on untrusted data.

The OpenSSL SSL/TLS implementation is not affected by this issue.

The OpenSSL 3.0 and 3.1 FIPS providers are affected by this issue.

Affected products

VendorProductAffectedFixed
OpenSSL OpenSSL 3.0.0 – < 3.0.13, 3.1.0 – < 3.1.5, 3.2.0 – < 3.2.1 3.0.13

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 openssl 3.1.5-1 —
Debian 13 openssl 3.1.5-1 —
Debian 12 openssl 3.0.13-1~deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS edk2 2024.02-2ubuntu0.6 USN-7894-1
Ubuntu 24.04 LTS openssl 3.0.10-1ubuntu4 —
Ubuntu 22.04 LTS edk2 2022.02-3ubuntu0.22.04.4 USN-7894-1
Ubuntu 22.04 LTS openssl 3.0.2-0ubuntu1.14 USN-6622-1
Ubuntu 20.04 LTS openssl 1.1.1f-1ubuntu2.21 USN-6622-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS-updates 22.04 LTS openssl 3.0.2-0ubuntu1.14+Fips1 —
Ubuntu Pro FIPS-preview 22.04 LTS openssl No fix yet —
Ubuntu Pro 22.04 LTS nodejs No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 edk2 +4 20240524-6.el9_5 RHSA-2024:9088
RHEL 9 openssl +3 1:3.0.7-27.el9 RHSA-2024:2447

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 edk2-ovmf +3 20240524-6.el9_5 ALSA-2024:9088
AlmaLinux 9 openssl +3 1:3.0.7-27.el9 ALSA-2024:2447

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 edk2 20240524-6.el9_5.3 RLSA-2024:9088
ReleasePackageFixed inAdvisory
SLES 15 SP5 openssl-3 3.0.8-150500.5.24.1 SUSE-SU-2024:0172-1
SLES 15 SP4 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
SLE Micro 5.4 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
SLE Micro 5.3 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
SLE HPC 15 SP4 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
SUSE Manager Server 4.3 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
SUSE Manager Proxy 4.3 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed openssl-3 3.1.4-3.1 openSUSE-SU-2024:13633-1
openSUSE Leap 15.5 openssl-3 3.0.8-150500.5.24.1 SUSE-SU-2024:0172-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
openSUSE Leap Micro 5.3 openssl-3 3.0.8-150400.4.49.1 SUSE-SU-2024:0518-1
ReleasePackageFixed inAdvisory
Alpine v3.24 openssl 3.1.4-r4 —
Alpine v3.23 openssl 3.1.4-r4 —
Alpine v3.22 openssl 3.1.4-r4 —
Alpine v3.21 openssl 3.1.4-r4 —
Alpine v3.20 openssl 3.1.4-r4 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 openssl 3.1.4-r4 —
Alpine v3.18 openssl 3.1.4-r4 —
Alpine v3.17 openssl 3.0.12-r3 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 openssl +4 1:3.0.8-1.amzn2023.0.11 ALAS2023-2024-520

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 cloud-hypervisor-cvm 38.0.72.2-1 —
Azure Linux 3 nodejs 20.14.0-1 —
Azure Linux 3 openssl 3.3.0-1 —
Azure Linux 3 openssl-fips-provider No fix yet —
Azure Linux 2 (CBL-Mariner) cloud-hypervisor-cvm 38.0.72.2-1 —
Azure Linux 2 (CBL-Mariner) hvloader 1.0.1-6 —
Azure Linux 2 (CBL-Mariner) nodejs18 18.20.2-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 edk2-ovmf +3 20240524-6.0.1.el9_5 ELSA-2024-9088
Oracle Linux 9 openssl +3 1:3.0.7-27.0.3.el9 ELSA-2024-2447
Oracle Linux 9 openssl-fips-provider 3.0.7-2.0.1.el9 ELSA-2024-2447

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling openssl 3.3.0-r5 —

Advisories 30

References