CVE-2023-5678
openssl: Generating excessively long X9.42 DH keys or checking excessively long X9.42 DH keys or parameters may be very slow
Overview
Description
Issue summary: Generating excessively long X9.42 DH keys or checking
excessively long X9.42 DH keys or parameters may be very slow.
Impact summary: Applications that use the functions DH_generate_key() to
generate an X9.42 DH key may experience long delays. Likewise, applications
that use DH_check_pub_key(), DH_check_pub_key_ex() or EVP_PKEY_public_check()
to check an X9.42 DH key or X9.42 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.
While DH_check() performs all the necessary checks (as of CVE-2023-3817),
DH_check_pub_key() doesn't make any of these checks, and is therefore
vulnerable for excessively large P and Q parameters.
Likewise, while DH_generate_key() performs a check for an excessively large
P, it doesn't check for an excessively large Q.
An application that calls DH_generate_key() or DH_check_pub_key() and
supplies a key or parameters obtained from an untrusted source could be
vulnerable to a Denial of Service attack.
DH_generate_key() and DH_check_pub_key() are also 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_pub_key_ex(), EVP_PKEY_public_check(), and EVP_PKEY_generate().
Also vulnerable are the OpenSSL pkey command line application when using the
"-pubcheck" option, as well as the OpenSSL genpkey command line application.
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.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness: CWE-606, CWE-754
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Conan (C/C++) | openssl | >=3.0.0 <3.0.13||>=3.1.0 <3.1.5 | 3.0.133.1.5 |
| Julia | Openresty_jll | <1.27.1+0 | 1.27.1+0 |
| Julia | OpenSSL_jll | <3.0.13+0 | 3.0.13+0 |
Open a package to see all its vulnerabilities.
Operating systems · 100 fixes
Azure Linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | openssl | 0:1.1.1k-28.azl3 |
| 3.0 | edk2 | 0:20230301gitf80f052277c8-38.azl3 |
| 3.0 | kata-containers | 0:3.2.0.azl1-1.azl3 |
| 3.0 | cloud-hypervisor-cvm | 0:38.0.72.2-1.azl3 |
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | openssl +3 | 1:1.1.1k-12.el8_9 |
| 8 | openssl +4 | 2:1.1.1k-12.ksplice1.el8_9 |
| 9 | openssl +3 | 1:3.0.7-27.0.3.el9 |
| 9 | openssl-fips-provider | 3.0.7-2.0.1.el9 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssl +4 | 3.0.9-8.ph4 |
| 5.0 | openssl +5 | 3.5.7-2.ph5 |
Red Hat 3 releases · 10 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openssl +4 | affected | — |
| 7 | jws5-tomcat-native | 0:1.2.31-17.redhat_17.el7jws | RHSA-2024:1318 |
| 7 | jbcs-httpd24-mod-proxy-cluster | 0:1.3.20-3.el7jbcs | RHSA-2024:1316 |
| 7 | jbcs-httpd24-httpd +6 | 0:2.4.57-9.el7jbcs | RHSA-2024:1316 |
| 7 | jbcs-httpd24-curl +2 | 0:8.6.0-3.el7jbcs | RHSA-2024:1316 |
| 7 | jws5-tomcat +11 | 0:9.0.62-41.redhat_00020.1.el7jws | RHSA-2024:1318 |
17 more rows
SUSE Linux Enterprise 3 releases · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libopenssl0-9-8 | 0.9.8j-106.61.1 | SUSE-SU-2023:4593-1 |
| 12.5 | libopenssl-1-0-0-devel +7 | 1.0.2p-3.87.1 | SUSE-SU-2023:4523-1 |
| 12.5 | libopenssl-1-1-devel +6 | 1.1.1d-2.101.1 | SUSE-SU-2023:4521-1 |
| 15.4 | openssl-1-1-livepatches | 0.2-150400.3.6.1 | SUSE-SU-2023:4919-1 |
| 15.4 | libopenssl-1-0-0-devel +4 | 1.0.2p-150000.3.88.1 | SUSE-SU-2023:4522-1 |
| 15.4 | libopenssl-1-1-devel +6 | 1.1.1l-150400.7.60.2 | SUSE-SU-2023:4524-1 |
5 more rows
SUSE Linux Enterprise Micro 5 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.82.1 | SUSE-SU-2023:4519-1 |
| 5.2 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.82.1 | SUSE-SU-2023:4519-1 |
| 5.3 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.60.2 | SUSE-SU-2023:4524-1 |
| 5.3 | libopenssl3 | 3.0.8-150400.4.42.1 | SUSE-SU-2023:4649-1 |
| 5.4 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.60.2 | SUSE-SU-2023:4524-1 |
| 5.4 | libopenssl3 | 3.0.8-150400.4.42.1 | SUSE-SU-2023:4649-1 |
1 more row
alma 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | openssl +3 | 1:1.1.1k-12.el8_9 |
| 9 | openssl +3 | 1:3.0.7-27.el9 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | 3.1.4-r1 |
| 3.23 | openssl | 3.1.4-r1 |
| 3.24 | openssl | 3.1.4-r1 |
| edge | openssl | 3.1.4-r1 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | openssl +8 | 1:3.0.8-1.amzn2023.0.10 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-provider-fips +1 | not affected | |
| openssl | 3.1.4-r1 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | openssl | affected |
| 11 | openssl | 1.1.1w-0+deb11u2 |
| 12 | openssl | 3.0.13-1~deb12u1 |
| 13 | openssl | 3.0.12-2 |
| 14 | openssl | 3.0.12-2 |
echo 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.0.13-1~deb12u1 | |
| openssl-3-0-9 | 3.0.9+e1 | |
| openssl-3-1-0 | 3.1.0+e1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-1-0-0-devel +9 | 1.0.2u-23.1 | openSUSE-SU-2024:13428-1 |
| Tumbleweed | libopenssl-1-1-devel +5 | 1.1.1w-4.1 | openSUSE-SU-2024:13437-1 |
| Tumbleweed | libopenssl-3-devel +6 | 3.1.4-2.1 | openSUSE-SU-2024:13438-1 |
openSUSE Leap Micro 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.60.2 | SUSE-SU-2023:4524-1 |
| 5.3 | libopenssl3 | 3.0.8-150400.4.42.1 | SUSE-SU-2023:4649-1 |
| 5.4 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.60.2 | SUSE-SU-2023:4524-1 |
| 5.4 | libopenssl3 | 3.0.8-150400.4.42.1 | SUSE-SU-2023:4649-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | openssl +3 | 1:1.1.1k-12.el8_9 |
root.io alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | rootio-openssl | 3.1.4-r1 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-openssl | 1.1.1w-0+deb11u2 |
| 12 | rootio-openssl | 3.0.13-1~deb12u1 |
seal Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 7 | openssl +1 | 1:1.0.2k-26.el7_9+sp2 |
| 8 | openssl +1 | 1:1.1.1k-14.el8_6+sp999 |
| 8 | openssl +1 | 1:1.1.1k-6.el8_5+sp999 |
| 9 | openssl +1 | 1:3.2.2-6.el9_5+sp999 |
seal alpine 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl | 1.1.1t-r003 | |
| seal-openssl | 1.1.1t-r353412 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 1.1.1w-0+deb11u2+sp999 | |
| openssl +1 | 3.0.11-1~deb12u2+sp999 |
ubuntu 6 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | openssl1-0 | 1.0.2n-1ubuntu5.13+esm1 |
| 18.04-ESM | openssl | 1.1.1-1ubuntu2.1~18.04.23+esm4 |
| 20.04 | openssl | 1.1.1f-1ubuntu2.21 |
| 20.04-ESM | edk2 | affected |
| 20.04-ESM | openssl | 1.1.1f-1ubuntu2.21 |
| 22.04 | nodejs | affected |
5 more rows
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.1.4-r1 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/11/06/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/03/11/1
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7877
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:2447
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-5678
- bugzilla.redhat.com https://bugzilla.redhat.com/2223016
- bugzilla.redhat.com https://bugzilla.redhat.com/2224962
- bugzilla.redhat.com https://bugzilla.redhat.com/2227852
- bugzilla.redhat.com https://bugzilla.redhat.com/2248616
- bugzilla.redhat.com https://bugzilla.redhat.com/2257571
Show all 53 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2258502
- bugzilla.redhat.com https://bugzilla.redhat.com/2259944
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2224962
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2227852
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2248616
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2270358
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-093430.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-128433.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-277137.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-331112.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-341067.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-613116.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-915275.html
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-3446
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-3817
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-5678
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-2408
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-2447.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:7877
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=34efaef6c103d636ab507a0cc34dca4d3aecc055
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=710fee740904b6290fef0dd5536fbcedbc38ff0c
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=db925ae2e65d0d925adef429afc37f75bd1c2017
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=ddeb4b6c6d527e54ce9a99cba785c0f7776e54b6
- github.com https://github.com/advisories/GHSA-2cj7-mg3x-9mhq
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-5678.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-2447.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-5678
- security.netapp.com https://security.netapp.com/advisory/ntap-20231130-0010
- security.netapp.com https://security.netapp.com/advisory/ntap-20231130-0010/
- ubuntu.com https://ubuntu.com/security/notices/USN-6622-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6632-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6709-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7894-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-5678
- www.openssl.org https://www.openssl.org/news/secadv/20231106.txt
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.