Alias Violation in split_at Function Leading to Out-of-Bounds Write or Use-After-Free Vulnerability

Alias Violation in split_at Function Leading to Out-of-Bounds Write or Use-After-Free Vulnerability

CVE-2021-28032 · CRITICAL Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

Learn more about our Web Application Penetration Testing UK.