What’s Vulnerable › Vulnerabilities
CVE-2020-36465: arr! macro erases lifetimes
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-08 · updated 2026-06-17
Description
An issue was discovered in the generic-array crate before 0.13.3 for Rust. It violates soundness by using the arr! macro to extend lifetimes.
Affected products
- Generic-Array Project Generic-Array: from 0.8.0 before 0.8.4; from 0.9.0 before 0.9.1; from 0.10.0 before 0.10.1; from 0.11.0 before 0.11.2; from 0.12.0 before 0.12.4; from 0.13.0 before 0.13.3 — fixed in 0.10.1, 0.11.2, 0.12.4, 0.13.3, 0.8.4, 0.9.1
- Crates.Io Generic-Array: from 0.13.0 before 0.13.3; from 0.12.0 before 0.12.4; from 0.11.0 before 0.11.2; from 0.10.0 before 0.10.1; from 0.8.0 before 0.9.1 — fixed in 0.13.3, 0.12.4, 0.11.2, 0.10.1, 0.9.1
How to fix
Upgrade to a fixed version: Generic-Array Project Generic-Array 0.10.1, 0.11.2, 0.12.4, 0.13.3; Crates.Io Generic-Array 0.13.3, 0.12.4, 0.11.2, 0.10.1. Check the vendor advisory for mitigations.
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/generic-array/RUSTSEC-2020-0146.md
- https://rustsec.org/advisories/RUSTSEC-2020-0146.html
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/generic-array/RUSTSEC-2020-0146.md
- https://rustsec.org/advisories/RUSTSEC-2020-0146.html
Get alerted when CVE-2020-36465 or the next vulnerability affects your stack