cve.bz

CVE-2023-0215 Use After Free

7.5 highEPSS 5.0%Fix available

High (7.5). EPSS 5.0% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 111.25.0, 300.0.12.

On this page
The public API function BIO_new_NDEF is a helper function used for streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL to support the SMIME, CMS and PKCS7 streaming capabilities, but may also be called directly by end user applications. The function receives a BIO from the caller, prepends a new BIO_f_asn1 filter BIO onto the front of it to form a BIO chain, and then returns the new head of the BIO chain to the caller. Under certain conditions, for example if a CMS recipient public key is invalid, the new filter BIO is freed and the function returns a NULL result indicating a failure. However, in this case, the BIO chain is not properly cleaned up and the BIO passed by the caller still retains internal pointers to the previously freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO then a use-after-free will occur. This will most likely result in a crash. This scenario occurs directly in the internal function B64_write_ASN1() which may cause BIO_new_NDEF() to be called and will subsequently call BIO_pop() on the BIO. This internal function is in turn called by the public API functions PEM_write_bio_ASN1_stream, PEM_write_bio_CMS_stream, PEM_write_bio_PKCS7_stream, SMIME_write_ASN1, SMIME_write_CMS and SMIME_write_PKCS7. Other public API functions that may be impacted by this include i2d_ASN1_bio_stream, BIO_new_CMS, BIO_new_PKCS7, i2d_CMS_bio_stream and i2d_PKCS7_bio_stream. The OpenSSL cms and smime command line applications are similarly affected.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
5.0% (unchanged from 5.0% a week ago; 5.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-0215 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-0215?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-0215?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-0215 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2023-0215

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2023-0215](https://cve.bz/cve/badge/CVE-2023-0215.svg)](https://cve.bz/cve/CVE-2023-0215)

HTML:

<a href="https://cve.bz/cve/CVE-2023-0215"><img src="https://cve.bz/cve/badge/CVE-2023-0215.svg" alt="CVE-2023-0215"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSSLfrom 3.0.0 before 3.0.8
OpenSSLfrom 1.1.1 before 1.1.1t
OpenSSLfrom 1.0.2 before 1.0.2zg

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r7jw-wp68-3xchcrates.ioopenssl-src<111.25.0111.25.0
GHSA-r7jw-wp68-3xchcrates.ioopenssl-src>=300.0.0 <300.0.12300.0.12
RUSTSEC-2023-0009crates.ioopenssl-src>=0.0.0-0 <111.25.0
>=300.0.0 <300.0.12
111.25.0, 300.0.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10openssl1.1.1n-0+deb10u4DLA-3325-1
Debian11openssl1.1.1n-0+deb11u4DSA-5343-1
Debian12, 13, 14openssl3.0.8-1DEBIAN-CVE-2023-0215
Ubuntu18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.21UBUNTU-CVE-2023-0215 USN-5844-1
Ubuntu18.04:LTSopenssl1.01.0.2n-1ubuntu5.11UBUNTU-CVE-2023-0215 USN-5845-1
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.17UBUNTU-CVE-2023-0215 USN-5844-1
Ubuntu22.04:LTSedk22022.02-3ubuntu0.22.04.4UBUNTU-CVE-2023-0215 USN-7894-1
Ubuntu22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.3UBUNTU-CVE-2023-0215 USN-6564-1
Ubuntu22.04:LTSopenssl3.0.2-0ubuntu1.8UBUNTU-CVE-2023-0215 USN-5844-1
Ubuntu24.04:LTSedk22024.02-2ubuntu0.6USN-7894-1
UbuntuPro:14.04:LTSopenssl1.0.1f-1ubuntu2.27+esm6UBUNTU-CVE-2023-0215 USN-5845-2
UbuntuPro:16.04:LTSopenssl1.0.2g-1ubuntu4.20+esm6UBUNTU-CVE-2023-0215 USN-5845-2
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSedk2no fix listedUBUNTU-CVE-2023-0215
UbuntuPro:FIPS-updates:16.04:LTSopenssl1.0.2g-1ubuntu4.fips.4.20.6UBUNTU-CVE-2023-0215
UbuntuPro:FIPS-updates:18.04:LTSopenssl1.1.1-1ubuntu2.fips.2.1~18.04.21UBUNTU-CVE-2023-0215
2 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreamedk2, edk2-ovmf, edk2-aarch640:20220126gitbb1bba3d77-4.el8RHSA-2023:2932
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-9.el8_7RHSA-2023:1405
Red Hatenterprise_linux:9::appstreamedk2, edk2-ovmf, edk2-aarch640:20221207gitfff6d81270b5-9.el9_2RHSA-2023:2165
Red Hatenterprise_linux:9::appstreamopenssl-perl, openssl-devel, openssl-debuginfo and 2 more1:3.0.1-47.el9_1RHSA-2023:0946
Red Hatenterprise_linux:9::baseosopenssl, openssl-libs, openssl-debuginfo and 2 more1:3.0.1-47.el9_1RHSA-2023:0946
Red Hatenterprise_linux:9::crbedk2-ovmf, edk2-tools, edk2-aarch64 and 3 more0:20221207gitfff6d81270b5-9.el9_2RHSA-2023:2165
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 7 more0:1.6.1-101.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:8.0.1-1.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.51-39.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.51-39.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.1.1k-14.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el8jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 14 more0:1.6.1-101.el8jbcsRHSA-2023:3354
11 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 12 moreopenssl-1_11.1.1d-150200.11.57.1SUSE-SU-2023:0310-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 8 moreopenssl-1_0_01.0.2p-150000.3.65.1SUSE-SU-2023:0305-1 SUSE-SU-2023:0305-2
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1openssl-1_11.1.0i-150100.14.42.1SUSE-SU-2023:0308-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4openssl-1_11.1.1l-150400.7.22.1SUSE-SU-2023:0311-1
SUSELinux Enterprise Module for Basesystem 15 SP4openssl-33.0.1-150400.4.17.1SUSE-SU-2023:0312-1
SUSELinux Enterprise Server 11 SP4 LTSS EXTREME COREopenssl11.0.1g-0.58.56.1SUSE-SU-2023:0307-1
SUSELinux Enterprise Server 12 SP2-BCLopenssl1.0.2j-60.86.1SUSE-SU-2023:0684-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenssl-1_0_01.0.2p-3.64.1SUSE-SU-2023:0306-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenssl-1_11.1.1d-2.75.1SUSE-SU-2023:0309-1
openSUSELeap 15.4openssl-1_0_01.0.2p-150000.3.65.1SUSE-SU-2023:0305-1 SUSE-SU-2023:0305-2
openSUSELeap 15.4openssl-33.0.1-150400.4.17.1SUSE-SU-2023:0312-1
openSUSELeap 15.4, Leap Micro 5.3openssl-1_11.1.1l-150400.7.22.1SUSE-SU-2023:0311-1
openSUSELeap Micro 5.2openssl-1_11.1.1d-150200.11.57.1SUSE-SU-2023:0310-1
openSUSETumbleweedopenssl-1_0_01.0.2u-12.1openSUSE-SU-2024:12687-1
openSUSETumbleweedopenssl-1_11.1.1t-1.1openSUSE-SU-2024:12688-1
openSUSETumbleweedopenssl-33.0.8-1.1openSUSE-SU-2024:12716-1
AlmaLinux8edk2-ovmf, edk2-aarch6420220126gitbb1bba3d77-4.el8ALSA-2023:2932
AlmaLinux8openssl, openssl-libs, openssl-perl and 1 more1:1.1.1k-9.el8_7ALSA-2023:1405
AlmaLinux9edk2-ovmf, edk2-tools, edk2-aarch64 and 1 more20221207gitfff6d81270b5-9.el9_2ALSA-2023:2165
AlmaLinux9openssl, openssl-libs, openssl-perl and 1 more1:3.0.1-47.el9_1ALSA-2023:0946
Rocky Linux8openssl1:1.1.1k-9.el8_7RLSA-2023:1405
Rocky Linux9openssl1:3.0.1-47.el9_1RLSA-2023:0946
Alpinev3.14, v3.15, v3.16openssl1.1.1t-r0ALPINE-CVE-2023-0215
Alpinev3.15, v3.16openssl33.0.8-r0ALPINE-CVE-2023-0215
Alpinev3.17, v3.18openssl1.1-compat1.1.1t-r0ALPINE-CVE-2023-0215
Alpinev3.17, v3.18, v3.19 and 5 moreopenssl3.0.8-r0ALPINE-CVE-2023-0215
Azure Linux2cloud-hypervisor30.0-2AZL-13301
Azure Linux2hvloader1.0.1-2AZL-37641
Azure Linux2openssl1.1.1k-21AZL-13352
Azure Linux3hvloader1.0.1-4AZL-37898

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw was found in the OpenSSL library within the BIO_new_NDEF function, which is used for ASN.1 data streaming. The flaw is a use-after-free issue that happens when an error occurs while setting up a BIO chain. In this case, the filter BIO is freed, but the original BIO still holds a reference to it. If the caller later calls BIO_pop(), it tries to use this freed pointer, causing a crash and leading to a Denial of Service (DoS). The flaw is rated as moderate because it results in a crash but does not allow code execution, memory corruption beyond the crash, or data leakage.

ProductPackageStateAdvisory
JBCS httpd 2.4.51.sp2opensslFixed 2023-06-05RHSA-2023:3355
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1k-14.el8jbcsFixed 2023-06-05RHSA-2023:3354
JBoss Core Services on RHEL 7jbcs-httpd24-openssl-1:1.1.1k-14.el7jbcsFixed 2023-06-05RHSA-2023:3354
Red Hat Enterprise Linux 8edk2-0:20220126gitbb1bba3d77-4.el8Fixed 2023-05-16RHSA-2023:2932
Red Hat Enterprise Linux 8openssl-1:1.1.1k-9.el8_7Fixed 2023-03-22RHSA-2023:1405
Red Hat Enterprise Linux 8.6 Extended Update Supportedk2-0:20220126gitbb1bba3d77-2.el8_6.1Fixed 2023-07-18RHSA-2023:4128
Red Hat Enterprise Linux 8.6 Extended Update Supportopenssl-1:1.1.1k-9.el8_6Fixed 2023-05-31RHSA-2023:3408
Red Hat Enterprise Linux 9openssl-1:3.0.1-47.el9_1Fixed 2023-02-28RHSA-2023:0946
Red Hat Enterprise Linux 9edk2-0:20221207gitfff6d81270b5-9.el9_2Fixed 2023-05-09RHSA-2023:2165
Red Hat Enterprise Linux 9.0 Extended Update Supportopenssl-1:3.0.1-46.el9_0Fixed 2023-03-14RHSA-2023:1199
Red Hat JBoss Web Server 5opensslFixed 2023-06-05RHSA-2023:3421
Red Hat JBoss Web Server 5.7 on RHEL 7jws5-tomcat-native-0:1.2.31-14.redhat_14.el7jwsFixed 2023-06-05RHSA-2023:3420
Red Hat Enterprise Linux 6opensslOut of support scope
Red Hat Enterprise Linux 7opensslOut of support scope
Red Hat Enterprise Linux 7ovmfOut of support scope
Red Hat Enterprise Linux 8compat-openssl10Will not fix
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 9compat-openssl11Will not fix
Red Hat Enterprise Linux 9shimWill not fix
Red Hat JBoss Web Server 3opensslOut of support scope
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-0215.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-065-01Hitachi Energy PCU4002025-02-25Critical ManufacturingPCU400 versions 6.5 K and below, PCU400 versions 9.4.1 and below, PCULogger versions 1.1.0 and belowPCU400 version 6.6.0, PCU400 version 9.4.2, PCULogger version 1.2.0
ICSA-25-044-09Siemens SCALANCE W700 IEEE 802.11ax2025-02-11Chemical, Critical Manufacturing, Energy, Food and Agriculture, Water and Wastewater SystemsSCALANCE WAB762-1 (6GK5762-1AJ00-6AA0), SCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) and 16 morenone listed
ICSA-24-205-02Hitachi Energy AFS/AFR Series Products2024-07-23EnergyHitachi Energy AFS650: <=9.1.08, Hitachi Energy AFS660-C: <=7.1.05, Hitachi Energy AFS665-B: <=7.1.05 and 5 morenone listed
ICSA-24-165-06Siemens TIM 1531 IRC2024-06-11MultipleSIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0), TIM 1531 IRC (6GK7543-1MX00-0XE0)none listed
ICSA-24-165-10Siemens SIMATIC and SIPLUS2024-06-11MultipleSIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0), SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0), SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) and 3 morenone listed
ICSA-24-165-11Siemens SCALANCE XM-400, XR-5002024-06-11MultipleSCALANCE XM408-4C (6GK5408-4GP00-2AM2), SCALANCE XM408-4C (L3 int.) (6GK5408-4GQ00-2AM2), SCALANCE XM408-8C (6GK5408-8GS00-2AM2) and 23 morenone listed
ICSA-24-046-15Siemens SINEC NMS2024-02-13MultipleSINEC NMSnone listed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-255-01Hitachi Energy Lumada APM Edge2023-09-12EnergyLumada APM Edge: <= 4.0, Lumada APM Edge: 6.3none listed
ICSA-23-194-04Siemens SIMATIC MV500 Devices2023-07-11MultipleSIMATIC MV540 H (6GF3540-0GE10), SIMATIC MV540 S (6GF3540-0CD10), SIMATIC MV550 H (6GF3550-0GE10) and 3 morenone listed
2 more in the JSON.

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON