Read the docs
TI-2023-05221 Aliases CVE-2023-5678GHSA-2cj7-mg3x-9mhq

Excessive time spent in DH check / generation with large Q parameter value

Priority LOW 38CWE-606Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · None · Low
Fix status
Partial Red Hat: 13 fixed, 4 without a fix

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.05091 92nd percentileScored 2026-11-07
Fix Partial OpenSSL (OpenSSL): 1.0.2zj, 1.1.1x, 3.0.13 +1Red Hat: 9 advisoriesRed Hat: 13 fixed, 4 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
OpenSSLOpenSSL1.0.2 to before 1.0.2zj; 1.1.1 to before 1.1.1x; 3.0.0 to before 3.0.13; 3.1.0 to before 3.1.51.0.2zj, 1.1.1x, 3.0.13, 3.1.5Patch availableCNA
  • OpenSSL VendorOpenSSL Affected 1.0.2 to before 1.0.2zj; 1.1.1 to before 1.1.1x; 3.0.0 to before 3.0.13; 3.1.0 to before 3.1.5 Fixed in 1.0.2zj, 1.1.1x, 3.0.13, 3.1.5 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*1.0.2 to before 1.0.2zj; 1.1.1 to before 1.1.1x; 3.0.0 to before 3.0.13; 3.1.0 to before 3.1.5VulnerableOpenSSL
  • cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* Versions 1.0.2 to before 1.0.2zj; 1.1.1 to before 1.1.1x; 3.0.0 to before 3.0.13; 3.1.0 to before 3.1.5 Vulnerable ·OpenSSL

Remediation

  • Fix · CNA OpenSSL (OpenSSL) Fixed in 1.0.2zj, 1.1.1x, 3.0.13, 3.1.5

Red Hat 9 advisories

  • RHSA-2024:2447 Released 2024-04-30 · Red Hat rating Low
    openssl and openssl-fips-provider security update
    • Red Hat Enterprise Linux AppStream (v. 9) openssl-devel-1:3.0.7-27.el9, openssl-perl-1:3.0.7-27.el9
    • Red Hat Enterprise Linux BaseOS (v. 9) openssl-1:3.0.7-27.el9, openssl-libs-1:3.0.7-27.el9
  • RHSA-2024:1316 Released 2024-03-18 · Red Hat rating Moderate
    Red Hat JBoss Core Services Apache HTTP Server 2.4.57 SP3 security update
    • Red Hat JBoss Core Services on RHEL 7 Server jbcs-httpd24-curl-8.6.0-3.el7jbcs, jbcs-httpd24-httpd-2.4.57-9.el7jbcs, jbcs-httpd24-httpd-devel-2.4.57-9.el7jbcs +15
    • Red Hat JBoss Core Services on RHEL 8 jbcs-httpd24-curl-8.6.0-3.el8jbcs, jbcs-httpd24-httpd-2.4.57-9.el8jbcs, jbcs-httpd24-httpd-devel-2.4.57-9.el8jbcs +15
  • RHSA-2024:1317 Released 2024-03-18 · Red Hat rating Moderate
    Red Hat JBoss Core Services Apache HTTP Server 2.4.57 SP3 security update
    • Red Hat JBoss Core Services
Show 6 more Red Hat advisories
  • RHSA-2024:1325 Released 2024-03-18 · Red Hat rating Important
    Red Hat JBoss Web Server 6.0.1 release and security update
    • JWS 6.0.1
  • RHSA-2024:1318 Released 2024-03-18 · Red Hat rating Important
    Red Hat JBoss Web Server 5.7.8 release and security update
    • Red Hat JBoss Web Server 5.7 for RHEL 7 Server jws5-tomcat-9.0.62-41.redhat_00020.1.el7jws, jws5-tomcat-admin-webapps-9.0.62-41.redhat_00020.1.el7jws, jws5-tomcat-docs-webapp-9.0.62-41.redhat_00020.1.el7jws +10
    • Red Hat JBoss Web Server 5.7 for RHEL 8 jws5-tomcat-9.0.62-41.redhat_00020.1.el8jws, jws5-tomcat-admin-webapps-9.0.62-41.redhat_00020.1.el8jws, jws5-tomcat-docs-webapp-9.0.62-41.redhat_00020.1.el8jws +8
    • Red Hat JBoss Web Server 5.7 for RHEL 9 jws5-tomcat-9.0.62-41.redhat_00020.1.el9jws, jws5-tomcat-admin-webapps-9.0.62-41.redhat_00020.1.el9jws, jws5-tomcat-docs-webapp-9.0.62-41.redhat_00020.1.el9jws +8
  • RHSA-2024:1319 Released 2024-03-18 · Red Hat rating Important
    Red Hat JBoss Web Server 5.7.8 release and security update
    • JWS 5.7.8
  • RHSA-2024:0208 Released 2024-01-11 · Red Hat rating Low
    openssl security update
    • Red Hat Enterprise Linux BaseOS EUS (v.8.6) openssl-1:1.1.1k-12.el8_6, openssl-devel-1:1.1.1k-12.el8_6, openssl-libs-1:1.1.1k-12.el8_6 +1
  • RHSA-2024:0154 Released 2024-01-10 · Red Hat rating Low
    openssl security update
    • Red Hat Enterprise Linux BaseOS EUS (v.8.8) openssl-1:1.1.1k-12.el8_8, openssl-devel-1:1.1.1k-12.el8_8, openssl-libs-1:1.1.1k-12.el8_8 +1
  • RHSA-2023:7877 Released 2023-12-19 · Red Hat rating Low
    openssl security update
    • Red Hat Enterprise Linux BaseOS (v. 8) openssl-1:1.1.1k-12.el8_9, openssl-devel-1:1.1.1k-12.el8_9, openssl-libs-1:1.1.1k-12.el8_9 +1

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
JWS 5.7.8Fixed RHSA-2024:1319
JWS 6.0.1Fixed RHSA-2024:1325
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2024:2447
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2023:7877
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2024:2447
Red Hat Enterprise Linux BaseOS EUS (v.8.6)Fixed RHSA-2024:0208
Red Hat Enterprise Linux BaseOS EUS (v.8.8)Fixed RHSA-2024:0154
Red Hat JBoss Core ServicesFixed RHSA-2024:1317
Red Hat JBoss Core Services on RHEL 7 ServerFixed RHSA-2024:1316
Red Hat JBoss Core Services on RHEL 8Fixed RHSA-2024:1316
Red Hat JBoss Web Server 5.7 for RHEL 7 ServerFixed RHSA-2024:1318
Red Hat JBoss Web Server 5.7 for RHEL 8Fixed RHSA-2024:1318
Red Hat JBoss Web Server 5.7 for RHEL 9Fixed RHSA-2024:1318
Not affected: 7 products
  • Cryostat 2
  • Red Hat Enterprise Linux BaseOS (v. 9)
  • Red Hat JBoss Core Services on RHEL 7 Server
  • Red Hat JBoss Core Services on RHEL 8
  • Red Hat JBoss Web Server 5.7 for RHEL 7 Server
  • Red Hat JBoss Web Server 5.7 for RHEL 8
  • Red Hat JBoss Web Server 5.7 for RHEL 9

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-5678
  2. 2026-10-03 Alias added: GHSA-2cj7-mg3x-9mhq
  3. 2026-10-09 Fix available: RHSA-2024:1317 · Red Hat
  4. 2026-10-16 Fix available: Red Hat JBoss Core Services · Red Hat

References

  • TI-2022-01915 The c_rehash script allows command injection CVSS 3.1CRITICAL 9.8
  • TI-2021-02645 SM2 Decryption Buffer Overflow CVSS 3.1CRITICAL 9.8
  • TI-2009-03392 The TLS protocol, and the SSL protocol 3.0 and possibly earlier, as used in Microsoft… CVSS 3.1CRITICAL 9.8
  • TI-2022-01176 The c_rehash script allows command injection CVSS 3.1CRITICAL 9.8
  • TI-2014-00154 The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly… KEVCVSS 3.1HIGH 7.5
  • TI-2025-14107 Stack buffer overflow in CMS (Auth)EnvelopedData parsing CVSS 3.1HIGH 8.8
See all 312 →

Sources