CVE-2023-5678
Last modified
CVE-2023-5678 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 4.46% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Openssl | Openssl | >= 1.0.2, < 1.0.2zj |
| Openssl | Openssl | >= 1.1.1, < 1.1.1x |
| Openssl | Openssl | >= 3.0.0, < 3.0.13 |
| Openssl | Openssl | >= 3.1.0, < 3.1.5 |
References
- https://www.openssl.org/news/secadv/20231106.txtVendor Advisory
- https://www.openssl.org/news/secadv/20231106.txtVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-5678?
How severe is CVE-2023-5678?
How do I fix CVE-2023-5678?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-5672The WP Mail Log WordPress plugin before 1.1.3 does not prope…6.5
- CVE-2023-5673The WP Mail Log WordPress plugin before 1.1.3 does not prope…8.8
- CVE-2023-5674The WP Mail Log WordPress plugin before 1.1.3 does not prope…8.8
- CVE-2023-5675A flaw was found in Quarkus. When a Quarkus RestEasy Classic…6.5
- CVE-2023-5676In Eclipse OpenJ9 before version 0.41.0, the JVM can be forc…5.9
- CVE-2023-5677Brandon Rothel from QED Secure Solutions and Sam Hanson of D…8.8
- CVE-2023-5679A bad interaction between DNS64 and serve-stale may cause `n…7.5
- CVE-2023-5680If a resolver cache has a very large number of ECS records s…5.3
- CVE-2023-5681A vulnerability, which was classified as critical, was found…7.2
- CVE-2023-5682A vulnerability has been found in Tongda OA 2017 and classif…9.8
- CVE-2023-5683A vulnerability was found in Byzoro Smart S85F Management Pl…9.8
- CVE-2023-5684A vulnerability was found in Byzoro Smart S85F Management Pl…9.8
Are you affected by CVE-2023-5678?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
