CVE-2024-0727 PKCS12 Decoding crashes

Medium 5.5 Published Updated

Attackers can cause a denial of service by providing a maliciously formatted PKCS12 file to applications using vulnerable OpenSSL APIs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-0727?

CVE-2024-0727 is a medium-severity vulnerability in Openssl Openssl, published on 26 Jan 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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.

Weakness: CWE-476

Which versions are affected by CVE-2024-0727?

3 open source packages ship an affected version, including cryptography. It affects 1 product.

PackageAffectedFixed in
cryptography PyPIAll versions42.0.2
cryptography PyPIAll versions42.0.2
cryptography PyPIAll versions42.0.2
Linux distribution packages (37)
openssl-1_0_0 SUSE:Enterprise Storage 7.1All versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Enterprise Storage 7.1All versions1.1.1d-150200.11.85.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.1.1d-150200.11.85.1
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.1.1d-150200.11.85.1
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.1.1l-150400.7.63.1
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.1.1l-150400.7.63.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.1All versions1.1.1d-150200.11.85.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.2All versions1.1.1d-150200.11.85.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.3All versions1.1.1l-150400.7.63.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.4All versions1.1.1l-150400.7.63.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.5All versions1.1.1l-150500.17.25.1
openssl-1_1 SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions1.1.1l-150500.17.25.1
openssl-3 SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions3.0.8-150500.5.27.1
compat-openssl098 SUSE:Linux Enterprise Module for Legacy 12All versions0.9.8j-106.64.1
openssl-1_0_0 SUSE:Linux Enterprise Module for Legacy 15 SP5All versions1.0.2p-150000.3.91.1
openssl SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREAll versions0.9.8j-0.106.83.1
openssl1 SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREAll versions1.0.1g-0.58.79.1
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP5All versions1.0.2p-3.90.1
openssl-1_1 SUSE:Linux Enterprise Server 12 SP5All versions1.1.1d-2.104.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.1.1d-150200.11.85.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.1.1d-150200.11.85.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.1.1l-150400.7.63.1
compat-openssl098 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions0.9.8j-106.64.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.0.2p-3.90.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.1.1d-2.104.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.1.1d-150200.11.85.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.1.1d-150200.11.85.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.0.2p-150000.3.91.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.1.1l-150400.7.63.1

Products include Openssl Openssl.

How do I fix CVE-2024-0727?

Upgrade cryptography to 42.0.2 or later.

Is CVE-2024-0727 being exploited?

There is no known exploitation of CVE-2024-0727 in the wild and no public exploit code.

All Openssl Openssl vulnerabilities

Sources

Also known as ALPINE-CVE-2024-0727, AZL-33935, AZL-33937, AZL-35049, AZL-35086, AZL-37767 and 31 more.

Is CVE-2024-0727 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free