# CVE-2021-28032: Use after free in nano_arena

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.55%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-31T12:00:00.000Z
- Modified: 2026-06-17T03:45:45.043Z
- Also known as: GHSA-wp34-mqw5-jj85, RUSTSEC-2021-0031
- Weaknesses: CWE-416
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- nano_arena (crates.io): before 0.5.2; from 0.0.0-0 before 0.5.2
- nano_arena_project nano_arena: before 0.5.2

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0031.html> (exploit, advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28032> (advisory)
- <https://github.com/bennetthardwick/nano-arena/issues/1> (report, web)
- <https://github.com/bennetthardwick/nano-arena/commit/6b83f9d0708337a9f8b709c1624a8587021ceba2> (web)
- <https://github.com/bennetthardwick/nano-arena> (package)
- <https://crates.io/crates/nano_arena> (package)

## Sources

- CVE List: [CVE-2021-28032](https://www.cve.org/CVERecord?id=CVE-2021-28032), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-wp34-mqw5-jj85](https://github.com/advisories/GHSA-wp34-mqw5-jj85), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0031](https://rustsec.org/advisories/RUSTSEC-2021-0031.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-28032](https://nvd.nist.gov/vuln/detail/CVE-2021-28032), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-28032 · Whole record: https://cve.day/CVE-2021-28032.json · Rebuilt by cve.day 2026-11-25T22:58:00.154Z
