# CVE-2022-4304: Timing Oracle in RSA Decryption

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 23.5%, higher than 97% of CVEs (2026-12-02)
- Published: 2023-02-07T12:00:00.000Z
- Modified: 2026-10-14T15:16:59.863Z
- Also known as: GHSA-p52g-cm5j-mjv4, RUSTSEC-2023-0007
- Weaknesses: CWE-203
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openssl

## Description

A timing based side channel exists in the OpenSSL RSA Decryption implementation
which could be sufficient to recover a plaintext across a network in a
Bleichenbacher style attack. To achieve a successful decryption an attacker
would have to be able to send a very large number of trial messages for
decryption. The vulnerability affects all RSA padding modes: PKCS#1 v1.5,
RSA-OEAP and RSASVE.

For example, in a TLS connection, RSA is commonly used by a client to send an
encrypted pre-master secret to the server. An attacker that had observed a
genuine connection between a client and a server could use this flaw to send
trial messages to the server and record the time taken to process them. After a
sufficiently large number of messages the attacker could recover the pre-master
secret used for the original connection and thus be able to decrypt the
application data sent over that connection.

(As written by CVE List.)

## Affected

- OpenSSL OpenSSL: from 3.0.0 before 3.0.8; from 1.1.1 before 1.1.1t; from 1.0.2 before 1.0.2zg
- openssl-src (crates.io): before 111.25.0; from 300.0.0 before 300.0.12; from 0.0.0-0 before 111.25.0
- stormshield endpoint_security: before 7.2.40
- stormshield sslvpn: before 3.2.1
- stormshield stormshield_network_security: from 2.7.0 before 2.7.11; from 2.8.0 before 3.7.34; from 3.8.0 before 3.11.22; from 4.0.0 before 4.3.16; from 4.4.0 before 4.6.3

## Every score

- CISA-ADP: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://www.openssl.org/news/secadv/20230207.txt> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202402-08> (web)
- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003> (web)
- <https://cert-portal.siemens.com/productcert/html/ssa-203374.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-561322.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-264814.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-699386.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-943925.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-556635.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-879734.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-625862.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-337522.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-769027.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4304> (advisory)
- <https://rustsec.org/advisories/RUSTSEC-2023-0007.html> (advisory, web)
- <https://crates.io/crates/openssl-src> (package)

## Sources

- CVE List: [CVE-2022-4304](https://www.cve.org/CVERecord?id=CVE-2022-4304), CVE Terms of Use, modified 2026-10-14
- GitHub Advisory Database: [GHSA-p52g-cm5j-mjv4](https://github.com/advisories/GHSA-p52g-cm5j-mjv4), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2023-0007](https://rustsec.org/advisories/RUSTSEC-2023-0007.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2022-4304](https://nvd.nist.gov/vuln/detail/CVE-2022-4304), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2022-4304 · Whole record: https://cve.day/CVE-2022-4304.json · Rebuilt by cve.day 2026-11-25T22:58:18.541Z
