Patchwire CVEs, their patch status, and feeds to follow them

CVE-2022-3358

Fixed in a distro release EPSS 4%

OpenSSL supports creating a custom cipher via the legacy EVP_CIPHER_meth_new() function and associated function calls. This function was deprecated in OpenSSL 3.0 and application authors are instead encouraged to use the new provider mechanism in order to implement custom ciphers. OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and EVP_CipherInit_ex2() functions (as well as other similarly named encryption and decryption initialisation functions). Instead of using the custom cipher directly it incorrectly tries to fetch an equivalent cipher from the available providers. An equivalent cipher is found based on the NID passed to EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a given cipher. However it is possible for an application to incorrectly pass NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef is used in this way the OpenSSL encryption/decryption initialisation function will match the NULL cipher as being equivalent and will fetch this from the available providers. This will succeed if the default provider has been loaded (or if a third party provider has been loaded that offers this cipher). Using the NULL cipher means that the plaintext is emitted as the ciphertext. Applications are only affected by this issue if they call EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an encryption/decryption initialisation function. Applications that only use SSL/TLS are not impacted by this issue. Fixed in OpenSSL 3.0.6 (Affected 3.0.0-3.0.5).

Published 2022-10-11 · CVE record · OSV

Products: OpenSSL

Fixed upstream

EcosystemPackageFixed in
crates.ioopenssl-src300.0.10

Distro releases

ReleasePackageFixed in
AlmaLinux 9openssl1:3.0.7-6.el9_2
AlmaLinux 9openssl-devel1:3.0.7-6.el9_2
AlmaLinux 9openssl-libs1:3.0.7-6.el9_2
AlmaLinux 9openssl-perl1:3.0.7-6.el9_2
Alpine 3.15openssl33.0.6-r0
Alpine 3.16openssl33.0.6-r0
Alpine 3.17openssl3.0.6-r0
Alpine 3.18openssl3.0.6-r0
Alpine 3.19openssl3.0.6-r0
Alpine 3.20openssl3.0.6-r0
Alpine 3.21openssl3.0.6-r0
Alpine 3.22openssl3.0.6-r0
Alpine 3.23openssl3.0.6-r0
Alpine 3.24openssl3.0.6-r0
Chainguardlibcrypto33.0.7-r0
Chainguardlibssl33.0.7-r0
Chainguardopenssl3.0.7-r0
Chainguardopenssl-config3.0.7-r0
Chainguardopenssl-dbg3.0.7-r0
Chainguardopenssl-dev3.0.7-r0
Chainguardopenssl-doc3.0.7-r0
Chainguardopenssl-engine-afalg3.0.7-r0
Chainguardopenssl-engine-capi3.0.7-r0
Chainguardopenssl-engine-loader-attic3.0.7-r0
Chainguardopenssl-engine-padlock3.0.7-r0
Chainguardopenssl-provider-legacy3.0.7-r0
Chainguardruby-3.10
Chainguardruby-3.1-base0
Chainguardruby-3.1-base-dev0
Chainguardruby-3.1-dev0
Chainguardruby-3.1-doc0
Debian 12openssl3.0.7-1
Debian 13openssl3.0.7-1
Debian 14openssl3.0.7-1
Red Hat Enterprise Linux 9openssl1:3.0.7-6.el9_2
Red Hat Enterprise Linux 9openssl-debuginfo1:3.0.7-6.el9_2
Red Hat Enterprise Linux 9openssl-debugsource1:3.0.7-6.el9_2
Red Hat Enterprise Linux 9openssl-devel1:3.0.7-6.el9_2
Red Hat Enterprise Linux 9openssl-libs1:3.0.7-6.el9_2
Red Hat Enterprise Linux 9openssl-libs-debuginfo1:3.0.7-6.el9_2
Red Hat Enterprise Linux 9openssl-perl1:3.0.7-6.el9_2
SUSE Linux Enterprise Module for Basesystem 15 SP4openssl-33.0.1-150400.4.11.1
Ubuntu 22.04 LTSopenssl3.0.2-0ubuntu1.7
Ubuntu Pro 16.04 LTSedk2no fix
Wolfilibcrypto33.0.7-r0
Wolfilibssl33.0.7-r0
Wolfiopenssl3.0.7-r0
Wolfiopenssl-config3.0.7-r0
Wolfiopenssl-dbg3.0.7-r0
Wolfiopenssl-dev3.0.7-r0
Wolfiopenssl-doc3.0.7-r0
Wolfiopenssl-engine-afalg3.0.7-r0
Wolfiopenssl-engine-capi3.0.7-r0
Wolfiopenssl-engine-loader-attic3.0.7-r0
Wolfiopenssl-engine-padlock3.0.7-r0
Wolfiopenssl-provider-legacy3.0.7-r0
Wolfiruby-3.10
Wolfiruby-3.1-base0
Wolfiruby-3.1-base-dev0
Wolfiruby-3.1-dev0
Wolfiruby-3.1-doc0
openSUSE Leap 15.4openssl-33.0.1-150400.4.11.1
openSUSE Tumbleweedopenssl-33.0.7-1.1