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 DHgeneratekey() or DHcheckpub_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 DHcheck() performs necessary checks for excessively large P and Q parameters (as of CVE-2023-3817), DHcheckpubkey() doesn't implement these checks, making it vulnerable to attacks using excessively large P and Q parameters. Similarly, DHgeneratekey() 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 DHgeneratekey() to generate X9.42 DH keys or DHcheckpubkey(), DHcheckpubkeyex(), or EVPPKEYpubliccheck() to check X9.42 DH keys or parameters may experience long delays, particularly when processing keys or parameters from untrusted sources (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 DHgeneratekey() and DHcheckpub_key() functions (OpenSSL Advisory).

Additional resources


SourceThis report was generated using AI

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