CVE-2022-4304 Timing Oracle in RSA Decryption

Medium 5.9 Published Updated

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.

PackageAffectedFixed in
openssl-src crates.ioAll versions111.25.0
openssl-src crates.ioAll versions111.25.0
openssl-src crates.ioFrom 0.0.0-0111.25.0, 300.0.12
openssl-src crates.ioFrom 300.0.0300.0.12
openssl-src crates.ioFrom 300.0.0300.0.12
Linux distribution packages (35)
openssl-1_0_0 SUSE:Enterprise Storage 7All versions1.0.2p-150000.3.79.1
openssl-1_0_0 SUSE:Enterprise Storage 7.1All versions1.0.2p-150000.3.79.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.1.0i-150100.14.56.1
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.0.2p-150000.3.79.1
openssl-1_0_0 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.0.2p-150000.3.79.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.3All versions1.1.1l-150400.7.42.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.4All versions1.1.1l-150400.7.42.1
openssl-1_1 SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions1.1.1l-150400.7.42.1
compat-openssl098 SUSE:Linux Enterprise Module for Legacy 12All versions0.9.8j-106.42.1
openssl-1_0_0 SUSE:Linux Enterprise Module for Legacy 15 SP4All versions1.0.2p-150000.3.79.1
openssl-1_0_0 SUSE:Linux Enterprise Module for Legacy 15 SP5All versions1.0.2p-150000.3.79.1
openssl SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREAll versions0.9.8j-0.106.60.1
openssl SUSE:Linux Enterprise Server 12 SP2-BCLAll versions1.0.2j-60.98.1
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions1.0.2p-3.78.1
openssl-1_1 SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions1.1.1d-2.89.1
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions1.0.2p-3.78.1
openssl-1_1 SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions1.1.1d-2.89.1
openssl-1_0_0 SUSE:Linux Enterprise Server 12 SP5All versions1.0.2p-3.78.1
openssl-1_1 SUSE:Linux Enterprise Server 12 SP5All versions1.1.1d-2.89.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.0.2p-150000.3.79.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.1.0i-150100.14.56.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.0.2p-150000.3.79.1
openssl-1_0_0 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.0.2p-150000.3.79.1
compat-openssl098 SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions0.9.8j-106.42.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions1.0.2p-3.78.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions1.1.1d-2.89.1
compat-openssl098 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions0.9.8j-106.42.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.0.2p-3.78.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.1.1d-2.89.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.0.2p-150000.3.79.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.1.0i-150100.14.56.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.0.2p-150000.3.79.1
openssl-1_0_0 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.0.2p-150000.3.79.1
openssl-1_0_0 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.0.2p-3.78.1
openssl-1_1 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.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.

All Openssl Openssl vulnerabilities

Sources

Also known as ALPINE-CVE-2022-4304, AZL-13302, AZL-13310, AZL-31140, AZL-34668, AZL-37662 and 19 more.

Is CVE-2022-4304 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free