CVE-2023-5678
OpenSSL vulnerability analysis and mitigation

Overview

CVE-2023-5678 is a vulnerability in OpenSSL affecting versions 3.1 (prior to 3.1.5), 3.0 (prior to 3.0.13), 1.1.1.x, and 1.0.2 (prior to 1.0.2zj). The vulnerability was discovered on August 16, 2023, and publicly disclosed on November 6, 2023. It affects applications that use DH_generate_key() or DH_check_pub_key() functions when handling X9.42 DH keys or parameters (OpenSSL Advisory).

Technical details

The vulnerability occurs when generating or checking excessively long X9.42 DH keys or parameters, which can cause significant processing delays. While DH_check() performs necessary checks for excessively large P and Q parameters (as of CVE-2023-3817), DH_check_pub_key() doesn't implement these checks, making it vulnerable to attacks using excessively large P and Q parameters. Similarly, DH_generate_key() checks for an excessively large P but not for an excessively large Q. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (MEDIUM) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (NVD).

Impact

When exploited, this vulnerability can lead to Denial of Service (DoS) attacks. Applications using DH_generate_key() to generate X9.42 DH keys or DH_check_pub_key(), DH_check_pub_key_ex(), or EVP_PKEY_public_check() to check X9.42 DH keys or parameters may experience long delays, particularly when processing keys or parameters from untrusted sources (OpenSSL Advisory).

Exploitability

The vulnerability can be exploited when an application calls DH_generate_key() or DH_check_pub_key() and supplies a key or parameters obtained from an untrusted source. The issue also affects other OpenSSL functions including DH_check_pub_key_ex(), EVP_PKEY_public_check(), and EVP_PKEY_generate(). The OpenSSL pkey command line application with the '-pubcheck' option and the OpenSSL genpkey command line application are also vulnerable (OpenSSL Advisory).

Mitigation and workarounds

The vulnerability has been fixed in OpenSSL versions 3.1.5, 3.0.13, and 1.0.2zj. For users unable to upgrade immediately, it's important to note that the OpenSSL SSL/TLS implementation and the OpenSSL 3.0 and 3.1 FIPS providers are not affected by this issue. The fix includes additional checks for excessively large P and Q parameters in both DH_generate_key() and DH_check_pub_key() functions (OpenSSL Advisory).

Additional resources


SourceThis report was generated using AI

Related OpenSSL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-11999HIGH8.2
  • OpenSSL logoOpenSSL
  • wolfssl
NoYesJun 25, 2026
CVE-2026-14456HIGH7.5
  • OpenSSL logoOpenSSL
  • edk2
NoYesAug 13, 2026
CVE-2026-54876HIGH7.5
  • OpenSSL logoOpenSSL
  • seal-openssl
NoYesAug 05, 2026
CVE-2026-45784MEDIUM5.1
  • Rust logoRust
  • rust-debuginfo
NoYesJul 17, 2026
CVE-2026-75803NONEN/A
  • OpenSSL logoOpenSSL
  • edk2
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management