CVE-2021-28032
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the nano_arena crate before 0.5.2 for Rust, identified as CVE-2021-28032. The vulnerability was reported on January 31, 2021, and officially issued on March 2, 2021. The vulnerability affects the nano_arena crate's implementation of the split_at function, which contains an aliasing violation that could lead to serious security implications (RustSec Advisory).

Technical details

The vulnerability stems from an incorrect assumption in the nano_arena crate's implementation where it assumed that Borrow was guaranteed to return the same value on .borrow(). The borrowed index value was used to retrieve a mutable reference to a value. If the Borrow implementation returned a different index, the split arena would allow retrieving the index as a mutable reference, creating two mutable references to the same element. This violates Rust's aliasing rules. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (RustSec Advisory).

Impact

The vulnerability can result in memory safety issues, potentially leading to out-of-bounds writes or use-after-free conditions. This could allow attackers to compromise system security and potentially execute arbitrary code (RustSec Advisory).

Exploitability

The vulnerability affects the split_at function in versions prior to 0.5.2 of the nano_arena crate. The issue can be triggered when the Borrow implementation behaves in certain ways, allowing for the creation of multiple mutable references to the same memory location (RustSec Advisory).

Mitigation and workarounds

The vulnerability was fixed in version 0.5.2 of the nano_arena crate. The fix was implemented in commit 6b83f9d by storing the .borrow() value in a temporary variable. Users should upgrade to version 0.5.2 or later to mitigate this vulnerability (RustSec Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0242NONEN/A
  • Rust logoRust
  • dcrypt-api
NoYesAug 09, 2026
RUSTSEC-2026-0240NONEN/A
  • Rust logoRust
  • dcrypt-sign
NoYesAug 09, 2026
RUSTSEC-2026-0239NONEN/A
  • Rust logoRust
  • dcrypt-symmetric
NoYesAug 09, 2026
RUSTSEC-2026-0238NONEN/A
  • Rust logoRust
  • dcrypt-algorithms
NoYesAug 09, 2026
RUSTSEC-2026-0246NONEN/A
  • Rust logoRust
  • sevenz-rust
NoNoAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management