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.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | nano_arena | < 0.5.2 | 0.5.2 | GHSA-wp34-mqw5-jj85 |
| crates.io | nano_arena | >= 0.0.0-0, < 0.5.2 | 0.5.2 | RUSTSEC-2021-0031 |