CVE-2020-36465
HIGH 7.5CVSS 3.1Use after free in generic-array
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.
- Published
- 8 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-3358-4f7f-p4j4RUSTSEC-2020-0146
- Sources
- NVDJSONOSV GHSA-3358-4f7f-p4j4JSONOSV RUSTSEC-2020-0146JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | generic-array_project | generic-arraycpe:2.3:a:generic-array_project:generic-array:*:*:*:*:*:rust:*:* |
>= 0.8.0, < 0.8.4 | 0.8.4 |
| NVD | generic-array_project | generic-arraycpe:2.3:a:generic-array_project:generic-array:*:*:*:*:*:rust:*:* |
>= 0.9.0, < 0.9.1 | 0.9.1 |
| NVD | generic-array_project | generic-arraycpe:2.3:a:generic-array_project:generic-array:*:*:*:*:*:rust:*:* |
>= 0.10.0, < 0.10.1 | 0.10.1 |
| NVD | generic-array_project | generic-arraycpe:2.3:a:generic-array_project:generic-array:*:*:*:*:*:rust:*:* |
>= 0.11.0, < 0.11.2 | 0.11.2 |
| NVD | generic-array_project | generic-arraycpe:2.3:a:generic-array_project:generic-array:*:*:*:*:*:rust:*:* |
>= 0.12.0, < 0.12.4 | 0.12.4 |
| NVD | generic-array_project | generic-arraycpe:2.3:a:generic-array_project:generic-array:*:*:*:*:*:rust:*:* |
>= 0.13.0, < 0.13.3 | 0.13.3 |
| OSV | crates.io | generic-array | >= 0.13.0, < 0.13.3 | 0.13.3 |
| OSV | crates.io | generic-array | >= 0.12.0, < 0.12.4 | 0.12.4 |
| OSV | crates.io | generic-array | >= 0.11.0, < 0.11.2 | 0.11.2 |
| OSV | crates.io | generic-array | >= 0.10.0, < 0.10.1 | 0.10.1 |
| OSV | crates.io | generic-array | >= 0.8.0, < 0.9.1 | 0.9.1 |
| OSV | crates.io | generic-array | >= 0.8.0, < 0.8.4; >= 0.9.0, < 0.9.1; >= 0.10.0, < 0.10.1; >= 0.11.0, < 0.11.2; >= 0.12.0, < 0.12.4; >= 0.13.0, < 0.13.3 | 0.8.4, 0.9.1, 0.10.1, 0.11.2, 0.12.4, 0.13.3 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/generic-array/RUSTSEC-2020-0146.md · Third Party Advisory
- https://rustsec.org/advisories/RUSTSEC-2020-0146.html · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-36465 · ADVISORY
- https://github.com/fizyk20/generic-array/issues/98 · WEB, REPORT
- https://github.com/fizyk20/generic-array · PACKAGE
- https://crates.io/crates/generic-array · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Apr 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)