Excessive time spent in DH check / generation with large Q parameter value

Summary

CVECVE-2023-5678
StatePUBLISHED
Assigneropenssl
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-11-06 16:15:42 UTC
Updated2026-05-12 11:16:17 UTC
DescriptionIssue 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.

Risk And Classification

Primary CVSS: v3.1 5.3 MEDIUM from [email protected]

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

Problem Types: CWE-606 | CWE-754 | CWE-606 CWE-606 Unchecked Input for Loop Condition


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
3.1ADPDECLARED5.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary5.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CVSS v3.1 Breakdown

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

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Openssl Openssl All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA OpenSSL OpenSSL affected 1.0.2 1.0.2zj custom Not specified
CNA OpenSSL OpenSSL affected 1.1.1 1.1.1x custom Not specified
CNA OpenSSL OpenSSL affected 3.0.0 3.0.13 semver Not specified
CNA OpenSSL OpenSSL affected 3.1.0 3.1.5 semver Not specified
ADP Siemens RUGGEDCOM RST2428P unaffected * custom Not specified
ADP Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 Family unaffected * custom Not specified
ADP Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 Family unaffected * custom Not specified
ADP Siemens SIDIS Prime affected V4.0.700 custom Not specified
ADP Siemens SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem affected * custom Not specified
ADP Siemens SINEC NMS affected V3.0 SP1 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified

References

ReferenceSourceLinkTags
cert-portal.siemens.com/productcert/html/ssa-398330.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.openssl.org Git - openssl.git/commitdiff af854a3a-2127-422b-91ae-364da2661108 git.openssl.org Mailing List, Patch
git.openssl.org Git - openssl.git/commitdiff af854a3a-2127-422b-91ae-364da2661108 git.openssl.org Broken Link
cert-portal.siemens.com/productcert/html/ssa-265688.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
www.openwall.com/lists/oss-security/2024/03/11/1 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
git.openssl.org Git - openssl.git/commitdiff af854a3a-2127-422b-91ae-364da2661108 git.openssl.org Broken Link
cert-portal.siemens.com/productcert/html/ssa-331112.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-556635.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-769027.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
/err404.html af854a3a-2127-422b-91ae-364da2661108 www.openssl.org Vendor Advisory
cert-portal.siemens.com/productcert/html/ssa-915275.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-341067.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-613116.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-277137.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-093430.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-794697.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-128433.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
security.netapp.com/advisory/ntap-20231130-0010 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
git.openssl.org Git - openssl.git/commitdiff af854a3a-2127-422b-91ae-364da2661108 git.openssl.org Mailing List, Patch
lists.debian.org/debian-lts-announce/2024/11/msg00000.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
lists.debian.org/debian-lts-announce/2024/10/msg00033.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
oss-security - OpenSSL Security Advisory MITRE www.openwall.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: David Benjamin (Google) (en)

CNA: Richard Levitte (en)

Legacy QID Mappings

  • 161251 Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2023-7877)
  • 161287 Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2024-12056)
  • 200094 Ubuntu Security Notification for Open Secure Sockets Layer (OpenSSL) Vulnerabilities (USN-6622-1)
  • 200107 Ubuntu Security Notification for Open Secure Sockets Layer (OpenSSL) Vulnerabilities (USN-6632-1)
  • 200215 Ubuntu Security Notification for Open Secure Sockets Layer (OpenSSL) Vulnerabilities (USN-6709-1)
  • 242632 Red Hat Update for Open Secure Sockets Layer (OpenSSL) (RHSA-2023:7877)
  • 242687 Red Hat Update for Open Secure Sockets Layer (OpenSSL) (RHSA-2024:0154)
  • 242696 Red Hat Update for Open Secure Sockets Layer (OpenSSL) (RHSA-2024:0208)
  • 243077 Red Hat Update for JBoss Core Services (RHSA-2024:1316)
  • 330164 IBM Advanced Interactive eXecutive (AIX) Open Secure Sockets Layer (OpenSSL) Multiple Vulnerabilities (openssl_advisory40)
  • 356767 Amazon Linux Security Advisory for openssl11 : ALAS2-2023-2351
  • 356770 Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL) : ALAS2-2023-2350
  • 356780 Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL) : ALAS-2023-1891
  • 356891 Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL)-snapsafe : ALAS2OPENSSL-SNAPSAFE-2023-004
  • 356903 Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL) : ALAS2023-2023-443
  • 356993 Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL) : AL2012-2023-477
  • 357333 Amazon Linux Security Advisory for edk2 : ALAS2-2024-2502
  • 379545 Splunk Enterprise Third Party Package Updates for March 2024 (SVD-2024-0303)
  • 379546 Splunk Universal Forwarder Third Party Package Updates for March 2024 (SVD-2024-0304)
  • 379630 Alibaba Cloud Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ALINUX3-SA-2024:0047)
  • 503552 Alpine Linux Security Update for Open Secure Sockets Layer (OpenSSL)
  • 503621 Alpine Linux Security Update for Open Secure Sockets Layer (OpenSSL)
  • 503687 Alpine Linux Security Update for Open Secure Sockets Layer (OpenSSL)
  • 504259 Alpine Linux Security Update for openssl
  • 505911 Alpine Linux Security Update for openssl
  • 673338 EulerOS Security Update for shim (EulerOS-SA-2024-1098)
  • 673343 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1125)
  • 673443 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1069)
  • 673480 EulerOS Security Update for shim (EulerOS-SA-2024-1129)
  • 673598 EulerOS Security Update for compat-openssl10 (EulerOS-SA-2024-1258)
  • 673684 EulerOS Security Update for shim (EulerOS-SA-2024-1164)
  • 673687 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1184)
  • 673724 EulerOS Security Update for shim (EulerOS-SA-2024-1299)
  • 673737 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1287)
  • 673773 EulerOS Security Update for linux-sgx (EulerOS-SA-2024-1124)
  • 673790 EulerOS Security Update for shim (EulerOS-SA-2024-1186)
  • 673797 EulerOS Security Update for shim-signed (EulerOS-SA-2024-1165)
  • 673858 EulerOS Security Update for openssl111d (EulerOS-SA-2024-1157)
  • 673889 EulerOS Security Update for shim (EulerOS-SA-2024-1113)
  • 673908 EulerOS Security Update for shim (EulerOS-SA-2024-1206)
  • 673915 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1155)
  • 673962 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1204)
  • 674007 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1093)
  • 674055 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2024-1109)
  • 674097 EulerOS Security Update for shim (EulerOS-SA-2024-1074)
  • 691351 Free Berkeley Software Distribution (FreeBSD) Security Update for Open Secure Sockets Layer (OpenSSL) (a5956603-7e4f-11ee-9df6-84a93843eb75)
  • 755307 SUSE Enterprise Linux Security Update for openssl-1_1 (SUSE-SU-2023:4524-1)
  • 755308 SUSE Enterprise Linux Security Update for openssl-1_0_0 (SUSE-SU-2023:4523-1)
  • 755309 SUSE Enterprise Linux Security Update for openssl-1_0_0 (SUSE-SU-2023:4522-1)
  • 755310 SUSE Enterprise Linux Security Update for openssl-1_1 (SUSE-SU-2023:4521-1)
  • 755311 SUSE Enterprise Linux Security Update for openssl-1_1 (SUSE-SU-2023:4520-1)
  • 755312 SUSE Enterprise Linux Security Update for openssl-1_1 (SUSE-SU-2023:4519-1)
  • 755313 SUSE Enterprise Linux Security Update for openssl-1_1 (SUSE-SU-2023:4518-1)
  • 755361 SUSE Enterprise Linux Security Update for compat-openssl098 (SUSE-SU-2023:4593-1)
  • 755375 SUSE Enterprise Linux Security Update for openssl-3 (SUSE-SU-2023:4635-1)
  • 755461 SUSE Enterprise Linux Security Update for openssl-3 (SUSE-SU-2023:4649-1)
  • 755503 SUSE Enterprise Linux Security Update for openssl-1_1-livepatches (SUSE-SU-2023:4919-1)
  • 755504 SUSE Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL)-1_1-livepatches (SUSE-SU-2023:4918-1)
  • 907698 Common Base Linux Mariner (CBL-Mariner) Security Update for Open Secure Sockets Layer (OpenSSL) (31880-1)
  • 907730 Common Base Linux Mariner (CBL-Mariner) Security Update for edk2 (31872-1)
  • 941507 AlmaLinux Security Update for Open Secure Sockets Layer (OpenSSL) (ALSA-2023:7877)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report