Out-of-bounds Write Affecting stack package, versions <0.3.1


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.21% (60th 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-STACK-1012728
  • published25 Sept 2020
  • disclosed24 Sept 2020
  • creditUnknown

Introduced: 24 Sep 2020

CVE-2020-35895  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade stack to version 0.3.1 or higher.

Overview

stack is a package that implements dynamically sized types over stack allocated arrays.

Affected versions of this package are vulnerable to Out-of-bounds Write. ArrayVec::insert allows insertion of an element into the array object into the specified index. Due to a missing check on the upper bound of this index, it is possible to write out of bounds.

References

CVSS Scores

version 3.1