Skip to main content
No exploitation reportedFix available

CVE-2023-5678

No exploitation reported by the sources we read.

  • Published2023-11-06
  • Fixed in3.1.5 · 3.0.13 · 1.1.1x · 1.0.2zj
  • WeaknessCWE-606 · CWE-754

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2023-11-0616:15CVE publishedNVD

Versions per branch

NVD
OpenSSL
BranchAffectedFixed in
3.1≥ 3.1.0, < 3.1.53.1.5
3.0≥ 3.0.0, < 3.0.133.0.13
1.1≥ 1.1.1, < 1.1.1x1.1.1x
1.0≥ 1.0.2, < 1.0.2zj1.0.2zj

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As openssl, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • OpenSSLother versions: not affected
    Affected
    • ≥ 1.0.2, < 1.0.2zjfixed in 1.0.2zjcustom
    • ≥ 1.1.1, < 1.1.1xfixed in 1.1.1xcustom
    • ≥ 3.0.0, < 3.0.13fixed in 3.0.13semver
    • ≥ 3.1.0, < 3.1.5fixed in 3.1.5semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-10-14

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cloud-hypervisor-cvmAzure Linux:3all versions · fixed in 38.0.72.2-1
  • cloud-hypervisor-cvmAzure Linux:2all versions · fixed in 38.0.72.2-1
  • compat-openssl098SUSE:Linux Enterprise Server for SAP Applications 12 SP5all versions · fixed in 0.9.8j-106.61.1
  • compat-openssl098SUSE:Linux Enterprise Module for Legacy 12all versions · fixed in 0.9.8j-106.61.1
  • eco-dotnet-libssl-1.0Chainguardall versions · no fixed version listedand 2 other packages
  • edk2Ubuntu:Pro:20.04:LTSall versions · no fixed version listed
  • edk2Ubuntu:Pro:18.04:LTSall versions · no fixed version listed
  • edk2Ubuntu:Pro:16.04:LTSall versions · no fixed version listed

149 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-5678 Red Hat Product Security178 products fixed · 15 known affected

    openssl: Generating excessively long X9.42 DH keys or checking excessively long X9.42 DH keys or parameters may be very slow

    openssl as a component of Red Hat Enterprise Linux 6 · openssl-devel as a component of Red Hat Enterprise Linux 6 · openssl-perl as a component of Red Hat Enterprise Linux 6 · +12 more

  • RHBA-2024:3964 Red Hat Product Security16 products fixed

    Red Hat Bug Fix Advisory: OpenShift sandboxed containers 1.6.0 update

  • RHSA-2024:2447 Red Hat Product Security49 products fixed

    Red Hat Security Advisory: openssl and openssl-fips-provider security update

  • ICSA-24-102-07 CISA1 known affected

    Siemens SINEC NMS

    SINEC NMS

  • RHSA-2024:1316 Red Hat Product Security15 products fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.57 SP3 security update

  • RHSA-2024:1317 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.57 SP3 security update

6 more advisories

Full record on NVD

Fix

  1. Update OpenSSL to 3.1.5 · 3.0.13 · 1.1.1x · 1.0.2zj
  2. Vendor fix Red Hat Product Security RHBA-2024:3964 · 16 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2024:2447 · 49 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 For the update to take effect, all services linked to the OpenSSL library must be restarted, or the system rebooted.
  4. Vendor fix CISA ICSA-24-102-07 · 1 productUpdate to V2.0 SP2 or later version
  5. Vendor fix Red Hat Product Security RHSA-2024:1316 · 15 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2024:1317 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).
  7. Vendor fix Red Hat Product Security RHSA-2024:1325 · 1 productBefore applying the update, back up your existing Red Hat JBoss Web Server installation, including all applications and configuration files. The References section of this erratum contains a download link for the update. You must be logged in to download the update.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
2023-11-06
Last modified
2026-10-14
NVD status
Modified
GitHub advisory
GHSA-2cj7-mg3x-9mhq

Frequently asked questions

What is CVE-2023-5678?

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.

Is CVE-2023-5678 actively exploited?

Active exploitation of CVE-2023-5678 has not been confirmed. Its EPSS score was 5.1% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-5678?

CVE-2023-5678 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

Running OpenSSL? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record