# `array!` macro is unsound in presence of traits that implement methods it calls internally

Source: https://junglewise.ai/threats/array-macro-is-unsound-in-presence-of-traits-that-implement-methods-it-7af59f55  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-06-16  
License: CC BY 4.0 with a link back

Severity: info · Published 2022-06-16

`array!` macro is unsound in presence of traits that implement methods it calls internally

Technologies: [array-macro (crates.io)](https://junglewise.ai/threats/technologies/array-macro). 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 16 June 2022.

**Which products and versions are affected?** array-macro (crates.io) SEMVER:introduced=0.1.2,fixed=1.0.5.

**Is there a fix for This vulnerability?** Yes. array-macro (crates.io): upgrade to 1.0.5 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 array-macro (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

- array-macro (crates.io): upgrade to 1.0.5 or later

  ```sh
  cargo update -p array-macro
  ```


## Affected products

- array-macro (crates.io) SEMVER:introduced=0.1.2,fixed=1.0.5

## Related threats

- [`array!` macro is unsound when its length is impure constant](https://junglewise.ai/threats/array-macro-is-unsound-when-its-length-is-impure-constant-d7dcbaf7)
- [RUSTSEC-2022-0017 - `array!` macro is unsound when its length is impure constant](https://junglewise.ai/threats/rustsec-2022-0017-array-macro-is-unsound-when-its-length-is-impure-b90e9dec)
- [RUSTSEC-2020-0161 - `array!` macro is unsound in presence of traits that implement methods it calls internally](https://junglewise.ai/threats/rustsec-2020-0161-array-macro-is-unsound-in-presence-of-traits-that-4f7acac4)
