Skip to content

CVE-2024-0727 PKCS12 Decoding crashes

MediumCVSS 5.5 EPSS 3.2%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
pypi cryptography(PyPI) < 42.0.2 42.0.2
pypi cryptography(PyPI) = 0.1 No fix listed
pypi cryptography(PyPI) = 0.2 No fix listed
pypi cryptography(PyPI) = 0.2.1 No fix listed
pypi cryptography(PyPI) = 0.2.2 No fix listed
pypi cryptography(PyPI) = 0.3 No fix listed
pypi cryptography(PyPI) = 0.4 No fix listed
pypi cryptography(PyPI) = 0.5 No fix listed
pypi cryptography(PyPI) = 0.5.1 No fix listed
pypi cryptography(PyPI) = 0.5.2 No fix listed
pypi cryptography(PyPI) = 0.5.3 No fix listed
pypi cryptography(PyPI) = 0.5.4 No fix listed
pypi cryptography(PyPI) = 0.6 No fix listed
pypi cryptography(PyPI) = 0.6.1 No fix listed
pypi cryptography(PyPI) = 0.7 No fix listed
pypi cryptography(PyPI) = 0.7.1 No fix listed
pypi cryptography(PyPI) = 0.7.2 No fix listed
pypi cryptography(PyPI) = 0.8 No fix listed
pypi cryptography(PyPI) = 0.8.1 No fix listed
pypi cryptography(PyPI) = 0.8.2 No fix listed
pypi cryptography(PyPI) = 0.9 No fix listed
pypi cryptography(PyPI) = 0.9.1 No fix listed
pypi cryptography(PyPI) = 0.9.2 No fix listed
pypi cryptography(PyPI) = 0.9.3 No fix listed
pypi cryptography(PyPI) = 1.0 No fix listed
Show 132 more
ProductAffected versionsFixed in
pypi cryptography(PyPI) = 1.0.1 No fix listed
pypi cryptography(PyPI) = 1.0.2 No fix listed
pypi cryptography(PyPI) = 1.1 No fix listed
pypi cryptography(PyPI) = 1.1.1 No fix listed
pypi cryptography(PyPI) = 1.1.2 No fix listed
pypi cryptography(PyPI) = 1.2 No fix listed
pypi cryptography(PyPI) = 1.2.1 No fix listed
pypi cryptography(PyPI) = 1.2.2 No fix listed
pypi cryptography(PyPI) = 1.2.3 No fix listed
pypi cryptography(PyPI) = 1.3 No fix listed
pypi cryptography(PyPI) = 1.3.1 No fix listed
pypi cryptography(PyPI) = 1.3.2 No fix listed
pypi cryptography(PyPI) = 1.3.3 No fix listed
pypi cryptography(PyPI) = 1.3.4 No fix listed
pypi cryptography(PyPI) = 1.4 No fix listed
pypi cryptography(PyPI) = 1.5 No fix listed
pypi cryptography(PyPI) = 1.5.1 No fix listed
pypi cryptography(PyPI) = 1.5.2 No fix listed
pypi cryptography(PyPI) = 1.5.3 No fix listed
pypi cryptography(PyPI) = 1.6 No fix listed
pypi cryptography(PyPI) = 1.7 No fix listed
pypi cryptography(PyPI) = 1.7.1 No fix listed
pypi cryptography(PyPI) = 1.7.2 No fix listed
pypi cryptography(PyPI) = 1.8 No fix listed
pypi cryptography(PyPI) = 1.8.1 No fix listed
pypi cryptography(PyPI) = 1.8.2 No fix listed
pypi cryptography(PyPI) = 1.9 No fix listed
pypi cryptography(PyPI) = 2.0 No fix listed
pypi cryptography(PyPI) = 2.0.1 No fix listed
pypi cryptography(PyPI) = 2.0.2 No fix listed
pypi cryptography(PyPI) = 2.0.3 No fix listed
pypi cryptography(PyPI) = 2.1 No fix listed
pypi cryptography(PyPI) = 2.1.1 No fix listed
pypi cryptography(PyPI) = 2.1.2 No fix listed
pypi cryptography(PyPI) = 2.1.3 No fix listed
pypi cryptography(PyPI) = 2.1.4 No fix listed
pypi cryptography(PyPI) = 2.2 No fix listed
pypi cryptography(PyPI) = 2.2.1 No fix listed
pypi cryptography(PyPI) = 2.2.2 No fix listed
pypi cryptography(PyPI) = 2.3 No fix listed
pypi cryptography(PyPI) = 2.3.1 No fix listed
pypi cryptography(PyPI) = 2.4 No fix listed
pypi cryptography(PyPI) = 2.4.1 No fix listed
pypi cryptography(PyPI) = 2.4.2 No fix listed
pypi cryptography(PyPI) = 2.5 No fix listed
pypi cryptography(PyPI) = 2.6 No fix listed
pypi cryptography(PyPI) = 2.6.1 No fix listed
pypi cryptography(PyPI) = 2.7 No fix listed
pypi cryptography(PyPI) = 2.8 No fix listed
pypi cryptography(PyPI) = 2.9 No fix listed
pypi cryptography(PyPI) = 2.9.1 No fix listed
pypi cryptography(PyPI) = 2.9.2 No fix listed
pypi cryptography(PyPI) = 3.0 No fix listed
pypi cryptography(PyPI) = 3.1 No fix listed
pypi cryptography(PyPI) = 3.1.1 No fix listed
pypi cryptography(PyPI) = 3.2 No fix listed
pypi cryptography(PyPI) = 3.2.1 No fix listed
pypi cryptography(PyPI) = 3.3 No fix listed
pypi cryptography(PyPI) = 3.3.1 No fix listed
pypi cryptography(PyPI) = 3.3.2 No fix listed
pypi cryptography(PyPI) = 3.4 No fix listed
pypi cryptography(PyPI) = 3.4.1 No fix listed
pypi cryptography(PyPI) = 3.4.2 No fix listed
pypi cryptography(PyPI) = 3.4.3 No fix listed
pypi cryptography(PyPI) = 3.4.4 No fix listed
pypi cryptography(PyPI) = 3.4.5 No fix listed
pypi cryptography(PyPI) = 3.4.6 No fix listed
pypi cryptography(PyPI) = 3.4.7 No fix listed
pypi cryptography(PyPI) = 3.4.8 No fix listed
pypi cryptography(PyPI) = 35.0.0 No fix listed
pypi cryptography(PyPI) = 36.0.0 No fix listed
pypi cryptography(PyPI) = 36.0.1 No fix listed
pypi cryptography(PyPI) = 36.0.2 No fix listed
pypi cryptography(PyPI) = 37.0.0 No fix listed
pypi cryptography(PyPI) = 37.0.1 No fix listed
pypi cryptography(PyPI) = 37.0.2 No fix listed
pypi cryptography(PyPI) = 37.0.3 No fix listed
pypi cryptography(PyPI) = 37.0.4 No fix listed
pypi cryptography(PyPI) = 38.0.0 No fix listed
pypi cryptography(PyPI) = 38.0.1 No fix listed
pypi cryptography(PyPI) = 38.0.2 No fix listed
pypi cryptography(PyPI) = 38.0.3 No fix listed
pypi cryptography(PyPI) = 38.0.4 No fix listed
pypi cryptography(PyPI) = 39.0.0 No fix listed
pypi cryptography(PyPI) = 39.0.1 No fix listed
pypi cryptography(PyPI) = 39.0.2 No fix listed
pypi cryptography(PyPI) = 40.0.0 No fix listed
pypi cryptography(PyPI) = 40.0.1 No fix listed
pypi cryptography(PyPI) = 40.0.2 No fix listed
pypi cryptography(PyPI) = 41.0.0 No fix listed
pypi cryptography(PyPI) = 41.0.1 No fix listed
pypi cryptography(PyPI) = 41.0.2 No fix listed
pypi cryptography(PyPI) = 41.0.3 No fix listed
pypi cryptography(PyPI) = 41.0.4 No fix listed
pypi cryptography(PyPI) = 41.0.5 No fix listed
pypi cryptography(PyPI) = 41.0.6 No fix listed
pypi cryptography(PyPI) = 41.0.7 No fix listed
pypi cryptography(PyPI) = 42.0.0 No fix listed
pypi cryptography(PyPI) = 42.0.1 No fix listed
debian/openssl(Debian:12) < 3.0.13-1~deb12u1 3.0.13-1~deb12u1
debian/openssl(Debian:12) = 3.0.10-1 No fix listed
debian/openssl(Debian:12) = 3.0.10-1~deb12u1 No fix listed
debian/openssl(Debian:12) = 3.0.11-1 No fix listed
debian/openssl(Debian:12) = 3.0.11-1~deb12u1 No fix listed
debian/openssl(Debian:12) = 3.0.11-1~deb12u2 No fix listed
debian/openssl(Debian:12) = 3.0.12-1 No fix listed
debian/openssl(Debian:12) = 3.0.12-2 No fix listed
debian/openssl(Debian:12) = 3.0.9-1 No fix listed
debian/openssl(Debian:13) < 3.1.5-1 3.1.5-1
debian/openssl(Debian:14) < 3.1.5-1 3.1.5-1
ubuntu/edk2(Ubuntu:22.04) < 2022.02-3ubuntu0.22.04.4 2022.02-3ubuntu0.22.04.4
ubuntu/openssl(Ubuntu:22.04) < 3.0.2-0ubuntu1.14 3.0.2-0ubuntu1.14
ubuntu/nodejs(Ubuntu:22.04) All versions No fix listed
OpenSSL >= 3.2.0, < 3.2.1 3.2.1
OpenSSL >= 3.1.0, < 3.1.5 3.1.5
OpenSSL >= 3.0.0, < 3.0.13 3.0.13
OpenSSL >= 1.1.1, < 1.1.1x 1.1.1x
OpenSSL >= 1.0.2, < 1.0.2zj 1.0.2zj
Siemens SIDIS Prime < V4.0.700 V4.0.700
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem < V1.1.1 V1.1.1
Siemens SINEC NMS < V3.0 SP1 V3.0 SP1
ubuntu/edk2(Ubuntu:24.04) < 2024.02-2ubuntu0.6 2024.02-2ubuntu0.6
ubuntu/openssl(Ubuntu:24.04) < 3.0.10-1ubuntu4 3.0.10-1ubuntu4
OpenSSL = 3.2.0 No fix listed
alpine/openssl(Alpine:v3.17) >= 3.0.0, < 3.0.12-r4 3.0.12-r4
alpine/openssl(Alpine:v3.18) >= 3.1.0, < 3.1.4-r5 3.1.4-r5
alpine/openssl(Alpine:v3.19) >= 3.1.0, < 3.1.4-r5 3.1.4-r5
alpine/openssl(Alpine:v3.20) >= 3.1.0, < 3.1.4-r5 3.1.4-r5
alpine/openssl(Alpine:v3.21) >= 3.1.0, < 3.1.4-r5 3.1.4-r5
alpine/openssl(Alpine:v3.22) >= 3.1.0, < 3.1.4-r5 3.1.4-r5
alpine/openssl(Alpine:v3.23) >= 3.1.0, < 3.1.4-r5 3.1.4-r5
alpine/openssl(Alpine:v3.24) >= 3.1.0, < 3.1.4-r5 3.1.4-r5

References