Out-of-bounds Write Affecting nano_arena package, versions <0.5.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.87% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-NANOARENA-1082878
  • published5 Mar 2021
  • disclosed5 Mar 2021
  • creditUnknown

Introduced: 5 Mar 2021

CVE-2021-28032  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade nano_arena to version 0.5.2 or higher.

Overview

nano_arena is a tiny arena allocator that uses atomics.

Affected versions of this package are vulnerable to Out-of-bounds Write. 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.

References

CVSS Scores

version 3.1