cve.bz

CVE-2023-5678 openssl openssl: Unchecked Input for Loop Condition

5.3 mediumEPSS 5.1%Fix available

Medium (5.3) in openssl openssl. EPSS 5.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
5.1% (unchanged from 5.1% a week ago; 4.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-754 Improper Check for Unusual or Exceptional Conditions
CWE-606 Unchecked Input for Loop Condition
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-5678 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-5678?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-5678?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-5678 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSSLfrom 1.0.2 before 1.0.2zj
OpenSSLfrom 1.1.1 before 1.1.1x
OpenSSLfrom 3.0.0 before 3.0.13
OpenSSLfrom 3.1.0 before 3.1.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11openssl1.1.1n-0+deb11u6DLA-3942-1
Debian11openssl1.1.1w-0+deb11u2DLA-3942-2
Debian12openssl3.0.13-1~deb12u1DEBIAN-CVE-2023-5678
Debian13, 14openssl3.0.12-2DEBIAN-CVE-2023-5678
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.21UBUNTU-CVE-2023-5678 USN-6622-1
Ubuntu22.04:LTSedk22022.02-3ubuntu0.22.04.4UBUNTU-CVE-2023-5678 USN-7894-1
Ubuntu22.04:LTSopenssl3.0.2-0ubuntu1.14UBUNTU-CVE-2023-5678 USN-6622-1
Ubuntu24.04:LTSedk22024.02-2ubuntu0.6UBUNTU-CVE-2023-5678 USN-7894-1
Ubuntu24.04:LTSopenssl3.0.10-1ubuntu4UBUNTU-CVE-2023-5678
UbuntuPro:16.04:LTSopenssl1.0.2g-1ubuntu4.20+esm11UBUNTU-CVE-2023-5678 USN-6632-1
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSedk2no fix listedUBUNTU-CVE-2023-5678
UbuntuPro:18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.23+esm4UBUNTU-CVE-2023-5678 USN-6632-1
UbuntuPro:18.04:LTSopenssl1.01.0.2n-1ubuntu5.13+esm1UBUNTU-CVE-2023-5678 USN-6709-1
UbuntuPro:22.04:LTSnodejsno fix listedUBUNTU-CVE-2023-5678
UbuntuPro:FIPS-preview:22.04:LTS, Pro:FIPS:16.04:LTS, Pro:FIPS:18.04:LTS and 1 moreopensslno fix listedUBUNTU-CVE-2023-5678
UbuntuPro:FIPS-updates:16.04:LTSopenssl1.0.2g-1ubuntu4.fips.4.20.11UBUNTU-CVE-2023-5678
3 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hatenterprise_linux:9::appstreamopenssl-perl, openssl-devel, openssl-debuginfo and 2 more1:3.0.7-27.el9RHSA-2024:2447
Red Hatenterprise_linux:9::baseosopenssl, openssl-libs, openssl-debuginfo and 2 more1:3.0.7-27.el9RHSA-2024:2447
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:8.6.0-3.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.57-9.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_proxy_cluster, jbcs-httpd24-mod_proxy_cluster-debuginfo0:1.3.20-3.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.57-9.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.1.1k-17.el7jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el8jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 2 more0:8.6.0-3.el8jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el8jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 8 more0:2.4.57-9.el8jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_proxy_cluster, jbcs-httpd24-mod_proxy_cluster-debuginfo0:1.3.20-3.el8jbcsRHSA-2024:1316
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html, jbcs-httpd24-mod_ssl-debuginfo and 1 more1:2.4.57-9.el8jbcsRHSA-2024:1316
9 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 7 moreopenssl-1_11.1.1d-150200.11.82.1SUSE-SU-2023:4519-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 8 moreopenssl-1_0_01.0.2p-150000.3.88.1SUSE-SU-2023:4522-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1openssl-1_11.1.0i-150100.14.68.1SUSE-SU-2023:4520-1
SUSELinux Enterprise Live Patching 15 SP4openssl-1_1-livepatches0.2-150400.3.6.1SUSE-SU-2023:4919-1
SUSELinux Enterprise Live Patching 15 SP5openssl-1_1-livepatches0.2-150500.6.3.1SUSE-SU-2023:4918-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Basesystem 15 SP4openssl-1_11.1.1l-150400.7.60.2SUSE-SU-2023:4524-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Basesystem 15 SP4openssl-33.0.8-150400.4.42.1SUSE-SU-2023:4649-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5openssl-1_11.1.1l-150500.17.22.1SUSE-SU-2023:4518-1
SUSELinux Enterprise Module for Basesystem 15 SP5openssl-33.0.8-150500.5.19.1SUSE-SU-2023:4635-1
SUSELinux Enterprise Module for Legacy 12, Linux Enterprise Server for SAP Applications 12 SP5compat-openssl0980.9.8j-106.61.1SUSE-SU-2023:4593-1
SUSELinux Enterprise Server 11 SP4 LTSS EXTREME COREopenssl0.9.8j-0.106.80.1SUSE-SU-2023:4489-1
SUSELinux Enterprise Server 11 SP4 LTSS EXTREME COREopenssl11.0.1g-0.58.76.1SUSE-SU-2023:4488-1
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4, Leap 15.5openssl-1_0_01.0.2p-150000.3.88.1SUSE-SU-2023:4522-1
openSUSELeap 15.4, Leap Micro 5.3, Leap Micro 5.4openssl-1_11.1.1l-150400.7.60.2SUSE-SU-2023:4524-1
openSUSELeap 15.4, Leap Micro 5.3, Leap Micro 5.4openssl-33.0.8-150400.4.42.1SUSE-SU-2023:4649-1
openSUSELeap 15.5openssl-1_11.1.1l-150500.17.22.1SUSE-SU-2023:4518-1
openSUSELeap 15.5openssl-33.0.8-150500.5.19.1SUSE-SU-2023:4635-1
openSUSETumbleweedopenssl-1_0_01.0.2u-23.1openSUSE-SU-2024:13428-1
openSUSETumbleweedopenssl-1_11.1.1w-4.1openSUSE-SU-2024:13437-1
openSUSETumbleweedopenssl-33.1.4-2.1openSUSE-SU-2024:13438-1
AlmaLinux8openssl, openssl-libs, openssl-perl and 1 more1:1.1.1k-12.el8_9ALSA-2023:7877
AlmaLinux9openssl, openssl-libs, openssl-perl and 1 more1:3.0.7-27.el9ALSA-2024:2447
Rocky Linux8openssl1:1.1.1k-12.el8_9RLSA-2023:7877
Alpinev3.15, v3.16openssl1.1.1w-r1ALPINE-CVE-2023-5678
Alpinev3.17openssl3.0.12-r1ALPINE-CVE-2023-5678
Alpinev3.18, v3.19, v3.20 and 4 moreopenssl3.1.4-r1ALPINE-CVE-2023-5678
Azure Linux2cloud-hypervisor-cvm38.0.72.2-1AZL-42685
Azure Linux2edk220230301gitf80f052277c8-38AZL-31872
Azure Linux2hvloader1.0.1-9AZL-37740
Azure Linux2openssl1.1.1k-28AZL-31880
Azure Linux3cloud-hypervisor-cvm38.0.72.2-1AZL-42736
Azure Linux3edk220230301gitf80f052277c8-38AZL-34666
Azure Linux3kata-containers3.2.0.azl1-1AZL-39659
Azure Linux3openssl1.1.1k-28AZL-35084
Azure Linux3openssl-fips-providerno fix listedAZL-78555
Alpaquita23openssl3.0.12-r1BELL-CVE-2023-5678
Alpaquitastreamopenssl3.1.4-r1BELL-CVE-2023-5678
BellSoft Hardened Containers23openssl3.0.12-r1BELL-CVE-2023-5678
BellSoft Hardened Containersstreamopenssl3.1.4-r1BELL-CVE-2023-5678

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability in OpenSSL is categorized as a low severity issue primarily because it requires specific conditions to exploit and doesn't directly result in a full Denial of Service (DoS). While the excessive time spent in DH key generation or verification could potentially cause delays, the impact is mitigated by the fact that it requires untrusted sources supplying large Q parameter values. Additionally, the OpenSSL SSL/TLS implementation remains unaffected, limiting the scope of potential attacks. Moreover, there are inherent limits on key length, which further restrict the potential for exploitation.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1k-17.el8jbcsFixed 2024-03-18RHSA-2024:1316
JBoss Core Services on RHEL 7jbcs-httpd24-openssl-1:1.1.1k-17.el7jbcsFixed 2024-03-18RHSA-2024:1316
JWS 5.7.8opensslFixed 2024-03-18RHSA-2024:1319
JWS 6.0.1opensslFixed 2024-03-18RHSA-2024:1325
Red Hat Enterprise Linux 8openssl-1:1.1.1k-12.el8_9Fixed 2023-12-19RHSA-2023:7877
Red Hat Enterprise Linux 8.6 Extended Update Supportopenssl-1:1.1.1k-12.el8_6Fixed 2024-01-11RHSA-2024:0208
Red Hat Enterprise Linux 8.8 Extended Update Supportopenssl-1:1.1.1k-12.el8_8Fixed 2024-01-10RHSA-2024:0154
Red Hat Enterprise Linux 9openssl-1:3.0.7-27.el9Fixed 2024-04-30RHSA-2024:2447
Red Hat JBoss Core Servicesjbcs-httpd24-opensslFixed 2024-03-18RHSA-2024:1317
Red Hat JBoss Web Server 5.7 on RHEL 7jws5-tomcat-native-0:1.2.31-17.redhat_17.el7jwsFixed 2024-03-18RHSA-2024:1318
Red Hat JBoss Web Server 5.7 on RHEL 8jws5-tomcat-native-0:1.2.31-17.redhat_17.el8jwsFixed 2024-03-18RHSA-2024:1318
Red Hat JBoss Web Server 5.7 on RHEL 9jws5-tomcat-native-0:1.2.31-17.redhat_17.el9jwsFixed 2024-03-18RHSA-2024:1318
Cryostat 2opensslNot affected
Red Hat Enterprise Linux 6opensslOut of support scope
Red Hat Enterprise Linux 7opensslFix deferred
Red Hat Enterprise Linux 8compat-openssl10Fix deferred
Red Hat Enterprise Linux 9compat-openssl11Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-5678.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-226-15Siemens SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and Facilitiesnone listednone listed
ICSA-25-100-02Siemens SIDIS Prime2025-04-08Chemical, Critical Manufacturing, Energy, Food and Agriculture, Water and Wastewater SystemsSIDIS Primenone listed
ICSA-25-044-09Siemens SCALANCE W700 IEEE 802.11ax2025-02-11Chemical, Critical Manufacturing, Energy, Food and Agriculture, Water and Wastewater SystemsSCALANCE WAB762-1 (6GK5762-1AJ00-6AA0), SCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) and 16 morenone listed
ICSA-24-319-04Siemens SINEC NMS2024-11-12MultipleSINEC NMSnone listed
ICSA-24-319-08Siemens SINEC INS2024-11-12MultipleSINEC INSnone listed
ICSA-24-165-04Siemens ST7 ScadaConnect2024-06-11MultipleST7 ScadaConnect (6NH7997-5DA10-0AA0)none listed
ICSA-24-137-07Siemens SIMATIC RTLS Locating Manager2024-05-14MultipleSIMATIC RTLS Locating Manager (6GT2780-0DA00), SIMATIC RTLS Locating Manager (6GT2780-0DA10), SIMATIC RTLS Locating Manager (6GT2780-0DA20) and 4 morenone listed
ICSA-24-102-01Siemens SIMATIC S7-1500 TM MFP2024-04-09Critical ManufacturingSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed
ICSA-24-102-07Siemens SINEC NMS2024-04-09MultipleSINEC NMSnone listed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
1 more in the JSON.

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON