nday
CVE-2022-3358

Using a Custom Cipher with NID_undef may lead to NULL encryption

OpenSSL / OpenSSL

Disclosed . nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: metasploit. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

NULL pointer dereference
CWE-476, stated by NVD's analysts
remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from NVD's analysts
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from NVD's analysts
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from NVD's analysts
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1) from NVD's analysts
Metasploit
Metasploit modules auxiliary/scanner/ssl/ssl_version
OpenSSL
affected products in the CVE record: OpenSSL · OpenSSLCPE names NVD's analysts give as vulnerable: a:openssl:openssl
open-source library / framework
affected products in the CVE record: OpenSSL · OpenSSLCPE names NVD's analysts give as vulnerable: a:openssl:opensslthe product type of OpenSSL in nday's product registry
stage
POC
disclosed
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2022-10-11T15:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
metasploit
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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).

Original text of the CVE record (cvelist), shown as published.

Event log

+DISdisclosed

CVE record published by openssl.

src cvelist · nday , bulk import · raw
{
  "id": 62186,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2022-3358",
  "occurred_at": "2022-10-11T15:00:14.123Z",
  "observed_at": "2026-11-12T19:05:02.001372Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2022-10-11T15:00:14.123Z",
    "assigner_short_name": "openssl"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module auxiliary/scanner/ssl/ssl_version (SSL/TLS Version Detection). The source gives no release time for the module.

src metasploit auxiliary/scanner/ssl/ssl_version · nday , bulk import · raw
{
  "id": 50271,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/ssl/ssl_version.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "auxiliary/scanner/ssl/ssl_version",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/ssl/ssl_version.rb",
    "kind": "msf_module",
    "path": "/modules/auxiliary/scanner/ssl/ssl_version.rb",
    "rank": 300,
    "check": false,
    "title": "SSL/TLS Version Detection",
    "cve_ids": [
      "CVE-2014-3566",
      "CVE-2016-0800",
      "CVE-2011-3389",
      "CVE-2013-2566",
      "CVE-2015-4000",
      "CVE-2022-3358"
    ],
    "fullname": "auxiliary/scanner/ssl/ssl_version",
    "rank_name": "normal",
    "confidence": "curated",
    "module_type": "auxiliary",
    "module_last_modified": "2026-06-17 11:11:50 +0000",
    "vuln_disclosure_date": "2014-10-14"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.