CVE-2023-5678: Excessive time spent in DH check / generation with large Q parameter value
Noroxi assessment
Priority: Monitor (action score 23/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 5% (FIRST EPSS); higher than 92.4% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: OpenSSL OpenSSL 3.0.13, 3.1.5.
Low priority for now. Upgrade to OpenSSL OpenSSL 3.0.13, 3.1.5 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2023-08615
- ALSA-2023:7877
- ALSA-2024:2447
- DLA-3942-1
- DLA-3942-2
- openSUSE-SU-2024:13428-1
- openSUSE-SU-2024:13437-1
- openSUSE-SU-2024:13438-1
- RHSA-2023:7877
- RHSA-2024:0154
- RHSA-2024:0208
- RHSA-2024:1316
- RHSA-2024:1318
- RHSA-2024:2447
- RLSA-2023:7877
- SUSE-SU-2023:4488-1
- SUSE-SU-2023:4489-1
- SUSE-SU-2023:4518-1
- SUSE-SU-2023:4519-1
- SUSE-SU-2023:4520-1
- Published
- Nov 6, 2023
- Updated
- Oct 14, 2026
- EPSS
- 5.0% · 92th percentile
- CWE
- CWE-606
Report tools
Action score
23
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.0%
CISA SSVC decision
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 5.3
- CNA · openssl
- 5.3
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| openssl | openssl | cpe:2.3:a:openssl:openssl |
Check your server's TLS configuration
The OpenSSL version can't be seen from outside; the free SSL checker tests your certificate, enabled TLS versions and weak ciphers. Confirm the version on your server with the package manager.
Run the SSL checkAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- openssl openssl1.0.2 and later · before 1.0.2zj
- openssl openssl1.1.1 and later · before 1.1.1x
- openssl openssl3.0.0 and later · before 3.0.13
- openssl openssl3.1.0 and later · before 3.1.5
Versions reported by the vendor
Affected version ranges reported by the assigning authority (openssl). Independent of NVD's CPE analysis and usually ahead of it.
OpenSSL OpenSSL
- 1.0.2 and later · before 1.0.2zjaffected
- 1.1.1 and later · before 1.1.1xaffected
- 3.0.0 and later · before 3.0.13affected · semver
- 3.1.0 and later · before 3.1.5affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | openssl | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| AlmaLinux:8 | openssl-devel | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| AlmaLinux:8 | openssl-libs | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| AlmaLinux:8 | openssl-perl | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| AlmaLinux:9 | openssl | before 1:3.0.7-27.el9 | 1:3.0.7-27.el9 |
| AlmaLinux:9 | openssl-devel | before 1:3.0.7-27.el9 | 1:3.0.7-27.el9 |
| AlmaLinux:9 | openssl-libs | before 1:3.0.7-27.el9 | 1:3.0.7-27.el9 |
| AlmaLinux:9 | openssl-perl | before 1:3.0.7-27.el9 | 1:3.0.7-27.el9 |
| Alpine:v3.15 | openssl | from 1.0.2 · before 1.1.1w-r1 | 1.1.1w-r1 |
| Alpine:v3.17 | openssl | from 1.0.2 · before 3.0.12-r1 | 3.0.12-r1 |
| Alpine:v3.18 | openssl | from 1.0.2 · before 3.1.4-r1 | 3.1.4-r1 |
| Debian:11 | openssl | before 1.1.1n-0+deb11u6 | 1.1.1n-0+deb11u6 |
| Debian:11 | openssl | before 1.1.1w-0+deb11u2 | 1.1.1w-0+deb11u2 |
| Debian:12 | openssl | before 3.0.13-1~deb12u1 | 3.0.13-1~deb12u1 |
| Debian:13 | openssl | before 3.0.12-2 | 3.0.12-2 |
| openSUSE:Leap 15.4 | openssl-1_0_0 | before 1.0.2p-150000.3.88.1 | 1.0.2p-150000.3.88.1 |
| openSUSE:Leap 15.5 | openssl-1_1 | before 1.1.1l-150500.17.22.1 | 1.1.1l-150500.17.22.1 |
| openSUSE:Leap 15.5 | openssl-3 | before 3.0.8-150500.5.19.1 | 3.0.8-150500.5.19.1 |
| openSUSE:Leap Micro 5.3 | openssl-1_1 | before 1.1.1l-150400.7.60.2 | 1.1.1l-150400.7.60.2 |
| openSUSE:Leap Micro 5.3 | openssl-3 | before 3.0.8-150400.4.42.1 | 3.0.8-150400.4.42.1 |
| openSUSE:Tumbleweed | openssl-1_0_0 | before 1.0.2u-23.1 | 1.0.2u-23.1 |
| openSUSE:Tumbleweed | openssl-1_1 | before 1.1.1w-4.1 | 1.1.1w-4.1 |
| openSUSE:Tumbleweed | openssl-3 | before 3.1.4-2.1 | 3.1.4-2.1 |
| Red Hat:enterprise_linux:8::baseos | openssl | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
+96
Same product
openssl: all recordsOther highest-scoring records for the same primary product.
- CVE-2014-0160The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packets, which allows remKEV90Now
- CVE-2021-3711SM2 Decryption Buffer Overflow65This week
- CVE-2003-0545Double free vulnerability in OpenSSL 0.9.7 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code 65This week
Published before and after this one in the same product
- ← EarlierCVE-2023-4807Sep 8, 2023 · POLY1305 MAC implementation corrupts XMM registers on Windows31Monitor
- ← EarlierCVE-2023-5363Oct 25, 2023 · Incorrect cipher key & IV length processing31Monitor
- Later →CVE-2023-6129Jan 9, 2024 · POLY1305 MAC implementation corrupts vector registers on PowerPC27Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| OpenSSL OpenSSL | 3.0.13 | Vendor (CNA) |
| OpenSSL OpenSSL | 3.1.5 | Vendor (CNA) |
| almalinux:openssl | 1:1.1.1k-12.el8_9 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:openssl-devel | 1:1.1.1k-12.el8_9 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:openssl-libs | 1:1.1.1k-12.el8_9 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:openssl-perl | 1:1.1.1k-12.el8_9 · AlmaLinux:8 | Package registry (OSV) |
| alpine:openssl | 1.1.1w-r1 · Alpine:v3.15 | Package registry (OSV) |
| debian:openssl | 3.0.13-1~deb12u1 · Debian:12 | Package registry (OSV) |
| opensuse:openssl-1_0_0 | 1.0.2p-150000.3.88.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:openssl-1_1 | 1.1.1l-150500.17.22.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:openssl-3 | 3.0.8-150500.5.19.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl | 1:1.1.1k-17.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-debuginfo | 1:1.1.1k-17.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-devel | 1:1.1.1k-17.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-libs | 1:1.1.1k-17.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-perl | 1:1.1.1k-17.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:openssl | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-debuginfo | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-debugsource | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-devel | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-libs | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-libs-debuginfo | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-perl | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| rocky linux:openssl | 1:1.1.1k-12.el8_9 · Rocky Linux:8 | Package registry (OSV) |
| suse:compat-openssl098 | 0.9.8j-106.61.1 · SUSE:Linux Enterprise Module for Legacy 12 | Package registry (OSV) |
| suse:openssl | 0.9.8j-0.106.80.1 · SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | Package registry (OSV) |
| suse:openssl-1_0_0 | 1.0.2p-150000.3.88.1 · SUSE:Linux Enterprise Module for Legacy 15 SP4 | Package registry (OSV) |
| suse:openssl-1_1 | 1.1.1l-150500.17.22.1 · SUSE:Linux Enterprise Micro 5.5 | Package registry (OSV) |
| suse:openssl-1_1-livepatches | 0.2-150500.6.3.1 · SUSE:Linux Enterprise Live Patching 15 SP5 | Package registry (OSV) |
| suse:openssl-3 | 3.0.8-150500.5.19.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP5 | Package registry (OSV) |
+1
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- David Benjamin (Google)finder
- Richard Levitteremediation developer
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- low · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- Low
Weakness class (CWE)
CWE-606 · Unchecked Input for Loop ConditionCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=710fee740904b6290fef0dd5536fbcedbc38ff0c
- git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=db925ae2e65d0d925adef429afc37f75bd1c2017
- git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=ddeb4b6c6d527e54ce9a99cba785c0f7776e54b6
- www.openssl.org/news/secadv/20231106.txt
- www.openwall.com/lists/oss-security/2024/03/11/1
- lists.debian.org/debian-lts-announce/2024/10/msg00033.html
- lists.debian.org/debian-lts-announce/2024/11/msg00000.html
- security.netapp.com/advisory/ntap-20231130-0010/
- cert-portal.siemens.com/productcert/html/ssa-093430.html
- cert-portal.siemens.com/productcert/html/ssa-128433.html
- cert-portal.siemens.com/productcert/html/ssa-265688.html
- cert-portal.siemens.com/productcert/html/ssa-277137.html
- cert-portal.siemens.com/productcert/html/ssa-331112.html
- cert-portal.siemens.com/productcert/html/ssa-341067.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com/productcert/html/ssa-556635.html
- cert-portal.siemens.com/productcert/html/ssa-613116.html
- cert-portal.siemens.com/productcert/html/ssa-769027.html
- cert-portal.siemens.com/productcert/html/ssa-794697.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.