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 does not adequately constrain Q. Processing oversized, untrusted keys or parameters can therefore cause prolonged computation. The issue also affects DH_check_pub_key_ex(), EVP_PKEY_public_check(), EVP_PKEY_generate(), the OpenSSL pkey utility with -pubcheck, and the genpkey utility. OpenSSL's SSL/TLS implementation and its 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 experience excessive computation and long processing delays, degrading availability or causing denial of service. No confidentiality or integrity impact is established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Prevent untrusted X9.42 Diffie-Hellman keys or parameters from reaching affected generation and validation operations. Enforce parameter-size limits before expensive cryptographic processing. DH_check() can perform the necessary parameter checks when the fixes for CVE-2023-3817 are present; reject parameters that fail validation before passing them to affected operations. OpenSSL's SSL/TLS implementation is unaffected, so disabling TLS DHE cipher suites is not a general mitigation for this library vulnerability.
Remediation
Patch, then assume compromise.
Install vendor updates explicitly addressing CVE-2023-5678, including updates to products that bundle OpenSSL. Fixed distribution builds include Chainguard libcrypto3 3.1.4-r1, Echo openssl-3.0.9 3.0.9+e1, RHEL 8 OpenSSL 1.1.1k-12.el8_9, RHEL 8.8 OpenSSL 1.1.1k-12.el8_8, and RHEL 8.6 OpenSSL 1.1.1k-12.el8_6; use these or later vendor-supported fixed builds for the corresponding platform. Restart services linked against OpenSSL, or reboot, after installing the update.
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 7, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2023-5678?
- As of Nov 7, 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, including updates to products that bundle OpenSSL. Fixed distribution builds include Chainguard libcrypto3 3.1.4-r1, Echo openssl-3.0.9 3.0.9+e1, RHEL 8 OpenSSL 1.1.1k-12.el8_9, RHEL 8.8 OpenSSL 1.1.1k-12.el8_8, and RHEL 8.6 OpenSSL 1.1.1k-12.el8_6; use these or later vendor-supported fixed builds for the corresponding platform.
- 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 7, 2026.
Recent activity
45 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.