Security Advisory

CVE-2022-4450: OpenSSL PEM_read_bio_ex Double Free

Last updated:
  • CVE-2022-4450

CVE-2022-4450 is a double free in OpenSSL's PEM_read_bio_ex() function: a crafted PEM file with an empty payload makes the function return an already freed header buffer, and a caller that frees it again usually crashes. It affects OpenSSL 1.1.1 before 1.1.1t and 3.0 before 3.0.8. NVD scores it 7.5; OpenSSL rates it Moderate.

Vulnerability summary

CVSS base score

7.5

High severity

EPSS score (FIRST)

28.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-4450 · Source: NVD

Affected components

ComponentCPEVersion range
OpenSSL (libcrypto PEM parser)cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*1.1.1 to before 1.1.1t and 3.0.0 to before 3.0.8; 1.0.2 not affected (OpenSSL advisory 2023-02-07, NVD)
Debian openssl packagepkg:deb/debian/opensslFixed in 1.1.1n-0+deb10u4 (buster, DLA-3325-1), 1.1.1n-0+deb11u4 (bullseye, DSA-5343-1), 3.0.8-1 (unstable) (Debian security tracker)
Buildroot package/libopenssl—Bumped to 1.1.1t on 2023-02-08 (commit 040896bd); 2023.02, 2022.11.2 and 2022.02.10 ship 1.1.1t; 2022.11.1 and 2022.02.9 ship 1.1.1q
OpenWrt package/libs/openssl—Bumped to 1.1.1t on openwrt-22.03 (2023-02-14, commit 3167f7c9) and openwrt-21.02 (2023-02-18)
Mitsubishi Electric CC-Link IE TSN Industrial Managed Switch NZ2MHG-TSNT8F2 and NZ2MHG-TSNT4—Firmware 05 and earlier; fixed in firmware 06 or later (Mitsubishi Electric 2023-011, CISA ICSA-23-278-03)
Siemens SCALANCE XB-200 / XC-200 / XP-200 / XF-200BA / XR-300WG family—Before V4.5; update to V4.5 or later (Siemens SSA-699386)
Siemens TIM 1531 IRC and SIPLUS TIM 1531 IRC—Before V2.4.8; update to V2.4.8 or later (Siemens SSA-337522)

What does this mean for affected devices?

CVE-2022-4450 is a double free in OpenSSL's PEM parser, CWE-415. PEM_read_bio_ex() can be given a PEM file whose payload decodes to 0 bytes; it then returns a failure code but leaves the header argument pointing at a buffer it has already freed, and a caller that frees that buffer as well triggers a double free that "will most likely lead to a crash" (OpenSSL advisory of 2023-02-07). OpenSSL, the CNA, rated it Moderate. NVD's Primary score is 7.5, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, with CWE-415, and CISA's ADP entry gives the same vector (NVD, CVE record).

What has to be true for an attack to work?

The attacker has to get a crafted PEM file in front of code that calls an affected function and then frees the header on failure. OpenSSL names PEM_read_bio_ex(), its wrappers PEM_read_bio() and PEM_read(), and indirect callers such as PEM_X509_INFO_read_bio_ex() and SSL_CTX_use_serverinfo_file(), plus the openssl asn1parse command. The PEM_read_bio_TYPE() functions and the OpenSSL 3.0 decoders are not affected, because they do not free the header after a failure. The outcome is a denial of service, not code execution. On devices the usual path is a certificate or key upload: Mitsubishi Electric describes the attack on its switches as "leading a legitimate user to import a malicious certificate" and scores it 6.5 with user interaction required (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).

Which versions and devices are affected?

OpenSSL 3.0.0 to 3.0.7 and 1.1.1 to 1.1.1s are affected; 1.0.2 is not. The fixes are 3.0.8 and 1.1.1t, both released on 2023-02-07 (OpenSSL vulnerabilities page, 3.0 fix commit). Embedded builds:

  • Debian fixed buster in 1.1.1n-0+deb10u4 (DLA-3325-1), bullseye in 1.1.1n-0+deb11u4 (DSA-5343-1) and unstable in 3.0.8-1 (Debian security tracker).
  • Buildroot moved libopenssl to 1.1.1t on 2023-02-08 (commit 040896bd). Releases 2023.02, 2022.11.2 and 2022.02.10 ship 1.1.1t; 2022.11.1 and 2022.02.9 ship 1.1.1q.
  • OpenWrt bumped openssl to 1.1.1t on the openwrt-22.03 branch on 2023-02-14 (commit 3167f7c9) and on openwrt-21.02 on 2023-02-18.

Industrial products listed by their vendors:

  • Mitsubishi Electric advisory 2023-011, republished by CISA as ICSA-23-278-03: CC-Link IE TSN Industrial Managed Switch NZ2MHG-TSNT8F2 and NZ2MHG-TSNT4, firmware 05 and earlier; fixed in firmware 06.
  • Siemens SSA-699386: SCALANCE XB-200, XC-200, XP-200, XF-200BA and XR-300WG switches; update to V4.5 or later.
  • Siemens SSA-337522: TIM 1531 IRC and SIPLUS TIM 1531 IRC; update to V2.4.8 or later. Siemens scores the flaw 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H) for both products.

How do you fix CVE-2022-4450?

Move to OpenSSL 3.0.8 or 1.1.1t or later, or to a vendor package that carries the fix, and install the firmware listed above for the named products. The Mitsubishi switch fix is obtained from a local Mitsubishi Electric representative and installed through the web interface's Firmware Upgrade function. Until then, limit who can upload certificates or keys and keep management interfaces off untrusted networks. Our CC-Link IE TSN protocol security guide covers the switch in its network context, and the OpenSSL vulnerabilities in embedded firmware guide explains how to find libcrypto's version in an image and check for backports. The same 2023-02-07 release also fixed CVE-2023-0286 and the timing oracle CVE-2022-4304; older builds may also still carry CVE-2022-0778 or Heartbleed, CVE-2014-0160.

Is CVE-2022-4450 exploited?

It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18, 1,786 entries). CISA's SSVC entry, dated 2025-04-23, records exploitation as "none", automatable as "yes" and technical impact as "partial". FIRST EPSS gives it 0.286, the 98.2nd percentile, in the 2026-11-18 dataset (FIRST EPSS).

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD: PEM_read_bio_ex() double free on a PEM file with 0 bytes of payload; NVD Primary CVSS v3.1 7.5 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; CWE-415; CPE openssl 1.1.1 to before 1.1.1t and 3.0.0 to before 3.0.8; published 2023-02-08. — NVD
  • CVE.org: CNA openssl, published 2023-02-08, severity Moderate, problem type double-free; affected 3.0.0 before 3.0.8 and 1.1.1 before 1.1.1t; CISA-ADP CVSS 3.1 7.5 and SSVC (2025-04-23) exploitation none, automatable yes, technical impact partial. — CVE.org
  • OpenSSL advisory 2023-02-07: Severity Moderate; PEM_read_bio(), PEM_read(), PEM_X509_INFO_read_bio_ex(), SSL_CTX_use_serverinfo_file() and asn1parse affected; PEM_read_bio_TYPE() and 3.0 decoders not vulnerable; 3.0 and 1.1.1 affected, upgrade to 3.0.8 or 1.1.1t; 1.0.2 not affected; found by CarpetFuzz/Dawei Wang and Marc Schönefeld. — OpenSSL
  • OpenSSL fix commits 63bcf189 (3.0.8) and bbcf509b (1.1.1t): 'Avoid dangling ptrs in header and data params for PEM_read_bio_ex'. — OpenSSL (GitHub)
  • Debian: fixed buster 1.1.1n-0+deb10u4 (DLA-3325-1), bullseye 1.1.1n-0+deb11u4 (DSA-5343-1), unstable 3.0.8-1. — Debian security tracker
  • Buildroot commit 040896bd (2023-02-08) 'package/libopenssl: security bump to version 1.1.1t' lists CVE-2022-4450; contained in tag 2023.02; libopenssl.mk is 1.1.1t in 2022.11.2 and 2022.02.10, 1.1.1q in 2022.11.1 and 2022.02.9. — Buildroot
  • OpenWrt commit 3167f7c9 'openssl: bump to 1.1.1t' on openwrt-22.03 (2023-02-14); commit dbbf5c2a on openwrt-21.02 (2023-02-18). — OpenWrt
  • Mitsubishi Electric 2023-011 (released 2023-10-05, updated 2024-06-04): CC-Link IE TSN Industrial Managed Switch NZ2MHG-TSNT8F2 and NZ2MHG-TSNT4 firmware 05 and prior affected by CVE-2022-4450 (DoS by leading a legitimate user to import a malicious certificate), CVSS 3.1 6.5 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; fixed firmware 06 or later. — Mitsubishi Electric PSIRT
  • CISA ICSA-23-278-03 Update A (2024-06-04): same products, <= firmware 05, update to firmware 06 or later; no known public exploitation reported to CISA. — CISA CSAF
  • Siemens SSA-699386: SCALANCE XB-200/XC-200/XP-200/XF-200BA/XR-300WG family affected by CVE-2022-4450, update to V4.5 or later; Siemens CVSS 3.1 5.9 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H. — Siemens ProductCERT
  • Siemens SSA-337522: TIM 1531 IRC and SIPLUS TIM 1531 IRC affected by CVE-2022-4450, update to V2.4.8 or later; Siemens CVSS 3.1 5.9. — Siemens ProductCERT
  • Not in CISA KEV catalog version 2026.11.18; EPSS 0.2859, percentile 0.98172, dataset 2026-11-18. — CISA KEV / FIRST EPSS

Related advisories

Sources

  1. NVD
  2. OpenSSL Security Advisory (2023-02-07)
  3. OpenSSL vulnerabilities page
  4. OpenSSL commit 63bcf189 (3.0 fix)
  5. OpenSSL commit bbcf509b (1.1.1 fix)
  6. Debian security tracker: CVE-2022-4450
  7. Buildroot commit 040896bd: libopenssl security bump to 1.1.1t
  8. OpenWrt commit 3167f7c9: openssl bump to 1.1.1t (openwrt-22.03)
  9. Mitsubishi Electric PSIRT 2023-011
  10. CISA ICSA-23-278-03 (CSAF, Update A)
  11. Siemens ProductCERT SSA-699386
  12. Siemens ProductCERT SSA-337522
  13. CVE.org record CVE-2022-4450 (CNA: OpenSSL)
  14. CISA KEV
  15. FIRST EPSS

Frequently asked questions

Can CVE-2022-4450 be used to run code on a device?

The published impact is a denial of service: the double free will most likely lead to a crash, and an attacker who can supply malicious PEM files for parsing can use it to stop the process. NVD scores it 7.5 with availability impact only (per the OpenSSL advisory of 2023-02-07 and NVD).

Which OpenSSL versions fix CVE-2022-4450?

OpenSSL 3.0.8 and 1.1.1t, released on 2023-02-07; OpenSSL 1.0.2 is not affected. Debian ships the fix as 1.1.1n-0+deb10u4 for buster and 1.1.1n-0+deb11u4 for bullseye (per the OpenSSL advisory and the Debian security tracker).

Which Mitsubishi Electric products are affected by CVE-2022-4450?

The CC-Link IE TSN Industrial Managed Switch NZ2MHG-TSNT8F2 and NZ2MHG-TSNT4 with firmware 05 or earlier; the fix is firmware 06 or later, obtained from a local Mitsubishi Electric representative. Mitsubishi scores it 6.5 because a legitimate user has to import a malicious certificate (per Mitsubishi Electric advisory 2023-011 and CISA ICSA-23-278-03).

Which Siemens products list CVE-2022-4450?

Among others, the SCALANCE XB-200, XC-200, XP-200, XF-200BA and XR-300WG switch family before V4.5, and the TIM 1531 IRC communication module before V2.4.8; Siemens recommends V4.5 and V2.4.8 or later respectively (per Siemens ProductCERT SSA-699386 and SSA-337522).

Is CVE-2022-4450 exploited in the wild?

It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18), and CISA's SSVC entry records exploitation as none. FIRST EPSS gives it 0.286, the 98.2nd percentile, in the 2026-11-18 dataset (per CISA KEV, CVE.org and FIRST EPSS).