CVE-2022-4304 Timing Oracle in RSA Decryption
An attacker can recover plaintext from RSA decryption via timing side-channel attacks, potentially decrypting TLS traffic.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-4304?
CVE-2022-4304 is a medium-severity vulnerability in Openssl Openssl, published on 8 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-203
Which versions are affected by CVE-2022-4304?
5 open source packages ship an affected version, including openssl-src. It affects 4 products.
| Package | Affected | Fixed in |
|---|---|---|
openssl-src crates.io | All versions | 111.25.0 |
openssl-src crates.io | All versions | 111.25.0 |
openssl-src crates.io | From 0.0.0-0 | 111.25.0, 300.0.12 |
openssl-src crates.io | From 300.0.0 | 300.0.12 |
openssl-src crates.io | From 300.0.0 | 300.0.12 |
Linux distribution packages (35)
openssl-1_0_0 SUSE:Enterprise Storage 7 | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_0_0 SUSE:Enterprise Storage 7.1 | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.1.0i-150100.14.56.1 |
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_1 SUSE:Linux Enterprise Micro 5.3 | All versions | 1.1.1l-150400.7.42.1 |
openssl-1_1 SUSE:Linux Enterprise Micro 5.4 | All versions | 1.1.1l-150400.7.42.1 |
openssl-1_1 SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 1.1.1l-150400.7.42.1 |
compat-openssl098 SUSE:Linux Enterprise Module for Legacy 12 | All versions | 0.9.8j-106.42.1 |
openssl-1_0_0 SUSE:Linux Enterprise Module for Legacy 15 SP4 | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_0_0 SUSE:Linux Enterprise Module for Legacy 15 SP5 | All versions | 1.0.2p-150000.3.79.1 |
openssl SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | All versions | 0.9.8j-0.106.60.1 |
openssl SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 1.0.2j-60.98.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP4-ESPOS | All versions | 1.0.2p-3.78.1 |
openssl-1_1 SUSE:Linux Enterprise Server 12 SP4-ESPOS | All versions | 1.1.1d-2.89.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 1.0.2p-3.78.1 |
openssl-1_1 SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 1.1.1d-2.89.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.0.2p-3.78.1 |
openssl-1_1 SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.1.1d-2.89.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_1 SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 1.1.0i-150100.14.56.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 1.0.2p-150000.3.79.1 |
compat-openssl098 SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 0.9.8j-106.42.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 1.0.2p-3.78.1 |
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 1.1.1d-2.89.1 |
compat-openssl098 SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 0.9.8j-106.42.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.0.2p-3.78.1 |
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.1.1d-2.89.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 1.1.0i-150100.14.56.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 1.0.2p-150000.3.79.1 |
openssl-1_0_0 SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 1.0.2p-3.78.1 |
openssl-1_1 SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 1.1.1d-2.89.1 |
Products include Openssl Openssl, Stormshield Endpoint Security, Stormshield Sslvpn, Stormshield Stormshield Network Security.
How do I fix CVE-2022-4304?
Upgrade openssl-src to a fixed version for your release line: 111.25.0 or 300.0.12.
Is CVE-2022-4304 being exploited?
There is no known exploitation of CVE-2022-4304 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Openssl Openssl
Sources
Also known as ALPINE-CVE-2022-4304, AZL-13302, AZL-13310, AZL-31140, AZL-34668, AZL-37662 and 19 more.