CVE-2022-3358
Rust vulnerability analysis and mitigation

Overview

OpenSSL versions 3.0.0 to 3.0.5 contain a vulnerability (CVE-2022-3358) related to incorrect handling of legacy custom ciphers. The vulnerability was discovered on August 9, 2022, by Chris Rapier of the Pittsburgh Supercomputing Center and was publicly disclosed on October 11, 2022. The issue affects applications that use the legacy EVP_CIPHER_meth_new() function with NID_undef parameter in OpenSSL 3.0.0-3.0.5, while OpenSSL 1.1.1 and 1.0.2 are not affected (OpenSSL Advisory).

Technical details

The vulnerability occurs when applications use the deprecated EVP_CIPHER_meth_new() function with NID_undef parameter in encryption/decryption initialization functions (EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2(), and EVP_CipherInit_ex2()). Instead of using the custom cipher directly, OpenSSL incorrectly attempts to fetch an equivalent cipher based on the NID, resulting in the use of a NULL cipher that outputs plaintext as ciphertext. The vulnerability has been assigned a severity rating of Low by OpenSSL (OpenSSL Advisory).

Impact

When successfully exploited, this vulnerability could lead to disclosure of sensitive information as the NULL cipher causes plaintext to be output as ciphertext. However, the impact is limited to applications that specifically call EVP_CIPHER_meth_new() using NID_undef and subsequently use it in encryption/decryption initialization functions. Applications that only use SSL/TLS are not impacted by this issue (OpenSSL Advisory, NetApp Advisory).

Mitigation and workarounds

OpenSSL 3.0 users should upgrade to OpenSSL 3.0.6 or later to address this vulnerability. Application authors are encouraged to use the new provider mechanism instead of the legacy EVP_CIPHER_meth_new() function for implementing custom ciphers. No workarounds are available for this vulnerability (OpenSSL Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0232HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0231HIGH7.5
  • Rust logoRust
  • nostr-relay-pool
NoYesAug 01, 2026
RUSTSEC-2026-0230HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
RUSTSEC-2026-0229HIGH7.5
  • Rust logoRust
  • nostr
NoYesAug 01, 2026
CVE-2026-68930MEDIUM6.5
  • Rust logoRust
  • russh
NoYesAug 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management