Vulnerability · Published Feb 8, 2023 · Assigned by openssl

CVE-2023-0216Invalid pointer dereference in d2i_PKCS7 functions

High 7.5

In plain English

A high-severity null pointer dereference in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.8%top 20.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

An invalid pointer dereference on read can be triggered when an application tries to load malformed PKCS7 data with the d2i_PKCS7(), d2i_PKCS7_bio() or d2i_PKCS7_fp() functions. The result of the dereference is an application crash which could lead to a denial of service attack. The TLS implementation in OpenSSL does not call this function however third party applications might call these functions on untrusted data.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9openssl1:3.0.1-47.el9_1ALSA-2023:0946
AlmaLinux:9openssl-devel1:3.0.1-47.el9_1ALSA-2023:0946
AlmaLinux:9openssl-libs1:3.0.1-47.el9_1ALSA-2023:0946
AlmaLinux:9openssl-perl1:3.0.1-47.el9_1ALSA-2023:0946
Alpine:v3.20openssl3.0.8-r0ALPINE-CVE-2023-0216
Alpine:v3.21openssl3.0.8-r0ALPINE-CVE-2023-0216
Alpine:v3.22openssl3.0.8-r0ALPINE-CVE-2023-0216
Alpine:v3.23openssl3.0.8-r0ALPINE-CVE-2023-0216
Alpine:v3.24openssl3.0.8-r0ALPINE-CVE-2023-0216
Debian:12openssl3.0.8-1DEBIAN-CVE-2023-0216
Debian:13openssl3.0.8-1DEBIAN-CVE-2023-0216
Debian:14openssl3.0.8-1DEBIAN-CVE-2023-0216
Rocky Linux:9openssl1:3.0.1-47.el9_1RLSA-2023:0946
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.8UBUNTU-CVE-2023-0216
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.8USN-5844-1

Affected products (as reported)

VendorProductVersions
OpenSSL OpenSSL 3.0.0 – before 3.0.8

Weakness: CWE-476 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References