VDB

CVE-2023-0401

CVE-2023-0401 PUBLISHED CVSS 7.5 HIGH

NULL dereference during PKCS7 data verification

Reported by openssl · Published February 8, 2023

openssl-src is fixed in 300.0.12 and 300.0.0 (crates.io)

A NULL pointer can be dereferenced when signatures are being verified on PKCS7 signed or signedAndEnveloped data. In case the hash algorithm used for the signature is known to the OpenSSL library but the implementation of the hash algorithm is not available the digest initialization will fail. There is a missing check for the return value from the initialization function which later leads to invalid usage of the digest API most likely leading to a crash. The unavailability of an algorithm can be caused by using FIPS enabled configuration of providers or more commonly by not loading the legacy provider. PKCS7 data is processed by the SMIME library calls and also by the time stamp (TS) library calls. The TLS implementation in OpenSSL does not call these functions however third party applications would be affected if they call these functions to verify signatures on untrusted data.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
openssl-srccrates.io300.0.12, 300.0.0
openssl-provider-fipsChainguard3.0.8-r0
openssl-libsAmazon Linux1:3.0.5-1.amzn2023.0.6
opensslconan.io3.0.7
opensslAlpine3.0.8-r0
opensslChainguard3.1.0-r0
opensslAmazon Linux1:3.0.5-1.amzn2023.0.6
opensslWolfi3.1.0-r0
openssl3Alpine3.0.8-r0
openssl-perlAmazon Linux1:3.0.5-1.amzn2023.0.6
openssl-develAmazon Linux1:3.0.5-1.amzn2023.0.6
opensslopenssl3.0.8, 3.0.7

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
OpenSSLOpenSSL3.0.0
OpenSSLOpenSSL3.0.0

Timeline

  • Feb 7, 2023 CVE Published
  • Feb 8, 2023 PoC Published (3 in total, the first dated here)
  • Feb 9, 2023 EPSS Score (30 in total, the first dated here)
  • Nov 4, 2025 CVE Updated
  • Mar 17, 2026 Security Advisory (33 in total, the first dated here)
  • May 22, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (29 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-0401
vulnetix vdb fixes CVE-2023-0401

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-0401/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›