Skip to content
Fencer Vulns
medium 5.3

CVE-2023-5678 json

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

published 2023-11-06 3 y ago modified 2026-10-14 25 d ago also EUVD-2023-57969 , GHSA-2cj7-mg3x-9mhq , JLSEC-2026-244

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
5.1%
EPSS 5.1% chance of exploitation in 30 days, percentile 92%
public exploits
0
none known

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.

Patch / fix

  • julia OpenSSL_jll 3.0.13+0
  • julia Openresty_jll 1.27.1+0
  • OpenSSL OpenSSL 1.0.2zj, 1.1.1x, 3.0.13, 3.1.5
  • Siemens SIDIS Prime V4.0.700
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem V1.1, V1.1.1
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • Siemens SINEC NMS V3.0 SP1
  • openssl Debian 12 3.0.13-1~deb12u1
  • openssl Debian 14, Debian 13 3.0.12-2

debian advisories DEBIAN-CVE-2023-5678

  • edk2 Ubuntu 22.04 LTS 2022.02-3ubuntu0.22.04.4
  • edk2 Ubuntu 24.04 LTS 2024.02-2ubuntu0.6
  • openssl Ubuntu 20.04 LTS 1.1.1f-1ubuntu2.21
  • openssl Ubuntu 22.04 LTS 3.0.2-0ubuntu1.14
  • openssl Ubuntu 24.04 LTS 3.0.10-1ubuntu4
  • openssl Ubuntu Pro 16.04 LTS 1.0.2g-1ubuntu4.20+esm11
  • openssl Ubuntu Pro FIPS-updates 16.04 LTS 1.0.2g-1ubuntu4.fips.4.20.11
  • openssl Ubuntu Pro 18.04 LTS 1.1.1-1ubuntu2.1~18.04.23+esm4

ubuntu advisories UBUNTU-CVE-2023-5678

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • jws5-tomcat jboss enterprise web server 5.7 9.0.62-41.redhat_00020.1.el7jws
  • jws5-tomcat jboss enterprise web server 5.7 9.0.62-41.redhat_00020.1.el8jws
  • jws5-tomcat jboss enterprise web server 5.7 9.0.62-41.redhat_00020.1.el9jws
  • jws5-tomcat-lib jboss enterprise web server 5.7 9.0.62-41.redhat_00020.1.el7jws
  • jws5-tomcat-lib jboss enterprise web server 5.7 9.0.62-41.redhat_00020.1.el8jws
  • jws5-tomcat-lib jboss enterprise web server 5.7 9.0.62-41.redhat_00020.1.el9jws
  • jws5-tomcat-native jboss enterprise web server 5.7 1.2.31-17.redhat_17.el7jws
  • jws5-tomcat-native jboss enterprise web server 5.7 1.2.31-17.redhat_17.el8jws

red hat advisories RHSA-2024:1318RHSA-2024:2447RHSA-2024:1316RHSA-2023:7877RHSA-2024:0208RHSA-2024:0154

  • openssl-3 SLE Module for Basesystem 15 SP4, SLE Micro 5.4, SLE Micro 5.3 +3 more 3.0.8-150400.4.42.1
  • openssl-3 SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 3.0.8-150500.5.19.1
  • compat-openssl098 SLES for SAP 12 SP5, SLE Module for Legacy 12 0.9.8j-106.61.1
  • openssl-1_1 SLE Module for Basesystem 15 SP4, SLE Micro 5.4, SLE Micro 5.3 +3 more 1.1.1l-150400.7.60.2
  • openssl-1_0_0 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.0.2p-3.87.1
  • openssl-1_0_0 SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES for SAP 15 SP1 +10 more 1.0.2p-150000.3.88.1
  • openssl-1_1 SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.1.1d-2.101.1
  • openssl-1_1 SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +7 more 1.1.1d-150200.11.82.1

suse advisories SUSE-SU-2023:4919-1SUSE-SU-2023:4918-1SUSE-SU-2023:4649-1SUSE-SU-2023:4635-1SUSE-SU-2023:4593-1SUSE-SU-2023:4524-1

  • openssl-1_0_0 openSUSE Tumbleweed 1.0.2u-23.1
  • openssl-1_1 openSUSE Tumbleweed 1.1.1w-4.1
  • openssl-3 openSUSE Tumbleweed 3.1.4-2.1

opensuse advisories openSUSE-SU-2024:13428-1openSUSE-SU-2024:13437-1openSUSE-SU-2024:13438-1

  • openssl AlmaLinux 9 1:3.0.7-27.el9
  • openssl-libs AlmaLinux 9 1:3.0.7-27.el9
  • openssl-perl AlmaLinux 9 1:3.0.7-27.el9
  • openssl AlmaLinux 8 1:1.1.1k-12.el8_9
  • openssl-libs AlmaLinux 8 1:1.1.1k-12.el8_9
  • openssl-perl AlmaLinux 8 1:1.1.1k-12.el8_9

almalinux advisories ALSA-2024:2447ALSA-2023:7877

  • openssl Rocky Linux 8 1:1.1.1k-12.el8_9

rocky linux advisories RLSA-2023:7877

  • openssl Alpine 3.16, Alpine 3.15 1.1.1w-r1
  • openssl Alpine 3.17 3.0.12-r1
  • openssl Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 3.1.4-r1

alpine advisories ALPINE-CVE-2023-5678

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • edk2 CBL-Mariner 2.0, Azure Linux 3.0 20230301gitf80f052277c8-38
  • openssl CBL-Mariner 2.0, Azure Linux 3.0 1.1.1k-28
  • hvloader CBL-Mariner 2.0 1.0.1-9
  • kata-containers Azure Linux 3.0 3.2.0.azl1-1
  • cloud-hypervisor-cvm CBL-Mariner 2.0, Azure Linux 3.0 38.0.72.2-1

azure linux advisories AZL-31872AZL-31880AZL-34666AZL-35084AZL-37740AZL-39659

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-5678 updated cvss 5.3

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

  • Red Hat Enterprise Linux 6 openssl, openssl-perl
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 7 openssl, openssl-libs, openssl-perl Red Hat Enterprise Linux 8 compat-openssl10 Red Hat Enterprise Linux 9 compat-openssl11
    affected: workaround, no fix available “Fix deferred”
  • Red Hat JWS 5.7.8
    fixed: vendor fix RHSA-2024:1319
  • Red Hat JWS 6.0.1
    fixed: vendor fix RHSA-2024:1325
  • Red Hat Enterprise Linux AppStream (v. 9) openssl-perl 3.0.7-27.el9
    fixed: vendor fix RHSA-2024:2447
  • Red Hat Enterprise Linux BaseOS (v. 8) openssl 1.1.1k-12.el8_9, openssl-libs 1.1.1k-12.el8_9, openssl-perl 1.1.1k-12.el8_9
    fixed: vendor fix RHSA-2023:7877
  • Red Hat Enterprise Linux BaseOS (v. 9) openssl 3.0.7-27.el9, openssl-libs 3.0.7-27.el9
    fixed: vendor fix RHSA-2024:2447
  • Red Hat Enterprise Linux BaseOS EUS (v.8.6) openssl 1.1.1k-12.el8_6, openssl-libs 1.1.1k-12.el8_6, openssl-perl 1.1.1k-12.el8_6
    fixed: vendor fix RHSA-2024:0208
show 5 more
  • Red Hat Enterprise Linux BaseOS EUS (v.8.8) openssl 1.1.1k-12.el8_8, openssl-libs 1.1.1k-12.el8_8, openssl-perl 1.1.1k-12.el8_8
    fixed: vendor fix RHSA-2024:0154
  • Red Hat JBoss Core Services
    fixed: vendor fix RHSA-2024:1317
  • Red Hat JBoss Core Services on RHEL 7 Server jbcs-httpd24-openssl 1.1.1k-17.el7jbcs, jbcs-httpd24-openssl-libs 1.1.1k-17.el7jbcs, jbcs-httpd24-openssl-perl 1.1.1k-17.el7jbcs Red Hat JBoss Core Services on RHEL 8 jbcs-httpd24-openssl 1.1.1k-17.el8jbcs, jbcs-httpd24-openssl-libs 1.1.1k-17.el8jbcs, jbcs-httpd24-openssl-perl 1.1.1k-17.el8jbcs
    fixed: vendor fix RHSA-2024:1316
  • Red Hat JBoss Web Server 5.7 for RHEL 7 Server jws5-tomcat-native 1.2.31-17.redhat_17.el7jws Red Hat JBoss Web Server 5.7 for RHEL 8 jws5-tomcat-native 1.2.31-17.redhat_17.el8jws Red Hat JBoss Web Server 5.7 for RHEL 9 jws5-tomcat-native 1.2.31-17.redhat_17.el9jws
    fixed: vendor fix RHSA-2024:1318
  • Red Hat Cryostat 2 openssl Red Hat Enterprise Linux BaseOS (v. 9) openssl-fips-provider 3.0.7-2.el9 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-libcurl 8.6.0-3.el7jbcs, jbcs-httpd24-mod_md 2.4.24-4.el7jbcs, jbcs-httpd24-mod_ssl 2.4.57-9.el7jbcs, jbcs-httpd24-mod_ldap 2.4.57-9.el7jbcs, +20 more 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-libcurl 8.6.0-3.el8jbcs, jbcs-httpd24-mod_md 2.4.24-4.el8jbcs, jbcs-httpd24-mod_ssl 2.4.57-9.el8jbcs, jbcs-httpd24-mod_ldap 2.4.57-9.el8jbcs, +20 more Red Hat JBoss Web Server 5.7 for RHEL 7 Server jws5-tomcat 9.0.62-41.redhat_00020.1.el7jws, jws5-tomcat-lib 9.0.62-41.redhat_00020.1.el7jws, jws5-tomcat-javadoc 9.0.62-41.redhat_00020.1.el7jws, jws5-tomcat-selinux 9.0.62-41.redhat_00020.1.el7jws, jws5-tomcat-webapps 9.0.62-41.redhat_00020.1.el7jws, jws5-tomcat-java-jdk8 9.0.62-41.redhat_00020.1.el7jws, +6 more Red Hat JBoss Web Server 5.7 for RHEL 8 jws5-tomcat 9.0.62-41.redhat_00020.1.el8jws, jws5-tomcat-lib 9.0.62-41.redhat_00020.1.el8jws, jws5-tomcat-javadoc 9.0.62-41.redhat_00020.1.el8jws, jws5-tomcat-selinux 9.0.62-41.redhat_00020.1.el8jws, jws5-tomcat-webapps 9.0.62-41.redhat_00020.1.el8jws, jws5-tomcat-el-3.0-api 9.0.62-41.redhat_00020.1.el8jws, +4 more
    +1 more products
    Red Hat JBoss Web Server 5.7 for RHEL 9 jws5-tomcat 9.0.62-41.redhat_00020.1.el9jws, jws5-tomcat-lib 9.0.62-41.redhat_00020.1.el9jws, jws5-tomcat-javadoc 9.0.62-41.redhat_00020.1.el9jws, jws5-tomcat-selinux 9.0.62-41.redhat_00020.1.el9jws, jws5-tomcat-webapps 9.0.62-41.redhat_00020.1.el9jws, jws5-tomcat-el-3.0-api 9.0.62-41.redhat_00020.1.el9jws, +4 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-24-102-01 updated cvss 5.3

Siemens SIMATIC S7-1500 TM MFP

  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
    affected: mitigation, no fix available

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-25-226-15 updated

Siemens SINEC OS

  • Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family
    not affected

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-23-348-10 updated cvss 5.3

Siemens SIMATIC S7-1500

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5
    affected: fixed in V3.1.5, mitigation support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-25-044-09 updated cvss 5.3

Siemens SCALANCE W700 IEEE 802.11ax

  • Siemens SCALANCE WAB762-1 (6GK5762-1AJ00-6AA0) <V3.0.0 Siemens SCALANCE WAM763-1 (6GK5763-1AL00-7DA0) <V3.0.0 Siemens SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) <V3.0.0 Siemens SCALANCE WAM763-1 (US) (6GK5763-1AL00-7DB0) <V3.0.0 Siemens SCALANCE WAM766-1 (6GK5766-1GE00-7DA0) <V3.0.0 Siemens SCALANCE WAM766-1 (ME) (6GK5766-1GE00-7DC0) <V3.0.0
    +13 more products
    Siemens SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0) <V3.0.0 Siemens SCALANCE WAM766-1 EEC (6GK5766-1GE00-7TA0) <V3.0.0 Siemens SCALANCE WAM766-1 EEC (ME) (6GK5766-1GE00-7TC0) <V3.0.0 Siemens SCALANCE WAM766-1 EEC (US) (6GK5766-1GE00-7TB0) <V3.0.0 Siemens SCALANCE WUB762-1 (6GK5762-1AJ00-1AA0) <V3.0.0 Siemens SCALANCE WUB762-1 iFeatures (6GK5762-1AJ00-2AA0) <V3.0.0 Siemens SCALANCE WUM763-1 (6GK5763-1AL00-3AA0) <V3.0.0 Siemens SCALANCE WUM763-1 (6GK5763-1AL00-3DA0) <V3.0.0 Siemens SCALANCE WUM763-1 (US) (6GK5763-1AL00-3AB0) <V3.0.0 Siemens SCALANCE WUM763-1 (US) (6GK5763-1AL00-3DB0) <V3.0.0 Siemens SCALANCE WUM766-1 (6GK5766-1GE00-3DA0) <V3.0.0 Siemens SCALANCE WUM766-1 (ME) (6GK5766-1GE00-3DC0) <V3.0.0 Siemens SCALANCE WUM766-1 (USA) (6GK5766-1GE00-3DB0) <V3.0.0
    affected: fixed in V3.0.0 support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-25-100-02 updated cvss 5.3

Siemens SIDIS Prime

  • Siemens SIDIS Prime <V4.0.700
    affected: fixed in V4.0.700

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-24-137-07 updated cvss 5.3

Siemens SIMATIC RTLS Locating Manager

  • Siemens SIMATIC RTLS Locating Manager (6GT2780-0DA00) <V3.0.1.1 Siemens SIMATIC RTLS Locating Manager (6GT2780-0DA10) <V3.0.1.1 Siemens SIMATIC RTLS Locating Manager (6GT2780-0DA20) <V3.0.1.1 Siemens SIMATIC RTLS Locating Manager (6GT2780-0DA30) <V3.0.1.1 Siemens SIMATIC RTLS Locating Manager (6GT2780-1EA10) <V3.0.1.1 Siemens SIMATIC RTLS Locating Manager (6GT2780-1EA20) <V3.0.1.1
    +1 more products
    Siemens SIMATIC RTLS Locating Manager (6GT2780-1EA30) <V3.0.1.1
    affected: fixed in V3.0.1.1, mitigation

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-24-165-04 updated cvss 5.3

Siemens ST7 ScadaConnect

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

cisa ICSA-23-166-11 updated cvss 5.3

Siemens SIMATIC S7-1500 TM MFP Linux Kernel

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
11 mo ago

Exploit prediction

5.09% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
OSV 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
julia OpenSSL_jll
<3.0.13+0
3.0.13+0
julia Openresty_jll
<1.27.1+0
1.27.1+0

Affected products

  • OpenSSL OpenSSL
  • Siemens RUGGEDCOM RST2428P
  • Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family
  • Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family
  • Siemens SIDIS Prime
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
  • Siemens SINEC NMS

Classification

Weakness
  • CWE-606 Unchecked Input for Loop Condition
  • CWE-754 Improper Check for Unusual or Exceptional Conditions
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.