CVE-2024-0727PKCS12 Decoding crashes
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | edk2 | Fixed | 2024.02-2ubuntu0.6 | UBUNTU-CVE-2024-0727 |
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Fixed | 3.0.10-1ubuntu4 | UBUNTU-CVE-2024-0727 |
| Ubuntu 22.04 | edk2 | Fixed | 2022.02-3ubuntu0.22.04.4 | UBUNTU-CVE-2024-0727 |
| Ubuntu 22.04 | nodejs | Fix pending | UBUNTU-CVE-2024-0727 | |
| Ubuntu 22.04 | openssl | Fixed | 3.0.2-0ubuntu1.14 | UBUNTU-CVE-2024-0727 |
| Ubuntu 20.04 | edk2 | Fix pending | UBUNTU-CVE-2024-0727 | |
| Ubuntu 20.04 | openssl | Fixed | 1.1.1f-1ubuntu2.21 | UBUNTU-CVE-2024-0727 |
| Ubuntu 18.04 | edk2 | Fix pending | UBUNTU-CVE-2024-0727 | |
| Ubuntu 18.04 | openssl | Fix pending | 1.1.1-1ubuntu2.1~18.04.23+esm4 (Ubuntu Pro) | UBUNTU-CVE-2024-0727 |
| Ubuntu 18.04 | openssl1.0 | Fix pending | 1.0.2n-1ubuntu5.13+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-0727 |
| Ubuntu 16.04 | edk2 | Fix pending | UBUNTU-CVE-2024-0727 | |
| Ubuntu 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | openssl | Fix pending | 1.0.2g-1ubuntu4.20+esm11 (Ubuntu Pro) | UBUNTU-CVE-2024-0727 |
| Ubuntu 14.04 | edk2 | Fix pending | ||
| Ubuntu 14.04 | openssl | Fix pending | 1.0.1f-1ubuntu2.27+esm10 (Ubuntu Pro) | UBUNTU-CVE-2024-0727 |
| Debian 14 | openssl | Fixed | 3.1.5-1 | DEBIAN-CVE-2024-0727 |
| Debian 13 | openssl | Fixed | 3.1.5-1 | DEBIAN-CVE-2024-0727 |
| Debian 12 | openssl | Fixed | 3.0.13-1~deb12u1 | DEBIAN-CVE-2024-0727 |
| Red Hat Enterprise Linux 9 | compat-openssl11 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | edk2 | Fixed | 0:20240524-6.el9_5 | RHSA-2024:9088 |
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Fixed | 0:20240524-6.el9_5 | RHSA-2024:9088 |
| Red Hat Enterprise Linux 9 | edk2-ovmf | Fixed | 0:20240524-6.el9_5 | RHSA-2024:9088 |
| Red Hat Enterprise Linux 9 | edk2-tools | Fixed | 0:20240524-6.el9_5 | RHSA-2024:9088 |
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Fixed | 0:20240524-6.el9_5 | RHSA-2024:9088 |
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.0.7-27.el9 | RHSA-2024:2447 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.0.7-27.el9 | RHSA-2024:2447 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.0.7-27.el9 | RHSA-2024:2447 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.0.7-27.el9 | RHSA-2024:2447 |
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | edk2 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | openssl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl-static | Will not fix Out of support scope | ||
| AlmaLinux 9 | edk2-aarch64 | Fixed | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux 9 | edk2-ovmf | Fixed | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux 9 | edk2-tools | Fixed | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux 9 | edk2-tools-doc | Fixed | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux 9 | openssl | Fixed | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| Rocky Linux 9 | edk2 | Fixed | 0:20240524-6.el9_5.3 | RLSA-2024:9088 |
| Alpine Linux 3.24 | openssl | Fixed | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine Linux 3.23 | openssl | Fixed | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine Linux 3.22 | openssl | Fixed | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine Linux 3.21 | openssl | Fixed | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine Linux 3.20 | openssl | Fixed | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine Linux 3.19 | openssl | Fixed | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine Linux 3.18 | openssl | Fixed | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine Linux 3.17 | openssl | Fixed | 3.0.12-r4 | ALPINE-CVE-2024-0727 |
| PyPI library | cryptography | Fixed | 42.0.2 | GHSA-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.
- OpenSSL: affected: 3.2.0 to before 3.2.1, 3.1.0 to before 3.1.5, 3.0.0 to before 3.0.13, 1.1.1 to before 1.1.1x, 1.0.2 to before 1.0.2zj; fixed in
3.2.1,3.1.5,3.0.13,1.1.1x,1.0.2zj
Vendor advisories:
- https://www.openssl.org/news/secadv/20240125.txt (vendor-advisory)
- https://github.com/openssl/openssl/commit/775acfdbd0c6af9ac855f34969cdab0c0c90844a (patch)
- https://github.com/openssl/openssl/commit/d135eeab8a5dbf72b3da5240bab9ddb7678dbd2c (patch)
- https://github.com/openssl/openssl/commit/09df4395b5071217b76dc7d3d2e630eb8c5a79c2 (patch)
- https://github.openssl.org/openssl/extended-releases/commit/03b3941d60c4bce58fab69a0c2237… (patch)
- https://github.openssl.org/openssl/extended-releases/commit/aebaa5883e31122b404e450732dc8… (patch)
References
- https://www.openssl.org/news/secadv/20240125.txt
- https://github.com/openssl/openssl/commit/775acfdbd0c6af9ac855f34969cdab0c0c90844a
- https://github.com/openssl/openssl/commit/d135eeab8a5dbf72b3da5240bab9ddb7678dbd2c
- https://github.com/openssl/openssl/commit/09df4395b5071217b76dc7d3d2e630eb8c5a79c2
- https://github.openssl.org/openssl/extended-releases/commit/03b3941d60c4bce58fab69a0c22377ab439bc0e8
- https://github.openssl.org/openssl/extended-releases/commit/aebaa5883e31122b404e450732dc833dc9dee539
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.