QID 520014

Date Published: 2024-03-13

QID 520014: Open Secure Sockets Layer (OpenSSL) NULL Pointer Dereference Vulnerability (CVE-2024-0727)

OpenSSL is a software library for applications that secure communications over computer networks against eavesdropping or need to identify the party at the other end.

While processing a maliciously formatted PKCS12 file may lead OpenSSL to crash leading to a potential Denial of Service (DoS) attack. Applications loading files in the PKCS12 format from untrusted sources might terminate abruptly. A file in PKCS12 format can contain certificates and keys and may come from an untrusted source. The PKCS12 specification allows certain fields to be NULL, but OpenSSL does not correctly check for this case. This can lead to a NULL pointer dereference that results in OpenSSL crashing. If an application processes PKCS12 files from an untrusted source using the OpenSSL APIs then that application will be vulnerable to this issue. OpenSSL APIs that are vulnerable to this are: PKCS12_parse(), PKCS12_unpack_p7data(), PKCS12_unpack_p7encdata(), PKCS12_unpack_authsafes() and PKCS12_newpass().

Affected Versions:
OpenSSL version 1.0.2 to 1.0.2zi
OpenSSL version 1.1.1 to 1.1.1w
OpenSSL version 3.0.0 to 3.0.12
OpenSSL version 3.1.0 to 3.1.4
OpenSSL version 3.2.0

QID Detection Logic: (Unauthenticated)
This QID checks the "Server" HTTP Response header to identify vulnerable version of OpenSSL running on the target system.

Successful exploitation of this vulnerability could result in OpenSSL crashing, potentially leading to a Denial of Service (DoS) attack.

  • CVSS V3 rated as Medium - 5.5 severity.
  • CVSS V2 rated as Medium - 4.9 severity.
  • Solution
    Customers are advised to install relevant updated versions of OpenSSL:

    OpenSSL 1.0.2zj or later releases
    OpenSSL 1.1.1x or later releases
    OpenSSL 3.0.13 or later releases
    OpenSSL 3.1.5 or later releases
    OpenSSL 3.2.1 or later releases

    For more information pertaining to this vulnerability please refer OpenSSL Security Advisory.

    Vendor References

    CVEs related to QID 520014

    Software Advisories
    Advisory ID Software Component Link
    OpenSSL Security Advisory URL Logo www.openssl.org/news/secadv/20240125.txt