CVE-2023-3817
Excessive time spent checking DH q parameter value
Reported by openssl · Published July 31, 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. After fixing CVE-2023-3446 it was discovered that a large q parameter value can also trigger an overly long computation during some of these checks. A correct q value, if present, cannot be larger than the modulus p parameter, thus it is unnecessary to perform these checks if q is larger than p. An application that calls DH_check() and supplies a key or parameters obtained from an untrusted source could be vulnerable 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 | Amazon Linux | 1:3.0.8-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.9 |
| openssl-perl | Amazon Linux | 1:3.0.8-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.9 |
| edk2-tools-python | Amazon Linux | 20200801stable-1.amzn2.0.2 |
| edk2-ovmf | Amazon Linux | 20200801stable-1.amzn2.0.2 |
| openssl-devel | Amazon Linux | 1:3.0.8-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.9 |
| openssl | Wolfi | 3.1.1-r4 |
| openssl-static | Amazon Linux | 1:1.0.2k-24.amzn2.0.9 |
| edk2-tools | Amazon Linux | 20200801stable-1.amzn2.0.2 |
| openssl11-libs | Amazon Linux | 1:1.1.1g-12.amzn2.0.16 |
| openssl | conan.io | 3.1.2, 3.0.10 |
| openssl11-devel | Amazon Linux | 1:1.1.1g-12.amzn2.0.16 |
| edk2-aarch64 | Amazon Linux | 20200801stable-1.amzn2.0.2 |
11 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 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | openssl-perl | 0 |
| amazon:2 | edk2-tools-python | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | edk2-ovmf | 0 |
| amazon:2023 | openssl-devel | 0 |
| wolfi | openssl | 0 |
| amazon:2 | openssl-static | 0 |
| amazon:2 | edk2-tools | 0 |
| amazon:2 | openssl11-libs | 0 |
| ConanCenter | openssl | 1.1.1d, 1.1.1b, 1.1.1m |
| amazon:2 | openssl11-devel | 0 |
| amazon:2 | edk2-aarch64 | 0 |
| chainguard | openssl-provider-fips | * |
| amazon:2023 | openssl | 0 |
| amazon:2 | openssl-libs | 0 |
| alpine | openssl3 | 0 |
| alpine | openssl | 0, 0, 0 |
…and 10 more
Timeline
- Jul 31, 2023 CVE Published
- Aug 1, 2023 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Feb 9, 2026 Security Advisory (73 in total, the first dated here)
- Aug 6, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (68 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-3817
vulnetix vdb fixes CVE-2023-3817
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-3817/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-3817 advisory
- http://seclists.org/fulldisclosure/2023/Jul/43 url
- http://www.openwall.com/lists/oss-security/2023/07/31/1 url
- https://lists.debian.org/debian-lts-announce/2023/08/msg00019.html url
- https://security.netapp.com/advisory/ntap-20230818-0014/ url
- http://www.openwall.com/lists/oss-security/2023/09/22/9 url
- http://www.openwall.com/lists/oss-security/2023/09/22/11 url
- https://security.netapp.com/advisory/ntap-20231027-0008/ url
- http://www.openwall.com/lists/oss-security/2023/11/06/2 url
- https://security.gentoo.org/glsa/202402-08 url
- https://security.netapp.com/advisory/ntap-20240621-0006/ 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-915275.html url