# Zerocopy: Some Ref methods are unsound with some type parameters

Source: https://junglewise.ai/threats/zerocopy-some-ref-methods-are-unsound-with-some-type-parameters-87bd30f5  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-12-18  
License: CC BY 4.0 with a link back

Severity: info · Published 2023-12-18

Zerocopy: Some Ref methods are unsound with some type parameters

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

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 18 December 2023.

**Which products and versions are affected?** zerocopy (crates.io) SEMVER:introduced=0.2.2,fixed=0.2.9.

**Is there a fix for This vulnerability?** Yes. zerocopy (crates.io): upgrade to 0.2.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run zerocopy (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

- zerocopy (crates.io): upgrade to 0.2.9 or later

  ```sh
  cargo update -p zerocopy
  ```


## Affected products

- zerocopy (crates.io) SEMVER:introduced=0.2.2,fixed=0.2.9

## Related threats

- [Ref methods into_ref, into_mut, into_slice, and into_slice_mut are unsound when used with cell::Ref or cell::RefMut](https://junglewise.ai/threats/ref-methods-into-ref-into-mut-into-slice-and-into-slice-mut-are-unsound-38a82a24)
- [RUSTSEC-2023-0074 - Some Ref methods are unsound with some type parameters](https://junglewise.ai/threats/rustsec-2023-0074-some-ref-methods-are-unsound-with-some-type-b2640706)
