Home / OpenSSL / OpenSSL / CVE-2023-5678
CVE-2023-5678: is it exploited, and which versions of OpenSSL are affected and fixed?
CVE-2023-5678 is an unchecked Input for Loop Condition vulnerability in OpenSSL. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: OpenSSL from 1.0.2 before 1.0.2zj, OpenSSL from 1.1.1 before 1.1.1x, OpenSSL from 3.0.0 before 3.0.13 and 1 more (CVE record by openssl). Fixed in 1.0.2zj, 1.1.1x, 3.0.13 and 3.1.5 (CVE record by openssl). Severity: Medium (5.3, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:34 UTC.
What is CVE-2023-5678?
Excessive time spent in DH check / generation with large Q parameter value
Issue 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.
From the CVE record by openssl, last updated October 14, 2026, 22:03 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| OpenSSL | OpenSSL | from 1.0.2 before 1.0.2zj from 1.1.1 before 1.1.1x from 3.0.0 before 3.0.13 from 3.1.0 before 3.1.5 | 1.0.2zj, 1.1.1x, 3.0.13, 3.1.5 |
As the CVE record by openssl states it, last updated October 14, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openssl | openssl | from 1.0.2 before 1.0.2zj | application |
| openssl | openssl | from 1.1.1 before 1.1.1x | application |
| openssl | openssl | from 3.0.0 before 3.0.13 | application |
| openssl | openssl | from 3.1.0 before 3.1.5 | application |
NVD analysis (status Modified), last modified October 14, 2026, 22:17 UTC.
How severe is CVE-2023-5678?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | CISA-ADP |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-5678 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, December 2, 2025)
- EPSS
- 5.09% probability of exploitation activity in the next 30 days, percentile 92.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-606 Unchecked Input for Loop Condition
- CWE-754 Improper Check for Unusual or Exceptional Conditions
Where are the vendor advisories and references?
- OpenSSL Advisory vendor-advisory
- 1.0.2zj git commit patch
- 1.1.1x git commit patch
- 3.0.13 git commit patch
- 3.1.5 git commit patch
- https://security.netapp.com/advisory/ntap-20231130-0010/ x_transferred
- http://www.openwall.com/lists/oss-security/2024/03/11/1 x_transferred
- https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html
- https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-128433.html
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- https://cert-portal.siemens.com/productcert/html/ssa-093430.html
- https://cert-portal.siemens.com/productcert/html/ssa-341067.html
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html
- https://cert-portal.siemens.com/productcert/html/ssa-915275.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- https://cert-portal.siemens.com/productcert/html/ssa-277137.html
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html
Who found and reported it?
- David Benjamin (Google) (finder)
- Richard Levitte (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- October 20, 2023
- Published
- November 6, 2023, 15:47 UTC
- CVE record updated
- October 14, 2026, 22:03 UTC by openssl
- NVD
- Modified, last modified October 14, 2026, 22:17 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:34 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect OpenSSL?
- Apr 7, 2014CVE-2014-0160 Openssl: out-of-bounds read exploited
- Dec 1, 2026CVE-2026-123780 OpenSSL: denial of service (resources allocated without limits)
- Dec 1, 2026CVE-2026-120667 OpenSSL: out-of-bounds write (memory corruption)
- Dec 1, 2026CVE-2026-120666 OpenSSL: data authenticity not verified
- Dec 1, 2026CVE-2026-120665 OpenSSL: improper certificate validation
- Nov 24, 2026CVE-2026-84785 OpenSSL: denial of service (resources allocated without limits)
- Nov 18, 2026CVE-2026-95690 OpenSSL: denial of service (resources allocated without limits)
- Nov 18, 2026CVE-2026-84786 OpenSSL: NULL pointer dereference (crash)
Questions about CVE-2023-5678
Is CVE-2023-5678 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 5.09% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of OpenSSL are affected by CVE-2023-5678?
OpenSSL from 1.0.2 before 1.0.2zj, OpenSSL from 1.1.1 before 1.1.1x, OpenSSL from 3.0.0 before 3.0.13 and OpenSSL from 3.1.0 before 3.1.5, per the CVE record by openssl. The tables above give every range the sources list.
Which version fixes CVE-2023-5678?
1.0.2zj, 1.1.1x, 3.0.13 and 3.1.5, per the CVE record by openssl. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-5678?
Medium (5.3, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2023-5678?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.