CVE-2024-0727

EUVD-2024-0317
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
NISTPrimary
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
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: 46%
Affected Products (NVD)
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
bookworm
3.0.17-1~deb12u2
fixed
bookworm (security)
3.0.17-1~deb12u3
fixed
bullseye
vulnerable
bullseye (security)
1.1.1w-0+deb11u4
fixed
buster
postponed
forky
3.5.4-1
fixed
sid
3.5.4-1
fixed
trixie
3.5.4-1~deb13u1
fixed
trixie (security)
3.5.1-1+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
openssl1.0
bionic
Fixed 1.0.2n-1ubuntu5.13+esm1
released
focal
dne
jammy
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
plucky
dne
questing
dne
trusty
dne
xenial
dne
nodejs
bionic
not-affected
focal
not-affected
jammy
needed
lunar
not-affected
mantic
not-affected
noble
not-affected
oracular
not-affected
plucky
not-affected
questing
not-affected
trusty
not-affected
xenial
not-affected
edk2
bionic
needs-triage
focal
needed
jammy
Fixed 2022.02-3ubuntu0.22.04.4
released
lunar
ignored
mantic
ignored
noble
Fixed 2024.02-2ubuntu0.6
released
oracular
ignored
plucky
not-affected
questing
not-affected
trusty
ignored
xenial
needs-triage
openssl
bionic
Fixed 1.1.1-1ubuntu2.1~18.04.23+esm4
released
focal
Fixed 1.1.1f-1ubuntu2.21
released
jammy
Fixed 3.0.2-0ubuntu1.14
released
lunar
ignored
mantic
Fixed 3.0.10-1ubuntu2.2
released
noble
Fixed 3.0.10-1ubuntu4
released
oracular
Fixed 3.0.10-1ubuntu4
released
plucky
Fixed 3.0.10-1ubuntu4
released
questing
Fixed 3.0.10-1ubuntu4
released
trusty
Fixed 1.0.1f-1ubuntu2.27+esm10
released
xenial
Fixed 1.0.2g-1ubuntu4.20+esm11
released