CVE-2023-5678: OpenSSL X9.42 Diffie-Hellman Excessive Computation Denial of Service
- Vendor
- OpenSSL Software Foundation
CVE-2023-5678 is a denial-of-service vulnerability in OpenSSL's X9.42 Diffie-Hellman key generation and validation operations. DH_check_pub_key() lacks checks for excessively large P and Q parameters, while DH_generate_key() checks P but not Q. Processing oversized, untrusted keys or parameters can therefore cause prolonged computation. Affected interfaces also include DH_check_pub_key_ex(), EVP_PKEY_public_check(), EVP_PKEY_generate(), the OpenSSL pkey utility with the -pubcheck option, and the genpkey utility. DH_check() performs the necessary parameter checks following the changes for CVE-2023-3817. OpenSSL's SSL/TLS implementation and the OpenSSL 3.0 and 3.1 FIPS providers are not affected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Applications processing attacker-controlled X9.42 Diffie-Hellman keys or parameters can suffer excessive computation and long processing delays, degrading availability or causing denial of service. No confidentiality or integrity impact is established.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid passing untrusted X9.42 Diffie-Hellman keys or parameters to the affected operations. Enforce appropriate parameter-size limits before expensive cryptographic processing. Where applicable, validate parameters with DH_check() in a build containing the CVE-2023-3817 fixes and reject parameters that fail validation.
Remediation
Patch, then assume compromise.
Install vendor updates explicitly addressing CVE-2023-5678 for OpenSSL and any products bundling the affected library. Fixed package examples include Chainguard libcrypto3 3.1.4-r1 or later, Echo openssl-3.0.9 3.0.9+e1 or later, and RHEL OpenSSL 1.1.1k-12.el8_9, 1.1.1k-12.el8_8, or 1.1.1k-12.el8_6 for their respective release channels. These package versions are distribution-specific, not universal upstream minimums. Restart services linked against OpenSSL, or reboot the system, after installation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-5678 exploited in the wild?
- Yes. As of Nov 20, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2023-5678?
- As of Nov 20, 2026, Mallory has found no public exploit for CVE-2023-5678.
- Is there a patch for CVE-2023-5678?
- Install vendor updates explicitly addressing CVE-2023-5678 for OpenSSL and any products bundling the affected library. Fixed package examples include Chainguard libcrypto3 3.1.4-r1 or later, Echo openssl-3.0.9 3.0.9+e1 or later, and RHEL OpenSSL 1.1.1k-12.el8_9, 1.1.1k-12.el8_8, or 1.1.1k-12.el8_6 for their respective release channels.
- What products are affected by CVE-2023-5678?
- OpenSSL Software Foundation Openssl.
- How severe is CVE-2023-5678?
- CVE-2023-5678 has a CVSS v3.1 score of 5.3 (Medium) and an EPSS score of 5.1% (92nd percentile) as of Nov 20, 2026.
Recent activity
45 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.