Security Advisory

CVE-2022-4304: OpenSSL RSA Decryption Timing Oracle

Last updated:
  • CVE-2022-4304

CVE-2022-4304 is a timing side channel in OpenSSL's RSA decryption that can let a network attacker recover a plaintext, such as a recorded TLS pre-master secret, in a Bleichenbacher-style attack after sending a very large number of trial messages. It affects OpenSSL 1.0.2, 1.1.1 and 3.0; fixed in 1.0.2zg, 1.1.1t and 3.0.8. NVD scores it 5.9.

Vulnerability summary

CVSS base score

5.9

Medium severity

EPSS score (FIRST)

23.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
OpenSSL (libcrypto RSA decryption)cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*1.0.2 to before 1.0.2zg, 1.1.1 to before 1.1.1t, 3.0.0 to before 3.0.8 (OpenSSL advisory 2023-02-07, NVD); 3.0 fix replaced by an alternative fix in 3.0.9 (Debian security tracker)
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-4304 is a timing side channel in OpenSSL's RSA decryption, CWE-203 (observable discrepancy). OpenSSL says it "could be sufficient to recover a plaintext across a network in a Bleichenbacher style attack", that it affects all RSA padding modes (PKCS#1 v1.5, RSA-OAEP and RSASVE), and that a successful decryption needs "a very large number of trial messages" (OpenSSL advisory of 2023-02-07). OpenSSL, the CNA, rated it Moderate. NVD's Primary score is 5.9, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N, with CWE-203; CISA's ADP entry gives the same vector (NVD, CVE record).

What has to be true for an attack to work?

The target is a service that decrypts attacker-supplied RSA ciphertext and whose processing time the attacker can measure. OpenSSL's example is TLS with RSA key exchange: an attacker who recorded a genuine session sends trial messages to the server, times each response and, "after a sufficiently large number of messages", recovers the pre-master secret of the recorded session and decrypts its application data. NVD's vector rates the impact as confidentiality only, with no integrity or availability impact, and sets attack complexity to high. Mitsubishi Electric describes the device-side risk as decrypting ciphertext "by sending specially crafted packets and performing a Bleichenbacher style attack".

Which versions and devices are affected?

OpenSSL 3.0.0 to 3.0.7, 1.1.1 to 1.1.1s and 1.0.2 to 1.0.2zf are affected. The fixes are 3.0.8, 1.1.1t and 1.0.2zg, the last for premium support customers only (OpenSSL vulnerabilities page). On the 3.0 branch, OpenSSL reverted the first fix and committed an "Alternative fix for CVE-2022-4304" on 2023-04-04 (commit a00d757d), which Debian's tracker associates with openssl-3.0.9. 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 openwrt-22.03 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. Mitsubishi scores it 5.9 with CWE-208.
  • 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 it 5.9 with CWE-326 for both products.

How do you fix CVE-2022-4304?

Move to OpenSSL 3.0.8 or 1.1.1t or later (3.0.9 or later carries the replacement 3.0 fix), or to a vendor package with the fix, and install the firmware listed above for the named products. Where an update has to wait, follow Mitsubishi's advice for its switches: use the products within a LAN, block access from untrusted networks and hosts, and use a VPN when Internet access is required. 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 release also fixed the PEM double free CVE-2022-4450 and CVE-2023-0286; older builds may also carry CVE-2022-0778 or Heartbleed, CVE-2014-0160.

Is CVE-2022-4304 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-03-06, records exploitation as "none", automatable as "no" and technical impact as "partial". FIRST EPSS gives it 0.235, the 97.8th 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: timing based side channel in OpenSSL RSA decryption, Bleichenbacher style, very large number of trial messages; NVD Primary CVSS v3.1 5.9 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N; CWE-203; CPE openssl 1.0.2 to before 1.0.2zg, 1.1.1 to before 1.1.1t, 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 timing based side channel attack; CISA-ADP CVSS 3.1 5.9 and SSVC (2025-03-06) exploitation none, automatable no, technical impact partial. — CVE.org
  • OpenSSL advisory 2023-02-07: Severity Moderate; all RSA padding modes; TLS pre-master secret example; 3.0, 1.1.1 and 1.0.2 vulnerable; upgrade to 3.0.8, 1.1.1t, 1.0.2zg (premium support only); reported by Hubert Kario (Red Hat), fix by Dmitry Belyavsky and Hubert Kario. — OpenSSL
  • OpenSSL commit a00d757d (2023-04-04) 'Alternative fix for CVE-2022-4304'; commit 908eaceb reverts the first 3.0 fix 8e257b86; Debian tracker ties a00d757d to openssl-3.0.9. — OpenSSL (GitHub) / Debian
  • 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-4304; 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): NZ2MHG-TSNT8F2 and NZ2MHG-TSNT4 firmware 05 and prior affected by CVE-2022-4304 (CWE-208), CVSS 3.1 5.9; 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-4304, update to V4.5 or later; Siemens CVSS 3.1 5.9, CWE-326. — Siemens ProductCERT
  • Siemens SSA-337522: TIM 1531 IRC and SIPLUS TIM 1531 IRC affected by CVE-2022-4304, update to V2.4.8 or later; Siemens CVSS 3.1 5.9, CWE-326. — Siemens ProductCERT
  • Not in CISA KEV catalog version 2026.11.18; EPSS 0.23509, percentile 0.97841, 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 8e257b86 (first 3.0 fix)
  5. OpenSSL commit a00d757d: Alternative fix for CVE-2022-4304
  6. Debian security tracker: CVE-2022-4304
  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-4304 (CNA: OpenSSL)
  14. CISA KEV
  15. FIRST EPSS

Frequently asked questions

How practical is an attack on CVE-2022-4304?

It is a slow statistical attack: the attacker has to send a very large number of trial messages for decryption and time each one before a plaintext such as a recorded TLS pre-master secret can be recovered. NVD rates attack complexity as high and CISA's SSVC entry records automatable as no (per the OpenSSL advisory of 2023-02-07, NVD and CVE.org).

Which OpenSSL versions fix CVE-2022-4304?

OpenSSL 3.0.8, 1.1.1t and 1.0.2zg (premium support only), released on 2023-02-07. On the 3.0 branch the first fix was later reverted and replaced by an alternative fix that Debian associates with 3.0.9. Debian ships the fix as 1.1.1n-0+deb10u4 for buster and 1.1.1n-0+deb11u4 for bullseye (per the OpenSSL advisory, OpenSSL commit a00d757d and the Debian security tracker).

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

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 (per Mitsubishi Electric advisory 2023-011 and CISA ICSA-23-278-03).

Which Siemens products list CVE-2022-4304?

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 and scores the issue 5.9 (per Siemens ProductCERT SSA-699386 and SSA-337522).

Is CVE-2022-4304 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.235, the 97.8th percentile, in the 2026-11-18 dataset (per CISA KEV, CVE.org and FIRST EPSS).