Vulnerability · Published Jan 26, 2024 · Assigned by openssl
CVE-2024-0727PKCS12 Decoding crashes
Medium 5.5
In plain English
A medium-severity null pointer dereference in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | edk2-aarch64 | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | edk2-ovmf | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | edk2-tools | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | edk2-tools-doc | 20240524-6.el9_5 | ALSA-2024:9088 |
| AlmaLinux:9 | openssl | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux:9 | openssl-devel | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux:9 | openssl-libs | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| AlmaLinux:9 | openssl-perl | 1:3.0.7-27.el9 | ALSA-2024:2447 |
| Alpine:v3.20 | openssl | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine:v3.21 | openssl | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine:v3.22 | openssl | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine:v3.23 | openssl | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Alpine:v3.24 | openssl | 3.1.4-r5 | ALPINE-CVE-2024-0727 |
| Debian:12 | openssl | 3.0.13-1~deb12u1 | DEBIAN-CVE-2024-0727 |
| Debian:13 | openssl | 3.1.5-1 | DEBIAN-CVE-2024-0727 |
| Debian:14 | openssl | 3.1.5-1 | DEBIAN-CVE-2024-0727 |
| PyPI | cryptography | 42.0.2 | GHSA-9v9h-cgj8-h64p |
| PyPI | cryptography | 42.0.2 | PYSEC-2026-1285 |
| Rocky Linux:9 | edk2 | 0:20240524-6.el9_5.3 | RLSA-2024:9088 |
| Ubuntu:22.04:LTS | edk2 | 2022.02-3ubuntu0.22.04.4 | USN-7894-1 |
| Ubuntu:22.04:LTS | edk2 | 2022.02-3ubuntu0.22.04.4 | UBUNTU-CVE-2024-0727 |
| Ubuntu:24.04:LTS | edk2 | 2024.02-2ubuntu0.6 | USN-7894-1 |
| Ubuntu:24.04:LTS | edk2 | 2024.02-2ubuntu0.6 | UBUNTU-CVE-2024-0727 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.14 | UBUNTU-CVE-2024-0727 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.14 | USN-6622-1 |
| Ubuntu:24.04:LTS | openssl | 3.0.10-1ubuntu4 | UBUNTU-CVE-2024-0727 |
Affected products (as reported)
Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References
- OpenSSL Advisory vendor-advisory
- 3.2.1 git commit patch
- 3.1.5 git commit patch
- 3.0.13 git commit patch
- 1.1.1x git commit patch
- 1.0.2zj git commit patch
- https://security.netapp.com/advisory/ntap-20240208-0006/ x_transferred
- http://www.openwall.com/lists/oss-security/2024/03/11/1 x_transferred
- https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html
- https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html
- https://cert-portal.siemens.com/productcert/html/ssa-915275.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- https://cert-portal.siemens.com/productcert/html/ssa-277137.html