Vulnerability · Published Apr 25, 2024 · Assigned by openssl
CVE-2023-6237Excessive time spent checking invalid RSA public keys
Medium 5.9
In plain English
A medium-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 2.3% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | edk2-aarch64 | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | edk2-ovmf | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | edk2-tools | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | edk2-tools-doc | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | openssl | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux:9 | openssl-devel | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux:9 | openssl-libs | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux:9 | openssl-perl | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| Alpine:v3.20 | openssl | 3.1.4-r4 | ALPINE-CVE-2023-6237 |
| Alpine:v3.21 | openssl | 3.1.4-r4 | ALPINE-CVE-2023-6237 |
| Alpine:v3.22 | openssl | 3.1.4-r4 | ALPINE-CVE-2023-6237 |
| Alpine:v3.23 | openssl | 3.1.4-r4 | ALPINE-CVE-2023-6237 |
| Alpine:v3.24 | openssl | 3.1.4-r4 | ALPINE-CVE-2023-6237 |
| Debian:12 | openssl | 3.0.13-1~deb12u1 | DEBIAN-CVE-2023-6237 |
| Debian:13 | openssl | 3.1.5-1 | DEBIAN-CVE-2023-6237 |
| Debian:14 | openssl | 3.1.5-1 | DEBIAN-CVE-2023-6237 |
| Rocky Linux:9 | edk2 | 0:20240524-6.el9_5.3 | RLSA-2024:9088 |
| Ubuntu:22.04:LTS | edk2 | 2022.02-3ubuntu0.22.04.4 | USN-7894-1 |
| Ubuntu:24.04:LTS | edk2 | 2024.02-2ubuntu0.6 | USN-7894-1 |
| Ubuntu:24.04:LTS | edk2 | 2024.02-2ubuntu0.6 | UBUNTU-CVE-2023-6237 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.14 | UBUNTU-CVE-2023-6237 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.14 | USN-6622-1 |
| Ubuntu:24.04:LTS | openssl | 3.0.10-1ubuntu4 | UBUNTU-CVE-2023-6237 |
Affected products (as reported)
Weakness: CWE-606 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- OpenSSL Advisory vendor-advisory
- 3.0.13 git commit patch
- 3.1.5 git commit patch
- 3.2.1 git commit patch
- http://www.openwall.com/lists/oss-security/2024/03/11/1 x_transferred
- https://security.netapp.com/advisory/ntap-20240531-0007/ x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html
- https://cert-portal.siemens.com/productcert/html/ssa-915275.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html