QID 356780

Date Published: 2023-12-06

QID 356780: Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL) : ALAS-2023-1891

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. (
( CVE-2023-5678)



Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Medium - 5.3 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS-2023-1891 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356780

    Software Advisories
    Advisory ID Software Component Link
    ALAS-2023-1891 amazon linux URL Logo alas.aws.amazon.com/ALAS-2023-1891.html