CVE-2024-0727
PKCS12 Decoding crashes
Check your servers for CVE-2024-0727
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-0727 affects openssl, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 3.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 88.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 8 May 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| OpenSSL |
affected from 3.2.0, before 3.2.1 affected from 3.1.0, before 3.1.5 affected from 3.0.0, before 3.0.13 affected from 1.1.1, before 1.1.1x affected from 1.0.2, before 1.0.2zj
Other versions: unaffected
|
Is my server affected?
Find the installed version of openssl and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i openssl
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-0727 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-0727RHEL, Rocky, Alma, Fedora
rpm -q openssl
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-0727Alpine
apk list --installed | grep -i opensslWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-0727
trivy image --scanners vuln IMAGE | grep CVE-2024-0727
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- OpenSSL Advisory openssl.org · vendor advisory
Patches and release notes
- 3.2.1 git commit github.com · patch
- 3.1.5 git commit github.com · patch
- 3.0.13 git commit github.com · patch
- 1.1.1x git commit github.openssl.org · patch
- 1.0.2zj git commit github.openssl.org · patch
Other references
- https://security.netapp.com/advisory/ntap-20240208-0006/ security.netapp.com
- http://www.openwall.com/lists/oss-security/2024/03/11/1 openwall.com
- https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-915275.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-277137.html cert-portal.siemens.com
Source: the record CVE-2024-0727 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse