# CVE-2022-3358: libssl3t64: OpenSSL supports creating a custom cipher via the legacyEVP_CIPHER_meth_new() function and associated function calls

CVE-2022-3358 is fixed in 9 products on 1 platform, first by DEBIAN-CVE-2022-3358, released October 11, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-3358
- Priority: High
- CVSS: 7.5 (Low)
- EPSS: 0.0404
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 11, 2022

## Description

OpenSSL supports creating a custom cipher via the legacyEVP_CIPHER_meth_new() function and associated function calls. This functionwas deprecated in OpenSSL 3.0 and application authors are insteadencouraged to use the new provider mechanism in order to implement customciphers. OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy customciphers passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() andEVP_CipherInit_ex2() functions (as well as other similarly named encryptionand decryption initialisation functions). Instead of using the customcipher directly it incorrectly tries to fetch an equivalent cipher from theavailable providers. An equivalent cipher is found based on the NID passedto EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NIDfor a given cipher. However it is possible for an application toincorrectly pass NID_undef as this value in the call toEVP_CIPHER_meth_new(). When NID_undef is used in this way the OpenSSLencryption/decryption initialisation function will match the NULL cipher asbeing equivalent and will fetch this from the available providers. Thiswill succeed if the default provider has been loaded (or if a third partyprovider has been loaded that offers this cipher). Using the NULL ciphermeans that the plaintext is emitted as the ciphertext. Applications areonly affected by this issue if they call EVP_CIPHER_meth_new() usingNID_undef and subsequently use it in a call to an encryption/decryptioninitialisation function. Applications that only use SSL/TLS are notimpacted by this issue. Fixed in OpenSSL 3.0.6 (Affected 3.0.0-3.0.5).

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libssl3 Ubuntu 22.04.1 LTS (jammy) | 3.0.2-0ubuntu1.7 | [libssl3 3.0.2-0ubuntu1.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libssl3-3.0.2-0ubuntu1.7.md) | Oct 31, 2022 |
| Linux | libssl3t64 Ubuntu 24.10 (oracular) | 3.0.5-2ubuntu2 | [libssl3t64 3.0.5-2ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libssl3t64-3.0.5-2ubuntu2.md) | Nov 1, 2022 |
| Linux | libssl3t64 Ubuntu 25.04 (plucky) | 3.0.5-2ubuntu2 | [libssl3t64 3.0.5-2ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libssl3t64-3.0.5-2ubuntu2.md) | Nov 1, 2022 |
| Linux | openssl Debian 12.15 (bookworm) | 3.0.7-1 | [DEBIAN-CVE-2022-3358](https://patchblox.com/security/data/fix/linux/debian-cve-2022-3358.md) | Oct 11, 2022 |
| Linux | openssl Debian 13.5 (trixie) | 3.0.7-1 | [DEBIAN-CVE-2022-3358](https://patchblox.com/security/data/fix/linux/debian-cve-2022-3358.md) | Oct 11, 2022 |
| Linux | openssl Debian 14 | 3.0.7-1 | [DEBIAN-CVE-2022-3358](https://patchblox.com/security/data/fix/linux/debian-cve-2022-3358.md) | Oct 11, 2022 |
| Linux | openssl RHEL 9 | 1:3.0.7-6.el9_2 | [RHSA-2023:2523](https://patchblox.com/security/data/fix/linux/rhsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl Ubuntu 22.04.1 LTS (jammy) | 3.0.2-0ubuntu1.7 | [openssl 3.0.2-0ubuntu1.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-openssl-3.0.2-0ubuntu1.7.md) | Oct 31, 2022 |
| Linux | openssl Ubuntu 24.10 (oracular) | 3.0.5-2ubuntu2 | [openssl 3.0.5-2ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-openssl-3.0.5-2ubuntu2.md) | Nov 1, 2022 |
| Linux | openssl Ubuntu 25.04 (plucky) | 3.0.5-2ubuntu2 | [openssl 3.0.5-2ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-openssl-3.0.5-2ubuntu2.md) | Nov 1, 2022 |
| Linux | openssl almalinux 9 | 1:3.0.7-6.el9_2 | [ALSA-2023:2523](https://patchblox.com/security/data/fix/linux/alsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl amzn 2023 | 1:3.0.8-1.amzn2023.0.1 | [ALAS2023-2023-054](https://patchblox.com/security/data/fix/linux/alas2023-2023-054.md) | Feb 17, 2023 |
| Linux | openssl ol 9 | 1:3.0.7-6.0.1.el9_2 | [ELSA-2023-2523](https://patchblox.com/security/data/fix/linux/elsa-2023-2523.md) | May 15, 2023 |
| Linux | openssl-debuginfo amzn 2023 | 1:3.0.8-1.amzn2023.0.1 | [ALAS2023-2023-054](https://patchblox.com/security/data/fix/linux/alas2023-2023-054.md) | Feb 17, 2023 |
| Linux | openssl-debugsource amzn 2023 | 1:3.0.8-1.amzn2023.0.1 | [ALAS2023-2023-054](https://patchblox.com/security/data/fix/linux/alas2023-2023-054.md) | Feb 17, 2023 |
| Linux | openssl-devel RHEL 9 | 1:3.0.7-6.el9_2 | [RHSA-2023:2523](https://patchblox.com/security/data/fix/linux/rhsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl-devel almalinux 9 | 1:3.0.7-6.el9_2 | [ALSA-2023:2523](https://patchblox.com/security/data/fix/linux/alsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl-devel amzn 2023 | 1:3.0.8-1.amzn2023.0.1 | [ALAS2023-2023-054](https://patchblox.com/security/data/fix/linux/alas2023-2023-054.md) | Feb 17, 2023 |
| Linux | openssl-devel ol 9 | 1:3.0.7-6.0.1.el9_2 | [ELSA-2023-2523](https://patchblox.com/security/data/fix/linux/elsa-2023-2523.md) | May 15, 2023 |
| Linux | openssl-libs RHEL 9 | 1:3.0.7-6.el9_2 | [RHSA-2023:2523](https://patchblox.com/security/data/fix/linux/rhsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl-libs almalinux 9 | 1:3.0.7-6.el9_2 | [ALSA-2023:2523](https://patchblox.com/security/data/fix/linux/alsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl-libs amzn 2023 | 1:3.0.8-1.amzn2023.0.1 | [ALAS2023-2023-054](https://patchblox.com/security/data/fix/linux/alas2023-2023-054.md) | Feb 17, 2023 |
| Linux | openssl-libs ol 9 | 1:3.0.7-6.0.1.el9_2 | [ELSA-2023-2523](https://patchblox.com/security/data/fix/linux/elsa-2023-2523.md) | May 15, 2023 |
| Linux | openssl-libs-debuginfo amzn 2023 | 1:3.0.8-1.amzn2023.0.1 | [ALAS2023-2023-054](https://patchblox.com/security/data/fix/linux/alas2023-2023-054.md) | Feb 17, 2023 |
| Linux | openssl-perl RHEL 9 | 1:3.0.7-6.el9_2 | [RHSA-2023:2523](https://patchblox.com/security/data/fix/linux/rhsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl-perl almalinux 9 | 1:3.0.7-6.el9_2 | [ALSA-2023:2523](https://patchblox.com/security/data/fix/linux/alsa-2023-2523.md) | May 9, 2023 |
| Linux | openssl-perl amzn 2023 | 1:3.0.8-1.amzn2023.0.1 | [ALAS2023-2023-054](https://patchblox.com/security/data/fix/linux/alas2023-2023-054.md) | Feb 17, 2023 |
| Linux | openssl-perl ol 9 | 1:3.0.7-6.0.1.el9_2 | [ELSA-2023-2523](https://patchblox.com/security/data/fix/linux/elsa-2023-2523.md) | May 15, 2023 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
