# CVE-2022-3358: RUSTSEC-2022-0059 - Using a Custom Cipher with `NID_undef` may lead to NULL encryption

Source: https://junglewise.ai/threats/cve-2022-3358-using-a-custom-cipher-with-nid-undef-may-lead-to-null-encryption  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-11  
License: CC BY 4.0 with a link back

CVE-2022-3358 · Severity: low · CVSS 3.1 · Published 2022-10-11

Using a Custom Cipher with `NID_undef` may lead to NULL encryption

Technologies: [openssl-src (crates.io)](https://junglewise.ai/threats/technologies/openssl-src). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2022-3358 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-3358 being exploited in the wild.

**How severe is CVE-2022-3358?** Low severity, with a CVSS score of 3.1, published 11 October 2022.

**Which products and versions are affected?** openssl-src (crates.io) SEMVER:introduced=300.0.0,fixed=300.0.10.

**Is there a fix for CVE-2022-3358?** Yes. openssl-src (crates.io): upgrade to 300.0.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-3358?** Check whether you run openssl-src (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- openssl-src (crates.io): upgrade to 300.0.10 or later

  ```sh
  cargo update -p openssl-src
  ```


## Affected products

- openssl-src (crates.io) SEMVER:introduced=300.0.0,fixed=300.0.10

## Identifiers

- CVE-2022-3358
- GHSA-4f63-89w9-3jjv
- RUSTSEC-2022-0059

## Related threats

- [RUSTSEC-2023-0009 - Use-after-free following `BIO_new_NDEF`](https://junglewise.ai/threats/cve-2023-0215-openssl-src-vulnerable-to-use-after-free-following-bio-new-ndef)
- [RUSTSEC-2023-0008 - X.509 Name Constraints Read Buffer Overflow](https://junglewise.ai/threats/cve-2022-4203-openssl-src-contains-read-buffer-overflow-in-x-509-name-constraint)
- [RUSTSEC-2023-0006 - X.400 address type confusion in X.509 `GeneralName`](https://junglewise.ai/threats/cve-2023-0286-vulnerable-openssl-included-in-cryptography-wheels)
- [RUSTSEC-2023-0007 - Timing Oracle in RSA Decryption](https://junglewise.ai/threats/cve-2022-4304-hitachi-energy-gms600-observable-discrepancy-in-openssl-rsa)
- [RUSTSEC-2023-0011 - Invalid pointer dereference in `d2i_PKCS7` functions](https://junglewise.ai/threats/cve-2023-0216-openssl-src-subject-to-invalid-pointer-dereference-in-d2i-pkcs7)
