CVE-2023-6237: Excessive time spent checking invalid RSA public keys
Vulnerability summary
CVE-2023-6237 is a medium (CVSS 5.9) Unchecked Input for Loop Condition vulnerability in openssl. EPSS estimates a 2.30% chance of exploitation in the next 30 days, higher than 83.3% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 7Timeline
- 25-04-2024PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.30%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.30% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard4 products
- openssl< 3.3.0-r5
- openssl-provider-fips< 3.4.0-r4
- openssl-provider-fips-3.1.2< 3.4.0-r4
- openssl-provider-fips-3.1.2-dbg< 3.4.0-r4
Ubuntu3 products
- edk2< 2024.02-2ubuntu0.6
- nodejsAll versions (No fix recorded)
- openssl< 3.0.2-0ubuntu1.14 | All versions (No fix recorded) | < 3.0.2-0ubuntu1.14+Fips1 | < 3.0.10-1ubuntu4
Alpine1 product
- openssl< 3.0.12-r3 | < 3.1.4-r4
Debian1 product
- openssl< 3.0.13-1~deb12u1 | < 3.1.5-1
Openssl1 product
- openssl≥ 3.0.0, < 3.0.13 | ≥ 3.1.0, < 3.1.5 | ≥ 3.2.0, < 3.2.1
Wolfi1 product
- openssl< 3.3.0-r5
6 vendors · 11 products