ADVISORIES

Alpine Security Database

ALPINE-CVE-2022-4304

Details

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.

Affected packages

EcosystemPackageAffected versions
Alpine:v3.14openssl
From 1.1.1 before 1.1.1t-r0 (fixed in 1.1.1t-r0)
Alpine:v3.15openssl
From 1.1.1 before 1.1.1t-r0 (fixed in 1.1.1t-r0)
Alpine:v3.16openssl
From 1.1.1 before 1.1.1t-r0 (fixed in 1.1.1t-r0)
Alpine:v3.17openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.18openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.19openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.20openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.21openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.22openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.23openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.24openssl
From 3.0.0 before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.17openssl1.1-compat
All versions before 1.1.1t-r0 (fixed in 1.1.1t-r0)
Alpine:v3.18openssl1.1-compat
All versions before 1.1.1t-r0 (fixed in 1.1.1t-r0)
Alpine:v3.15openssl3
All versions before 3.0.8-r0 (fixed in 3.0.8-r0)
Alpine:v3.16openssl3
All versions before 3.0.8-r0 (fixed in 3.0.8-r0)

References