CVE-2021-28032
CRITICAL 9.8CVSS 3.1Use after free in nano_arena
An issue was discovered in the nano_arena crate before 0.5.2 for Rust. There is an aliasing violation in split_at because two mutable references can exist for the same element, if Borrow<Idx> behaves in certain ways. This can have a resultant out-of-bounds write or use-after-free.
- Published
- 5 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-wp34-mqw5-jj85RUSTSEC-2021-0031
- Sources
- NVDJSONOSV GHSA-wp34-mqw5-jj85JSONOSV RUSTSEC-2021-0031JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nano_arena_project | nano_arenacpe:2.3:a:nano_arena_project:nano_arena:*:*:*:*:*:rust:*:* |
< 0.5.2 | 0.5.2 |
| OSV | crates.io | nano_arena | < 0.5.2 | 0.5.2 |
| OSV | crates.io | nano_arena | >= 0.0.0-0, < 0.5.2 | 0.5.2 |
References
- https://rustsec.org/advisories/RUSTSEC-2021-0031.html · Exploit, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-28032 · ADVISORY
- https://github.com/bennetthardwick/nano-arena/issues/1 · WEB, REPORT
- https://github.com/bennetthardwick/nano-arena/commit/6b83f9d0708337a9f8b709c1624a8587021ceba2 · WEB
- https://github.com/bennetthardwick/nano-arena · PACKAGE
- https://crates.io/crates/nano_arena · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 5 Mar 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 31 Jan 2021)