CVE-2023-0401
openssl: NULL dereference during PKCS7 data verification
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-476
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Cargo (Rust) | openssl-src | >=300.0.0, <300.0.12 | 300.0.12 |
| Conan (C/C++) | openssl | >=3.0.0 <=3.0.7 | 3.0.12 |
Open a package to see all its vulnerabilities.
Operating systems · 35 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.0.1-47.0.1.el9_1 |
| 9 | openssl +3 | 2:3.0.1-47.0.1.ksplice1.el9_1 |
Photon OS 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 18.16.0-1.ph4 |
| 4.0 | openssl +4 | 3.0.7-4.ph4 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 9 | openssl +3 | 1:3.0.1-46.el9_0 | RHSA-2023:1199 |
| 9 | openssl +3 | 1:3.0.1-47.el9_1 | RHSA-2023:0946 |
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | libopenssl-3-devel +2 | 3.0.1-150400.4.17.1 | SUSE-SU-2023:0312-1 |
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.0.1-47.el9_1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | 3.0.8-r0 |
| 3.23 | openssl | 3.0.8-r0 |
| 3.24 | openssl | 3.0.8-r0 |
| edge | openssl | 3.0.8-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | openssl +6 | 1:3.0.5-1.amzn2023.0.6 |
chainguard 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby-3-1 | not affected | |
| openssl-provider-fips | 3.0.8-r0 | |
| openssl | 3.1.0-r0 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | openssl | 3.0.8-1 |
| 13 | openssl | 3.0.8-1 |
| 14 | openssl | 3.0.8-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.0.8-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-3-devel +7 | 3.0.8-1.1 | openSUSE-SU-2024:12716-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.0.1-47.el9_1 |
root.io alpine 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | rootio-openssl | 3.0.8-r0 |
| 3.24 | rootio-openssl | 3.0.8-r0 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-openssl | 3.0.8-1 |
| 13 | rootio-openssl | 3.0.8-1 |
seal Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 7 | openssl +1 | 1:1.0.2k-26.el7_9+sp999 |
| 8 | openssl +1 | 1:1.1.1k-14.el8_6+sp999 |
| 8 | openssl +1 | 1:1.1.1k-6.el8_5+sp999 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 1.1.1w-0+deb11u2+sp999 |
ubuntu 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | nodejs | 12.22.9~dfsg-1ubuntu3.3 |
| 22.04 | openssl | 3.0.2-0ubuntu1.8 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby-3-1 | not affected | |
| openssl | 3.1.0-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:0946
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-0401
- bugzilla.redhat.com https://bugzilla.redhat.com/2164440
- bugzilla.redhat.com https://bugzilla.redhat.com/2164487
- bugzilla.redhat.com https://bugzilla.redhat.com/2164488
- bugzilla.redhat.com https://bugzilla.redhat.com/2164492
- bugzilla.redhat.com https://bugzilla.redhat.com/2164494
- bugzilla.redhat.com https://bugzilla.redhat.com/2164497
- bugzilla.redhat.com https://bugzilla.redhat.com/2164499
- bugzilla.redhat.com https://bugzilla.redhat.com/2164500
Show all 52 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144000
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144003
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144006
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144008
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144010
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144012
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144015
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144017
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2144019
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2145170
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2158412
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164440
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164487
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164488
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164492
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164494
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164497
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164499
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2164500
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-4203
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-4304
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-4450
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0215
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0216
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0217
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0286
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0401
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-0946.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:0946
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=d3b6dfd70db844c4499bec6ad6601623a565e674
- github.com https://github.com/alexcrichton/openssl-src-rs
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-0401.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-12152.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-0401
- psirt.global.sonicwall.com https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2023-0013.html
- security.gentoo.org https://security.gentoo.org/glsa/202402-08
- ubuntu.com https://ubuntu.com/security/notices/USN-5844-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6564-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-0401
- www.openssl.org https://www.openssl.org/news/secadv/20230207.txt
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.