{"id":"CVE-2023-6237","revision":"45ce81f3a7bd445281dbd67e4267a5ba","records":[{"revision":"45ce81f3a7bd445281dbd67e4267a5ba","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2023-6237","aliases":[],"title":"Excessive time spent checking invalid RSA public keys","description":"Issue summary: Checking excessively long invalid RSA public keys may take\na long time.\n\nImpact summary: Applications that use the function EVP_PKEY_public_check()\nto check RSA public keys may experience long delays. Where the key that\nis being checked has been obtained from an untrusted source this may lead\nto a Denial of Service.\n\nWhen function EVP_PKEY_public_check() is called on RSA public keys,\na computation is done to confirm that the RSA modulus, n, is composite.\nFor valid RSA keys, n is a product of two or more large primes and this\ncomputation completes quickly. However, if n is an overly large prime,\nthen this computation would take a long time.\n\nAn application that calls EVP_PKEY_public_check() and supplies an RSA key\nobtained from an untrusted source could be vulnerable to a Denial of Service\nattack.\n\nThe function EVP_PKEY_public_check() is not called from other OpenSSL\nfunctions however it is called from the OpenSSL pkey command line\napplication. For that reason that application is also vulnerable if used\nwith the '-pubin' and '-check' options on untrusted data.\n\nThe OpenSSL SSL/TLS implementation is not affected by this issue.\n\nThe OpenSSL 3.0 and 3.1 FIPS providers are affected by this issue.","state":0,"publishedAt":"2024-04-25T06:27:26.99+00:00","modifiedAt":"2026-10-14T22:15:15.166+00:00","affected":[{"ecosystem":"Vendor product","name":"OpenSSL","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"unaffected\",\n                    \"product\": \"OpenSSL\",\n                    \"vendor\": \"OpenSSL\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"3.0.13\",\n                            \"status\": \"affected\",\n                            \"version\": \"3.0.0\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"lessThan\": \"3.1.5\",\n                            \"status\": \"affected\",\n                            \"version\": \"3.1.0\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"lessThan\": \"3.2.1\",\n                            \"status\": \"affected\",\n                            \"version\": \"3.2.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://www.openssl.org/news/secadv/20240115.txt","https://github.com/openssl/openssl/commit/18c02492138d1eb8b6548cb26e7b625fb2414a2a","https://github.com/openssl/openssl/commit/a830f551557d3d66a84bbb18a5b889c640c36294","https://github.com/openssl/openssl/commit/0b0f7abfb37350794a4b8960fafc292cd5d1b84d"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-6237","license":"CVE Program Terms of Use","key":"cve-program:CVE-2023-6237","identifiers":["CVE-2023-6237"]},"retained":false,"historicalAffected":[]}],"coverage":[]}