CVE-2023-3817

MEDIUMCVSS 5.3/10EPSS 2.58%

Last modified

CVE-2023-3817 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 2.58% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
5.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

EPSS Probability
2.58%

83.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
OpensslOpenssl>= 3.0.0, < 3.0.10
OpensslOpenssl>= 3.1.0, < 3.1.2
OpensslOpenssl1.0.2
OpensslOpenssl1.0.2a
OpensslOpenssl1.0.2b
OpensslOpenssl1.0.2c
OpensslOpenssl1.0.2d
OpensslOpenssl1.0.2e
OpensslOpenssl1.0.2f
OpensslOpenssl1.0.2g
OpensslOpenssl1.0.2h
OpensslOpenssl1.0.2i
OpensslOpenssl1.0.2j
OpensslOpenssl1.0.2k
OpensslOpenssl1.0.2l
OpensslOpenssl1.0.2m
OpensslOpenssl1.0.2n
OpensslOpenssl1.0.2o
OpensslOpenssl1.0.2p
OpensslOpenssl1.0.2q
OpensslOpenssl1.0.2r
OpensslOpenssl1.0.2s
OpensslOpenssl1.0.2t
OpensslOpenssl1.0.2u
OpensslOpenssl1.0.2v
OpensslOpenssl1.0.2w
OpensslOpenssl1.0.2x
OpensslOpenssl1.0.2y
OpensslOpenssl1.0.2za
OpensslOpenssl1.0.2zb
OpensslOpenssl1.0.2zc
OpensslOpenssl1.0.2zd
OpensslOpenssl1.0.2ze
OpensslOpenssl1.0.2zf
OpensslOpenssl1.0.2zg
OpensslOpenssl1.0.2zh
OpensslOpenssl1.1.1
OpensslOpenssl1.1.1a
OpensslOpenssl1.1.1b
OpensslOpenssl1.1.1c
OpensslOpenssl1.1.1d
OpensslOpenssl1.1.1e
OpensslOpenssl1.1.1f
OpensslOpenssl1.1.1g
OpensslOpenssl1.1.1h
OpensslOpenssl1.1.1i
OpensslOpenssl1.1.1j
OpensslOpenssl1.1.1k
OpensslOpenssl1.1.1l
OpensslOpenssl1.1.1m

Showing 50 of 58 affected configurations. See NVD for the full list.

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2023-3817?
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.
How severe is CVE-2023-3817?
CVE-2023-3817 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 2.58% probability of exploitation in the next 30 days.
How do I fix CVE-2023-3817?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2023-3817?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST