CVEfocus › CVE database › CVE-2023-3817

CVE-2023-3817Excessive time spent checking DH q parameter value

CVSS 5.3 MediumEPSS 4.3% (higher than 92% of CVEs)Published 2023-07-31Updated 2026-10-14Assigner: openssl

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.

CWE-606

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

36Fixed
13Fix pending
9Will not fix
13Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04edk2Not affected
vulnerable_code_not_present
Ubuntu 26.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 26.04opensslNot affected
vulnerable_code_not_present
Ubuntu 25.10edk2Not affected
vulnerable_code_not_present
Ubuntu 25.10nodejsNot affected
vulnerable_code_not_present
Ubuntu 25.10opensslNot affected
vulnerable_code_not_present
Ubuntu 24.04edk2Fixed2024.02-2ubuntu0.6UBUNTU-CVE-2023-3817
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04opensslNot affected
vulnerable_code_not_present
Ubuntu 22.04edk2Fixed2022.02-3ubuntu0.22.04.4UBUNTU-CVE-2023-3817
Ubuntu 22.04nodejsFix pendingUBUNTU-CVE-2023-3817
Ubuntu 22.04opensslFixed3.0.2-0ubuntu1.12UBUNTU-CVE-2023-3817
Ubuntu 20.04edk2Fix pendingUBUNTU-CVE-2023-3817
Ubuntu 20.04opensslFixed1.1.1f-1ubuntu2.20UBUNTU-CVE-2023-3817
Ubuntu 18.04edk2Fix pendingUBUNTU-CVE-2023-3817
Ubuntu 18.04opensslFix pending1.1.1-1ubuntu2.1~18.04.23+esm3 (Ubuntu Pro)UBUNTU-CVE-2023-3817
Ubuntu 18.04openssl1.0Fix pending1.0.2n-1ubuntu5.13+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-3817
Ubuntu 16.04edk2Fix pendingUBUNTU-CVE-2023-3817
Ubuntu 16.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 16.04opensslFix pending1.0.2g-1ubuntu4.20+esm10 (Ubuntu Pro)UBUNTU-CVE-2023-3817
Ubuntu 14.04edk2Fix pending
Debian 14opensslFixed3.0.10-1DEBIAN-CVE-2023-3817
Debian 13opensslFixed3.0.10-1DEBIAN-CVE-2023-3817
Debian 12opensslFixed3.0.10-1~deb12u1DEBIAN-CVE-2023-3817
Red Hat Enterprise Linux 9compat-openssl11Fix pending
Fix deferred
Red Hat Enterprise Linux 9opensslFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9openssl-develFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9openssl-ibmcaNot affected
Red Hat Enterprise Linux 9openssl-libsFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9openssl-perlFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9openssl-pkcs11Not affected
Red Hat Enterprise Linux 8compat-openssl10Fix pending
Fix deferred
Red Hat Enterprise Linux 8mingw-opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8mingw32-opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8mingw64-opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8opensslFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8openssl-develFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8openssl-ibmpkcs11Not affected
Red Hat Enterprise Linux 8openssl-libsFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8openssl-perlFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8openssl-pkcs11Not affected
Red Hat Enterprise Linux 7opensslWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-perlWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6opensslWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssl-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssl-perlWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssl-staticWill not fix
Out of support scope
AlmaLinux 9opensslFixed1:3.0.7-27.el9ALSA-2024:2447
AlmaLinux 9openssl-develFixed1:3.0.7-27.el9ALSA-2024:2447
AlmaLinux 9openssl-libsFixed1:3.0.7-27.el9ALSA-2024:2447
AlmaLinux 9openssl-perlFixed1:3.0.7-27.el9ALSA-2024:2447
AlmaLinux 8opensslFixed1:1.1.1k-12.el8_9ALSA-2023:7877
AlmaLinux 8openssl-develFixed1:1.1.1k-12.el8_9ALSA-2023:7877
AlmaLinux 8openssl-libsFixed1:1.1.1k-12.el8_9ALSA-2023:7877
AlmaLinux 8openssl-perlFixed1:1.1.1k-12.el8_9ALSA-2023:7877
Rocky Linux 8opensslFixed1:1.1.1k-12.el8_9RLSA-2023:7877
Alpine Linux 3.24opensslFixed3.1.2-r0ALPINE-CVE-2023-3817
Alpine Linux 3.23opensslFixed3.1.2-r0ALPINE-CVE-2023-3817
Alpine Linux 3.22opensslFixed3.1.2-r0ALPINE-CVE-2023-3817
Alpine Linux 3.21opensslFixed3.1.2-r0ALPINE-CVE-2023-3817
Alpine Linux 3.20opensslFixed3.1.2-r0ALPINE-CVE-2023-3817
Alpine Linux 3.19opensslFixed3.1.2-r0ALPINE-CVE-2023-3817
Alpine Linux 3.18opensslFixed3.1.2-r0ALPINE-CVE-2023-3817
Alpine Linux 3.17opensslFixed3.0.10-r0ALPINE-CVE-2023-3817
Alpine Linux 3.16opensslFixed1.1.1v-r0ALPINE-CVE-2023-3817
Alpine Linux 3.16openssl3Fixed3.0.11-r0ALPINE-CVE-2023-3817
Alpine Linux 3.15opensslFixed1.1.1v-r0ALPINE-CVE-2023-3817
Alpine Linux 3.15openssl3Fixed3.0.11-r0ALPINE-CVE-2023-3817

What the vendor says

As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.