CVEfocus › CVE database › CVE-2024-0727

CVE-2024-0727PKCS12 Decoding crashes

CVSS 5.5 MediumEPSS 3.4% (higher than 90% of CVEs)Published 2024-01-26Updated 2026-10-15Assigner: openssl

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.

CWE-476

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, PyPI, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

35Fixed
16Fix pending
12Will not fix
13Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04edk2Not affected
vulnerable_code_not_present
Ubuntu 26.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 25.10edk2Not affected
vulnerable_code_not_present
Ubuntu 25.10nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04edk2Fixed2024.02-2ubuntu0.6UBUNTU-CVE-2024-0727
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04opensslFixed3.0.10-1ubuntu4UBUNTU-CVE-2024-0727
Ubuntu 22.04edk2Fixed2022.02-3ubuntu0.22.04.4UBUNTU-CVE-2024-0727
Ubuntu 22.04nodejsFix pendingUBUNTU-CVE-2024-0727
Ubuntu 22.04opensslFixed3.0.2-0ubuntu1.14UBUNTU-CVE-2024-0727
Ubuntu 20.04edk2Fix pendingUBUNTU-CVE-2024-0727
Ubuntu 20.04opensslFixed1.1.1f-1ubuntu2.21UBUNTU-CVE-2024-0727
Ubuntu 18.04edk2Fix pendingUBUNTU-CVE-2024-0727
Ubuntu 18.04opensslFix pending1.1.1-1ubuntu2.1~18.04.23+esm4 (Ubuntu Pro)UBUNTU-CVE-2024-0727
Ubuntu 18.04openssl1.0Fix pending1.0.2n-1ubuntu5.13+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-0727
Ubuntu 16.04edk2Fix pendingUBUNTU-CVE-2024-0727
Ubuntu 16.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 16.04opensslFix pending1.0.2g-1ubuntu4.20+esm11 (Ubuntu Pro)UBUNTU-CVE-2024-0727
Ubuntu 14.04edk2Fix pending
Ubuntu 14.04opensslFix pending1.0.1f-1ubuntu2.27+esm10 (Ubuntu Pro)UBUNTU-CVE-2024-0727
Debian 14opensslFixed3.1.5-1DEBIAN-CVE-2024-0727
Debian 13opensslFixed3.1.5-1DEBIAN-CVE-2024-0727
Debian 12opensslFixed3.0.13-1~deb12u1DEBIAN-CVE-2024-0727
Red Hat Enterprise Linux 9compat-openssl11Fix pending
Fix deferred
Red Hat Enterprise Linux 9edk2Fixed0:20240524-6.el9_5RHSA-2024:9088
Red Hat Enterprise Linux 9edk2-aarch64Fixed0:20240524-6.el9_5RHSA-2024:9088
Red Hat Enterprise Linux 9edk2-ovmfFixed0:20240524-6.el9_5RHSA-2024:9088
Red Hat Enterprise Linux 9edk2-toolsFixed0:20240524-6.el9_5RHSA-2024:9088
Red Hat Enterprise Linux 9edk2-tools-docFixed0:20240524-6.el9_5RHSA-2024:9088
Red Hat Enterprise Linux 9opensslFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9openssl-develFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9openssl-libsFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9openssl-perlFixed1:3.0.7-27.el9RHSA-2024:2447
Red Hat Enterprise Linux 9shimNot affected
Red Hat Enterprise Linux 9shim-aa64Not affected
Red Hat Enterprise Linux 9shim-x64Not affected
Red Hat Enterprise Linux 8compat-openssl10Fix pending
Fix deferred
Red Hat Enterprise Linux 8edk2Will not fix
Will not fix
Red Hat Enterprise Linux 8edk2-aarch64Will not fix
Will not fix
Red Hat Enterprise Linux 8edk2-ovmfWill not fix
Will not fix
Red Hat Enterprise Linux 8opensslFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-develFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-perlFix pending
Fix deferred
Red Hat Enterprise Linux 8openssl-staticFix pending
Fix deferred
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 8shim-aa64Not affected
Red Hat Enterprise Linux 8shim-ia32Not affected
Red Hat Enterprise Linux 8shim-x64Not affected
Red Hat Enterprise Linux 7opensslWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-perlWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssl-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6opensslWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssl-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssl-perlWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssl-staticWill not fix
Out of support scope
AlmaLinux 9edk2-aarch64Fixed20240524-6.el9_5ALSA-2024:9088
AlmaLinux 9edk2-ovmfFixed20240524-6.el9_5ALSA-2024:9088
AlmaLinux 9edk2-toolsFixed20240524-6.el9_5ALSA-2024:9088
AlmaLinux 9edk2-tools-docFixed20240524-6.el9_5ALSA-2024:9088
AlmaLinux 9opensslFixed1:3.0.7-27.el9ALSA-2024:2447
AlmaLinux 9openssl-develFixed1:3.0.7-27.el9ALSA-2024:2447
AlmaLinux 9openssl-libsFixed1:3.0.7-27.el9ALSA-2024:2447
AlmaLinux 9openssl-perlFixed1:3.0.7-27.el9ALSA-2024:2447
Rocky Linux 9edk2Fixed0:20240524-6.el9_5.3RLSA-2024:9088
Alpine Linux 3.24opensslFixed3.1.4-r5ALPINE-CVE-2024-0727
Alpine Linux 3.23opensslFixed3.1.4-r5ALPINE-CVE-2024-0727
Alpine Linux 3.22opensslFixed3.1.4-r5ALPINE-CVE-2024-0727
Alpine Linux 3.21opensslFixed3.1.4-r5ALPINE-CVE-2024-0727
Alpine Linux 3.20opensslFixed3.1.4-r5ALPINE-CVE-2024-0727
Alpine Linux 3.19opensslFixed3.1.4-r5ALPINE-CVE-2024-0727
Alpine Linux 3.18opensslFixed3.1.4-r5ALPINE-CVE-2024-0727
Alpine Linux 3.17opensslFixed3.0.12-r4ALPINE-CVE-2024-0727
PyPI librarycryptographyFixed42.0.2GHSA-9v9h-cgj8-h64p

What the vendor says

As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.