Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. stack
  4. ›
  5. CVE-2020-35895

CVE-2020-35895: Out-of-bounds write in stack

August 25, 2021 (updated June 13, 2023)

ArrayVec::insert allows insertion of an element into the array object into the specified index. Due to a missing check on the upperbound of this index, it is possible to write out of bounds.

References

  • github.com/advisories/GHSA-h45v-vgvp-3h5v
  • github.com/arcnmx/stack-rs
  • github.com/arcnmx/stack-rs/commit/369e55736f9bd29c37b1712afc2923f4028148c6
  • github.com/arcnmx/stack-rs/issues/4
  • nvd.nist.gov/vuln/detail/CVE-2020-35895
  • rustsec.org/advisories/RUSTSEC-2020-0042.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35895 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.1

Fixed versions

  • 0.3.1

Solution

Upgrade to version 0.3.1 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

cargo/stack/CVE-2020-35895.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.