CVE-2022-3358
A public proof of concept exists; no exploitation attested.
- Published2022-10-11
- Fixed in3.0.6
- WeaknessCWE-476
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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).
Timeline
dates in UTC- 2022-10-1115:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | ≥ 3.0.0, < 3.0.6 | 3.0.6 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 300.0 | ≥ 300.0.0, < 300.0.10 | 300.0.10 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- edk2Ubuntu:Pro:16.04:LTSall versions · no fixed version listed
- opensslWolfiall versions · fixed in 3.0.7-r0
- opensslUbuntu:22.04:LTSall versions · fixed in 3.0.2-0ubuntu1.7
- opensslRed Hat:enterprise_linux:9::baseosall versions · fixed in 1:3.0.7-6.el9_2and 4 other packages
- opensslDebian:14all versions · fixed in 3.0.7-1
- opensslDebian:13all versions · fixed in 3.0.7-1
- opensslDebian:12all versions · fixed in 3.0.7-1
- opensslCleanStartall versions · fixed in 3.0.6-r0
19 more package ranges on OSV.dev
Vendor advisories
openssl: Using a Custom Cipher with NID_undef may lead to NULL encryption
openssl as a component of Red Hat Enterprise Linux 6 · openssl-devel as a component of Red Hat Enterprise Linux 6 · openssl-perl as a component of Red Hat Enterprise Linux 6 · +11 more
Red Hat Security Advisory: openssl security and bug fix update
Fix
- Update OpenSSL to 3.0.6
- Vendor fix Red Hat Product Security RHSA-2023:2523 · 49 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 For the update to take effect, all services linked to the OpenSSL library must be restarted, or the system rebooted.
- No fix planned, says the vendor Red Hat Product Security CVE-2022-3358 · 14 productsOut of support scope
Advisories and patches
- www.openssl.orgVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-03
- Metasploit modules
- 1 moduleauxiliary/scanner/ssl/ssl_versionrank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- NVDCVSS 3.17.5read 2026-10-23
- NVDweakness (CWE)CWE-476read 2026-10-23
- FIRST EPSSEPSS score4.0 %2026-12-03
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2022-10-12
Identifiers
- CGA-9824-c7rj-v544same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gx24-hprr-8mwmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-pg9r-c55g-92xjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-vxwm-p32h-jjj7same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2022-7013same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-4f63-89w9-3jjvsame flawGitHub Advisory Database · CC-BY-4.0
- RUSTSEC-2022-0059same flawRustSec · CC0-1.0
- auxiliary/scanner/ssl/ssl_versionexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- ALSA-2023:2523advisory covering several CVEsAlmaLinux · MIT
- openSUSE-SU-2024:12475-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:2523advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2022:3843-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5710-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Published
- 2022-10-11
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-4f63-89w9-3jjv
Frequently asked questions
What is CVE-2022-3358?
Is CVE-2022-3358 actively exploited?
What is the CVSS score for CVE-2022-3358?
Running OpenSSL? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-4f63-89w9-3jjv
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0