CVE-2023-3446
Excessive time spent checking DH keys and parameters
Reported by openssl · Published July 19, 2023
Issue summary: Checking excessively long DH keys or parameters may be very slow. Impact summary: Applications that use the functions DH_check(), DH_check_ex() or EVP_PKEY_param_check() to check a DH key or DH parameters may experience long delays. Where the key or parameters that are being checked have been obtained from an untrusted source this may lead to a Denial of Service. The function DH_check() performs various checks on DH parameters. One of those checks confirms that the modulus ('p' parameter) is not too large. Trying to use a very large modulus is slow and OpenSSL will not normally use a modulus which is over 10,000 bits in length. However the DH_check() function checks numerous aspects of the key or parameters that have been supplied. Some of those checks use the supplied modulus value even if it has already been found to be too large. An application that calls DH_check() and supplies a key or parameters obtained from an untrusted source could be vulernable to a Denial of Service attack. The function DH_check() is itself called by a number of other OpenSSL functions. An application calling any of those other functions may similarly be affected. The other functions affected by this are DH_check_ex() and EVP_PKEY_param_check(). Also vulnerable are the OpenSSL dhparam and pkeyparam command line applications when using the '-check' option. The OpenSSL SSL/TLS implementation is not affected by this issue. The OpenSSL 3.0 and 3.1 FIPS providers are not 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 | conan.io | 3.1.1 |
| openssl | Amazon Linux | 1:3.0.8-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.9 |
| openssl3 | Alpine | 3.0.9-r2 |
| openssl-perl | Amazon Linux | 1:3.0.8-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.9 |
| openssl-static | Amazon Linux | 1:1.0.2k-24.amzn2.0.9 |
| openssl-libs | Amazon Linux | 1:3.0.8-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.9 |
| openssl1.1-compat | Alpine | 1.1.1u-r1 |
| edk2-tools | Amazon Linux | 20200801stable-1.amzn2.0.5 |
| edk2-tools-python | Amazon Linux | 20200801stable-1.amzn2.0.5 |
| openssl | Wolfi | 3.1.1-r3 |
| edk2-tools-doc | Amazon Linux | 20200801stable-1.amzn2.0.5 |
| edk2-ovmf | Amazon Linux | 20200801stable-1.amzn2.0.5 |
14 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| OpenSSL | OpenSSL | 3.1.0, 3.0.0, 1.1.1 |
| amazon:2 | openssl | 0 |
| alpine | openssl3 | 0 |
| amazon:2 | openssl-perl | 0 |
| amazon:2 | openssl-static | 0 |
| Siemens | SIDIS Prime | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2 | openssl-libs | 0 |
| OpenSSL | OpenSSL | 3.0.0, 3.1.0, 1.0.2 |
| alpine | openssl1.1-compat | 0 |
| amazon:2 | edk2-tools | 0 |
| amazon:2 | edk2-tools-python | 0 |
| amazon:2023 | openssl-perl | 0 |
| wolfi | openssl | 0 |
| amazon:2 | edk2-tools-doc | 0 |
| amazon:2 | edk2-ovmf | 0 |
| chainguard | openssl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| chainguard | openssl-provider-fips | * |
| amazon:2 | openssl-devel | 0 |
…and 13 more
Timeline
- Jul 19, 2023 CVE Published
- Jul 20, 2023 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Feb 13, 2026 Security Advisory (70 in total, the first dated here)
- Aug 8, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (65 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-3446
vulnetix vdb fixes CVE-2023-3446
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-3446/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.1.2 git commit patch
- 3.0.10 git commit patch
- 1.1.1v git commit patch
- 1.0.2zi patch (premium) patch
- https://nvd.nist.gov/vuln/detail/CVE-2023-3446 advisory
- http://www.openwall.com/lists/oss-security/2023/07/19/4 url
- http://www.openwall.com/lists/oss-security/2023/07/19/5 url
- http://www.openwall.com/lists/oss-security/2023/07/19/6 url
- http://www.openwall.com/lists/oss-security/2023/07/31/1 url
- https://security.netapp.com/advisory/ntap-20230803-0011/ url
- https://lists.debian.org/debian-lts-announce/2023/08/msg00019.html url
- https://security.gentoo.org/glsa/202402-08 url
- http://www.openwall.com/lists/oss-security/2024/05/16/1 url
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html url
- https://cert-portal.siemens.com/productcert/html/ssa-099606.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html url
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html url
- https://cert-portal.siemens.com/productcert/html/ssa-341067.html url
…and 3 more