CVE Vulnerabilities

CVE-2024-0727

NULL Pointer Dereference

Published: Jan 26, 2024 | Modified: Nov 03, 2025
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
5.5 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

Issue summary: Processing a maliciously formatted PKCS12 file may lead OpenSSL to crash leading to a potential Denial of Service attack

Impact summary: 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().

We have also fixed a similar issue in SMIME_write_PKCS7(). However since this function is related to writing data we do not consider it security significant.

The FIPS modules in 3.2, 3.1 and 3.0 are not affected by this issue.

Weakness

The product dereferences a pointer that it expects to be valid but is NULL.

Affected Software

NameVendorStart VersionEnd Version
OpensslOpenssl1.0.2 (including)1.0.2zj (excluding)
OpensslOpenssl1.1.1 (including)1.1.1x (excluding)
OpensslOpenssl3.0.0 (including)3.0.13 (excluding)
OpensslOpenssl3.1.0 (including)3.1.5 (excluding)
OpensslOpenssl3.2.0 (including)3.2.0 (including)
Red Hat Enterprise Linux 9RedHatopenssl-1:3.0.7-27.el9*
Red Hat Enterprise Linux 9RedHatedk2-0:20240524-6.el9_5*
Red Hat Enterprise Linux 9RedHatopenssl-1:3.0.7-27.el9*
Edk2Ubuntubionic*
Edk2Ubuntuesm-infra/focal*
Edk2Ubuntufocal*
Edk2Ubuntujammy*
Edk2Ubuntulunar*
Edk2Ubuntumantic*
Edk2Ubuntunoble*
Edk2Ubuntuoracular*
Edk2Ubuntutrusty*
Edk2Ubuntuxenial*
NodejsUbuntuesm-apps/jammy*
NodejsUbuntujammy*
NodejsUbuntutrusty*
OpensslUbuntubionic*
OpensslUbuntudevel*
OpensslUbuntuesm-infra-legacy/trusty*
OpensslUbuntuesm-infra/bionic*
OpensslUbuntuesm-infra/focal*
OpensslUbuntuesm-infra/xenial*
OpensslUbuntufips-preview/jammy*
OpensslUbuntufips-updates/bionic*
OpensslUbuntufips-updates/focal*
OpensslUbuntufips-updates/jammy*
OpensslUbuntufips-updates/xenial*
OpensslUbuntufips/bionic*
OpensslUbuntufips/focal*
OpensslUbuntufips/xenial*
OpensslUbuntufocal*
OpensslUbuntujammy*
OpensslUbuntulunar*
OpensslUbuntumantic*
OpensslUbuntunoble*
OpensslUbuntuoracular*
OpensslUbuntuplucky*
OpensslUbuntuquesting*
OpensslUbuntutrusty*
OpensslUbuntutrusty/esm*
OpensslUbuntuupstream*
OpensslUbuntuxenial*
Openssl1.0Ubuntubionic*
Openssl1.0Ubuntuesm-infra/bionic*
Openssl1.0Ubuntuupstream*

Potential Mitigations

References