CVE-2021-28032 json
Use after free in nano_arena
published 2021-01-31 5 y ago modified 2026-06-17 4 mo ago also GHSA-wp34-mqw5-jj85 , RUSTSEC-2021-0031 , EUVD-2021-1918
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io nano_arena 0.5.2
- nano_arena_project nano_arena 0.5.2
Exploit prediction
1.53% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0031.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | nano_arena | <0.5.2 >=0.0.0-0, <0.5.2 |
0.5.2 |
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
rustsec.org
/advisories/RUSTSEC-2021-0031.html
web, exploit, patch, third-party-advisory, advisory
-
github.com
/bennetthardwick/nano-arena/commit/6b83f9d0708337a9f8b709c1624a8587021ceba2
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-28032
advisory
-
github.com
/bennetthardwick/nano-arena/issues/1
web, report
-
github.com
/bennetthardwick/nano-arena
package
-
crates.io
/crates/nano_arena
package
Sources
- CVE List CVE-2021-28032
- GitHub Advisory GHSA-wp34-mqw5-jj85
- NVD CVE-2021-28032
- OSV RUSTSEC-2021-0031
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.