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 EVPCIPHERmethnew() function with NIDundef 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 EVPCIPHERmethnew() function with NIDundef parameter in encryption/decryption initialization functions (EVPEncryptInitex2(), EVPDecryptInitex2(), and EVPCipherInitex2()). 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 EVPCIPHERmethnew() using NIDundef 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 EVPCIPHERmeth_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

CVE-2025-65807HIGH8.4
  • RustRust
  • sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • wasmi
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

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