CVE-2023-0215 in Openssl and 102 more products
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.
Affects 103 products from 3 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openssl | Openssl | ≥ 1.0.2, < 1.0.2zg ≥ 1.1.1, < 1.1.1t ≥ 3.0.0, < 3.0.8 |
| Siemens | SIMATIC Cp 1542SP-1 (device and firmware) | < 2.3 |
| Siemens | SIMATIC Cp 1542SP-1 Irc (device and firmware) | < 2.3 |
| Siemens | SIMATIC Cp 1543SP-1 (device and firmware) | < 2.3 |
| Siemens | SCALANCE W1750D (device and firmware) | < 8.10.0.9 |
| Siemens | Tim 1531 Irc (device and firmware) | < 2.4.8 |
| Siemens | SCALANCE XR528-6M (device and firmware) | < 6.6.1 |
| Siemens | SCALANCE WAM763-1 (device and firmware) | < 3.0.0 |
| Siemens | SCALANCE WAM766-1 (device and firmware) | < 3.0.0 |
| Siemens | SCALANCE WUM763-1 (device and firmware) | < 3.0.0 |
| Siemens | SCALANCE WUM766-1 (device and firmware) | < 3.0.0 |
| Siemens | 6GK5766-1GE00-7DA0 (device and firmware) | < 3.0.0 |
| Siemens | 6GK5766-1GE00-7DB0 (device and firmware) | < 3.0.0 |
| Siemens | 6GK5766-1GE00-7TA0 (device and firmware) | < 3.0.0 |
| Siemens | 6GK5766-1GE00-7TB0 (device and firmware) | < 3.0.0 |
| Siemens | 6GK5766-1GE00-3DA0 (device and firmware) | < 3.0.0 |
| Siemens | 6GK5766-1GE00-3DB0 (device and firmware) | < 3.0.0 |
| Siemens | SCALANCE XM416-4C (device and firmware) | < 6.6.1 |
| Siemens | SCALANCE XM408-8C (device and firmware) | < 6.6.1 |
| Siemens | SCALANCE XM408-4C (device and firmware) | < 6.6.1 |
| Siemens | Siplus Et 200SP Cp 1542SP-1 Irc Tx Rail (device and firmware) | < 2.3 |
| Siemens | Siplus Et 200SP Cp 1543SP-1 Isec (device and firmware) | < 2.3 |
| Siemens | Siplus Et 200SP Cp 1543SP-1 Isec Tx Rail (device and firmware) | < 2.3 |
| Siemens | SCALANCE XR552-12M (device and firmware) | < 6.6.1 |
| Siemens | SIMATIC MV540 H (device and firmware) | < 3.3.4 |
| Siemens | SIMATIC MV540 S (device and firmware) | < 3.3.4 |
| Siemens | SIMATIC MV550 H (device and firmware) | < 3.3.4 |
| Siemens | SIMATIC MV550 S (device and firmware) | < 3.3.4 |
| Siemens | SIMATIC MV560 U (device and firmware) | < 3.3.4 |
| Siemens | SIMATIC MV560 X (device and firmware) | < 3.3.4 |
| Siemens | 6GK5408-4GQ00-2AM2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5408-8GR00-2AM2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5416-4GR00-2AM2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5524-8GS00-3AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5524-8GR00-3AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5524-8GS00-4AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5524-8GR00-4AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5524-8GS00-2AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5524-8GR00-2AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5526-8GS00-3AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5526-8GR00-3AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5526-8GS00-4AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5526-8GR00-4AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5526-8GS00-2AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5526-8GR00-2AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5528-0AR00-2HR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5528-0AR00-2AR2 (device and firmware) | < 6.6.1 |
| Siemens | 6GK5552-0AR00-2AR2 (device and firmware) | < 6.6.1 |
| Siemens | Siplus Tim 1531 Irc (device and firmware) | < 2.4.8 |
| Siemens | SIMATIC S7-1500 Tm Mfp (device and firmware) | < 1.1 |
| Siemens | SCALANCE WAB762-1 (6GK5762-1AJ00-6AA0) | < 3.0.0 |
| Siemens | SCALANCE WUB762-1 (6GK5762-1AJ00-1AA0) | < 3.0.0 |
| Siemens | SCALANCE WUB762-1 iFeatures (6GK5762-1AJ00-2AA0) | < 3.0.0 |
| Stormshield | Stormshield Management Center | < 3.3.3 |
| Siemens | 6Gk5528-0Aa00-2Hr2 Firmware | < 6.6.1 |
| Siemens | 6Gk5552-0Aa00-2Hr2 Firmware | < 6.6.1 |
| Siemens | 6Gk5552-0Ar00-2Hr2 Firmware | < 6.6.1 |
| Siemens | S7-1500 Cpu Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Scalance Wab762-1 Firmware | < 3.0.0 |
| Siemens | Scalance Wub762-1 Firmware | < 3.0.0 |
| Siemens | Scalance Wub762-1 Ifeatures Firmware | < 3.0.0 |
| Siemens | Scalance Xr524-8C Firmware | < 6.6.1 |
| Siemens | Scalance Xr526-8C Firmware | < 6.6.1 |
| Siemens | Simatic Cpu 1518F-4 Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518F-4 Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518F-4 Pn/Dp Mfp Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Sinec-Nms | < 2.0 SP1 |
| Siemens | Sinec Nms | < 2.0 SP1 |
| Siemens | Siplus S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | ≥ 3.1.0, < 3.1.5 |
Fix and vendor advisory
- SIMATIC MV540 H (6GF3540-0GE10), SIMATIC MV540 S (6GF3540-0CD10), SIMATIC MV550 H (6GF3550-0GE10) and 3 more: Update to V3.3.4 or later version
Source: ICSA-23-194-04
- Hitachi Energy has fixed the vulnerabilities for Lumada APM in version 6.5.0.2 and later and recommends users update their systems to the appropriate version. Lumada APM Edge versions 4.0 and prior are no longer supported and are considered End-of-Life.
Source: ICSA-23-255-01
- SIMATIC 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 more: Update to V3.1.5 or later version
Source: ICSA-23-348-10
- SINEC NMS: Update to V2.0 SP1 or later version
Source: ICSA-24-046-15
- SIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0), TIM 1531 IRC (6GK7543-1MX00-0XE0): Update to V2.4.8 or later version
Source: ICSA-24-165-06
- SIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0), SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0), SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) and 3 more: Update to V2.3 or later version
Source: ICSA-24-165-10
- SCALANCE XM408-4C (6GK5408-4GP00-2AM2), SCALANCE XM408-4C (L3 int.) (6GK5408-4GQ00-2AM2), SCALANCE XM408-8C (6GK5408-8GS00-2AM2) and 23 more: Update to V6.6.1 or later version
Source: ICSA-24-165-11
- Hitachi Energy AFS650: 9.1.08 and earlier: AFS650: Update to AFS 650 firmware version 9.1.10
- Hitachi Energy AFS660-C: 7.1.05 and earlier, Hitachi Energy AFS665-B: 7.1.05 and earlier, Hitachi Energy AFS670-V2: 7.1.05 and earlier: AFS660-C, AFS665-B, AFS670-V2: Update to AFS 66x firmware version 7.1.08
- Hitachi Energy AFR677: 9.1.08 and earlier, Hitachi Energy AFS670: 9.1.08 and earlier, Hitachi Energy AFS675: 9.1.08 and earlier and 1 more: AFS670/675/677, AFR677: Update to AFS/AFR 67x firmware version 9.1.10
Source: ICSA-24-205-02
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2023-0215 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-061979-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2023-02-08 |
| Last modified | 2026-10-14 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement input validation for CMS recipient public keys to prevent invalid keys from being processed. Ensure that all OpenSSL-based applications are updated to the latest version to mitigate this vulnerability.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-14.