CVE-2023-3446 Excessive time spent checking DH keys and parameters

Medium 5.3 Published Updated

Attackers can cause denial of service by supplying excessively long DH keys to applications using OpenSSL's DH_check functions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-3446?

CVE-2023-3446 is a medium-severity denial of service vulnerability in Openssl Openssl, published on 19 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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. 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.

Weakness: CWE-1333, CWE-606

Which versions are affected by CVE-2023-3446?

It affects 1 product.

Linux distribution packages (40)
edk2-aarch64 AlmaLinux:8All versions20220126gitbb1bba3d77-6.el8_9.3
edk2-ovmf AlmaLinux:8All versions20220126gitbb1bba3d77-6.el8_9.3
edk2 Red Hat:enterprise_linux:8::appstreamAll versions0:20220126gitbb1bba3d77-6.el8_9.3
edk2-aarch64 Red Hat:enterprise_linux:8::appstreamAll versions0:20220126gitbb1bba3d77-6.el8_9.3
edk2-ovmf Red Hat:enterprise_linux:8::appstreamAll versions0:20220126gitbb1bba3d77-6.el8_9.3
openssl-1_0_0 SUSE:Enterprise Storage 7All versions1.0.2p-150000.3.82.1
openssl-1_0_0 SUSE:Enterprise Storage 7.1All versions1.0.2p-150000.3.82.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.1.0i-150100.14.59.1
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.0.2p-150000.3.82.1
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.0.2p-150000.3.82.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.3All versions1.1.1l-150400.7.48.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.4All versions1.1.1l-150400.7.48.1
openssl-1_1 SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions1.1.1l-150400.7.48.1
openssl-1_1 SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions1.1.1l-150500.17.9.1
openssl-1_0_0 SUSE:Linux Enterprise Module for Legacy 15 SP4All versions1.0.2p-150000.3.82.1
openssl-1_0_0 SUSE:Linux Enterprise Module for Legacy 15 SP5All versions1.0.2p-150000.3.82.1
openssl SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREAll versions0.9.8j-0.106.77.1
openssl1 SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREAll versions1.0.1g-0.58.73.1
openssl SUSE:Linux Enterprise Server 12 SP2-BCLAll versions1.0.2j-60.101.1
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP5All versions1.0.2p-3.81.1
openssl-1_1 SUSE:Linux Enterprise Server 12 SP5All versions1.1.1d-2.92.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.0.2p-150000.3.82.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.1.0i-150100.14.59.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.0.2p-150000.3.82.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.0.2p-150000.3.82.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.0.2p-3.81.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.1.1d-2.92.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.0.2p-150000.3.82.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.1.0i-150100.14.59.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.0.2p-150000.3.82.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.0.2p-150000.3.82.1
openssl-1_0_0 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.0.2p-3.81.1
openssl-1_1 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.1.1d-2.92.1
openssl-1_0_0 openSUSE:Leap 15.4All versions1.0.2p-150000.3.82.1
openssl-1_1 openSUSE:Leap 15.4All versions1.1.1l-150400.7.48.1
openssl-1_0_0 openSUSE:Leap 15.5All versions1.0.2p-150000.3.82.1
openssl-1_1 openSUSE:Leap 15.5All versions1.1.1l-150500.17.9.1
openssl-1_1 openSUSE:Leap Micro 5.3All versions1.1.1l-150400.7.48.1
openssl-1_1 openSUSE:Leap Micro 5.4All versions1.1.1l-150400.7.48.1
openssl-1_0_0 openSUSE:TumbleweedAll versions1.0.2u-21.1

Products include Openssl Openssl.

How do I fix CVE-2023-3446?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-3446 being exploited?

There is no known exploitation of CVE-2023-3446 in the wild and no public exploit code.

All Openssl Openssl vulnerabilities

Sources

Also known as ALPINE-CVE-2023-3446, ALSA-2024:0888, AZL-42955, AZL-47646, CLEANSTART-2026-TF51125, CLSA-2023-1700593531 and 19 more.

Is CVE-2023-3446 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free