CVE-2024-0727

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
5.5 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
opensslCNA
---
---
CVEADP
---
---
CISA-ADPADP
5.5 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 37%
VendorProductVersion
opensslopenssl
1.0.2 ≤
𝑥
< 1.0.2zj
opensslopenssl
1.1.1 ≤
𝑥
< 1.1.1x
opensslopenssl
3.0.0 ≤
𝑥
< 3.0.13
opensslopenssl
3.1.0 ≤
𝑥
< 3.1.5
opensslopenssl
3.2.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
openssl
bullseye
vulnerable
buster
postponed
bullseye (security)
1.1.1w-0+deb11u3
fixed
bookworm
3.0.16-1~deb12u1
fixed
bookworm (security)
3.0.14-1~deb12u2
fixed
trixie
3.5.0-1
fixed
sid
3.5.0-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
edk2
plucky
needed
oracular
needed
noble
needed
mantic
ignored
lunar
ignored
jammy
needed
focal
needed
bionic
needs-triage
xenial
needs-triage
trusty
ignored
nodejs
plucky
not-affected
oracular
not-affected
noble
not-affected
mantic
not-affected
lunar
not-affected
jammy
needed
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected
openssl
plucky
Fixed 3.0.10-1ubuntu4
released
oracular
Fixed 3.0.10-1ubuntu4
released
noble
Fixed 3.0.10-1ubuntu4
released
mantic
Fixed 3.0.10-1ubuntu2.2
released
lunar
ignored
jammy
Fixed 3.0.2-0ubuntu1.14
released
focal
Fixed 1.1.1f-1ubuntu2.21
released
bionic
Fixed 1.1.1-1ubuntu2.1~18.04.23+esm4
released
xenial
Fixed 1.0.2g-1ubuntu4.20+esm11
released
trusty
Fixed 1.0.1f-1ubuntu2.27+esm10
released
openssl1.0
plucky
dne
oracular
dne
noble
dne
mantic
dne
lunar
dne
jammy
dne
focal
dne
bionic
Fixed 1.0.2n-1ubuntu5.13+esm1
released
xenial
dne
trusty
dne