CVE-2024-0727: PKCS12 Decoding crashes

Published Jan 23, 2024
·
Updated

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: PKCS12parse(), PKCS12unpackp7data(), PKCS12unpackp7encdata(), PKCS12unpackauthsafes() and PKCS12newpass().

We have also fixed a similar issue in SMIMEwritePKCS7(). 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.

Other sources

OpenSSL is vulnerable to a denial of service, caused by improper input validation. By persuading a victim to open a specially crafted PKCS12 file, a remote attacker could exploit this vulnerability to cause the application to crash.

— IBM

PKCS12 structures contain PKCS7 ContentInfo fields. These fields are optional and can be NULL even if the "type" is a valid value. OpenSSL was not properly accounting for this and a NULL dereference can occur causing a crash. The OpenSSL project did announce a new release, which is assumed to contain this bug fix; that release will be published on Jan 30th.

Reference: https://github.com/openssl/openssl/pull/23362

— Red Hat

Affected Software

54 affected componentsFixes available
pip/cryptography<42.0.2
42.0.2
Microsoft azl3 openssl 3.1.4-9
Microsoft cbl2 cloud-hypervisor-cvm 38.0.72-1
Microsoft azl3 cloud-hypervisor-cvm 38.0.72-2
Microsoft cbl2 hvloader 1.0.1-11
Microsoft azl3 kata-containers 3.2.0.azl0-2
Microsoft azl3 nodejs 16.20.2-2
Microsoft cbl2 openssl 1.1.1k-36
Microsoft cbl2 nodejs 16.20.2-2
Microsoft azl3 openssl 1.1.1k-29
Microsoft azl3 cloud-hypervisor-cvm 38.0.72.2-1
Microsoft cbl2 hvloader 1.0.1-9
Microsoft cbl2 openssl 1.1.1k-29
Microsoft cbl2 cloud-hypervisor-cvm 38.0.72.2-1
Microsoft azl3 kata-containers 3.2.0.azl1-1
OpenSSL OpenSSL>=1.0.2<1.0.2zj
OpenSSL OpenSSL>=1.1.1<1.1.1x
OpenSSL OpenSSL>=3.0.0<3.0.13
OpenSSL OpenSSL>=3.1.0<3.1.5
OpenSSL OpenSSL=3.2.0
debian/openssl<3.0.13-1~deb12u1
3.0.13-1~deb12u1
debian/openssl<3.1.5-1
3.1.5-1
debian/openssl<3.1.5-1
3.1.5-1
debian/openssl
3.0.20-1~deb12u23.0.22-1~deb12u23.5.7-1~deb13u23.5.7-1~deb13u33.6.5-1
ubuntu/openssl<1.0.1f-1ubuntu2.27+esm10
1.0.1f-1ubuntu2.27+esm10
ubuntu/openssl<1.0.2g-1ubuntu4.20+esm11
1.0.2g-1ubuntu4.20+esm11
ubuntu/edk2*
ubuntu/openssl<1.0.2g-1ubuntu4.fips.4.20.11
1.0.2g-1ubuntu4.fips.4.20.11
ubuntu/openssl*
ubuntu/openssl<1.1.1-1ubuntu2.1~18.04.23+esm4
1.1.1-1ubuntu2.1~18.04.23+esm4
ubuntu/openssl1.0<1.0.2n-1ubuntu5.13+esm1
1.0.2n-1ubuntu5.13+esm1
ubuntu/edk2*
ubuntu/openssl<1.1.1-1ubuntu2.fips.2.1~18.04.23.4
1.1.1-1ubuntu2.fips.2.1~18.04.23.4
ubuntu/openssl*
ubuntu/openssl<1.1.1f-1ubuntu2.21
1.1.1f-1ubuntu2.21
ubuntu/edk2*
ubuntu/openssl<1.1.1f-1ubuntu2.fips.20
1.1.1f-1ubuntu2.fips.20
ubuntu/openssl*
ubuntu/edk2<2022.02-3ubuntu0.22.04.4
2022.02-3ubuntu0.22.04.4
ubuntu/openssl<3.0.2-0ubuntu1.14
3.0.2-0ubuntu1.14
ubuntu/nodejs*
ubuntu/openssl*
ubuntu/openssl<3.0.2-0ubuntu1.14+Fips1
3.0.2-0ubuntu1.14+Fips1
ubuntu/edk2<2024.02-2ubuntu0.6
2024.02-2ubuntu0.6
ubuntu/openssl<3.0.10-1ubuntu4
3.0.10-1ubuntu4
alpine/openssl>=3.0.0<3.0.12-r4
3.0.12-r4
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5
alpine/openssl>=3.1.0<3.1.4-r5
3.1.4-r5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/cryptography to a version that resolves this vulnerability.

    Fixed in 42.0.2
  2. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.13-1~deb12u1
  3. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 3.1.5-1
  4. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.20-1~deb12u2Fixed in 3.0.22-1~deb12u2Fixed in 3.5.7-1~deb13u2Fixed in 3.5.7-1~deb13u3Fixed in 3.6.5-1
  5. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.12-r4
  6. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.1.4-r5
  7. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.1f-1ubuntu2.27+esm10
  8. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.2g-1ubuntu4.20+esm11
  9. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.2g-1ubuntu4.fips.4.20.11
  10. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.1~18.04.23+esm4
  11. Upgrade

    Upgrade ubuntu/openssl1.0 to a version that resolves this vulnerability.

    Fixed in 1.0.2n-1ubuntu5.13+esm1
  12. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.fips.2.1~18.04.23.4
  13. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.21
  14. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.fips.20
  15. Upgrade

    Upgrade ubuntu/edk2 to a version that resolves this vulnerability.

    Fixed in 2022.02-3ubuntu0.22.04.4
  16. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.14
  17. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.14+Fips1
  18. Upgrade

    Upgrade ubuntu/edk2 to a version that resolves this vulnerability.

    Fixed in 2024.02-2ubuntu0.6
  19. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.10-1ubuntu4

Event History

Jan 23, 2024
Data Sourced
via Red Hat·10:27 PM
DescriptionSeverityAffected Software
Jan 26, 2024
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
Remedy
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·08:57 AM
Data Sourced
via MITRE·08:57 AM
DescriptionWeakness
Data Sourced
via OSV·08:57 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
Description
Advisory Published
via GitHub·09:30 AM
Data Sourced
via GitHub·09:30 AM
DescriptionSeverityAffected Software
Jan 29, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Feb 2, 2024
Data Sourced
via NVD·03:53 PM
RemedySeverityAffected Software
Feb 3, 2024
Event
via FIRST·12:00 AM
Feb 8, 2024
Updated
via NVD·10:15 AM
Affected Software
Feb 16, 2024
Advisory Published
via GitHub·08:48 PM
May 1, 2024
Updated
via NVD·06:15 PM
Affected Software
May 30, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Oct 14, 2024
Updated
via MITRE·02:55 PM
Weakness
Data Sourced
via NVD·03:15 PM
Weakness
Updated
via NVD·03:15 PM
Affected Software
Data Sourced
via GitHub·05:11 PM
Weakness
Oct 18, 2024
Updated
via IBM·12:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·08:47 AM
RemedyAffected Software
Dec 19, 2024
Updated
via IBM·12:00 AM
Affected Software
Feb 4, 2025
Updated
via IBM·12:00 AM
Affected Software
Mar 12, 2025
Updated
via IBM·12:00 AM
Affected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
Affected Software
May 29, 2025
Updated
via NVD·04:15 PM
RemedySeverityWeaknessAffected Software
Nov 3, 2025
Updated
via NVD·10:16 PM
Affected Software
Oct 15, 2026
Updated
via NVD·01:17 AM
SeverityWeaknessAffected Software
Nov 17, 2026
Updated
via OSV·06:31 AM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:54 PM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-0727?

CVE-2024-0727 is classified as a Denial of Service vulnerability due to potential application crashes.

2

How do I fix CVE-2024-0727?

To fix CVE-2024-0727, update OpenSSL to the recommended versions or later, such as 1.1.1w-0+deb11u2 or 3.2.0.

3

Which versions are affected by CVE-2024-0727?

CVE-2024-0727 affects multiple versions of OpenSSL, specifically those prior to 1.1.1x, 3.0.13, and 3.1.5.

4

Can CVE-2024-0727 be exploited remotely?

CVE-2024-0727 can potentially be exploited when applications process malformed PKCS12 files from untrusted sources.

5

What impact does CVE-2024-0727 have on systems?

The impact of CVE-2024-0727 includes application crashes, leading to potential downtime and service availability issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203