CVE-2023-6237
Excessive time spent checking invalid RSA public keys
Reported by openssl · Published April 25, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openssl-libs | Amazon Linux | 1:3.0.8-1.amzn2023.0.11 |
| openssl-provider-fips | Chainguard | 3.4.0-r4 |
| openssl | Alpine | 3.1.4-r4, 3.0.12-r3 |
| openssl-snapsafe-libs | Amazon Linux | 1:3.0.8-1.amzn2023.0.11 |
| openssl | Amazon Linux | 1:3.0.8-1.amzn2023.0.11 |
| openssl-provider-fips-3.1.2 | Chainguard | 3.4.0-r4 |
| openssl-perl | Amazon Linux | 1:3.0.8-1.amzn2023.0.11 |
| openssl | Wolfi | 3.3.0-r5 |
| openssl-devel | Amazon Linux | 1:3.0.8-1.amzn2023.0.11 |
| openssl | Chainguard | 3.3.0-r5 |
| SINEC NMS | Siemens | V3.0 SP1 |
| scalance_wum766-1_firmware | siemens | 3.0.0 |
12 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| OpenSSL | OpenSSL | 3.0.0, 3.1.0, 3.2.0 |
| amazon:2023 | openssl-libs | 0 |
| chainguard | openssl-provider-fips | 0 |
| Siemens | SINEC NMS | 0 |
| alpine | openssl | 0, 0 |
| amazon:2023 | openssl-snapsafe-libs | 0 |
| amazon:2023 | openssl | 0 |
| chainguard | openssl-provider-fips-3.1.2 | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| OpenSSL | OpenSSL | 3.2.0, 3.0.0, 3.1.0 |
| amazon:2023 | openssl-perl | 0 |
| wolfi | openssl | 0 |
| amazon:2023 | openssl-devel | 0 |
| chainguard | openssl | 0 |
Timeline
- Jan 15, 2024 CVE Published
- Apr 25, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (11 in total, the first dated here)
- Mar 17, 2026 Security Advisory (49 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (46 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-6237
vulnetix vdb fixes CVE-2023-6237
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-6237/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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 url
- https://security.netapp.com/advisory/ntap-20240531-0007/ url
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html url
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html url
- https://cert-portal.siemens.com/productcert/html/ssa-915275.html url
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html url