Security mailing lists by PureSourceCode

CVE-2021-28032

CRITICAL 9.8CVSS 3.1

Use after free in nano_arena

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.

Published
5 Mar 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-416
Also known as
GHSA-wp34-mqw5-jj85RUSTSEC-2021-0031
Sources
NVDJSONOSV GHSA-wp34-mqw5-jj85JSONOSV RUSTSEC-2021-0031JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV RustSec CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nano_arena_project nano_arena
cpe:2.3:a:nano_arena_project:nano_arena:*:*:*:*:*:rust:*:*
< 0.5.2 0.5.2
OSV crates.io nano_arena < 0.5.2 0.5.2
OSV crates.io nano_arena >= 0.0.0-0, < 0.5.2 0.5.2

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 5 Mar 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 31 Jan 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.