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

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.87%, higher than 79% of CVEs (2026-12-02)
- Published: 2020-09-24T12:00:00.000Z
- Modified: 2026-06-17T03:14:33.323Z
- Also known as: GHSA-h45v-vgvp-3h5v, RUSTSEC-2020-0042
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

An issue was discovered in the stack crate before 0.3.1 for Rust. ArrayVec has an out-of-bounds write via element insertion.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- stack (crates.io): before 0.3.1; from 0.0.0-0 before 0.3.1
- stack_project stack: before 0.3.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://rustsec.org/advisories/RUSTSEC-2020-0042.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35895> (advisory)
- <https://github.com/arcnmx/stack-rs/issues/4> (report, web)
- <https://github.com/arcnmx/stack-rs/commit/369e55736f9bd29c37b1712afc2923f4028148c6> (web)
- <https://github.com/arcnmx/stack-rs> (package)
- <https://crates.io/crates/stack> (package)

## Sources

- CVE List: [CVE-2020-35895](https://www.cve.org/CVERecord?id=CVE-2020-35895), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-h45v-vgvp-3h5v](https://github.com/advisories/GHSA-h45v-vgvp-3h5v), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2020-0042](https://rustsec.org/advisories/RUSTSEC-2020-0042.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2020-35895](https://nvd.nist.gov/vuln/detail/CVE-2020-35895), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-35895 · Whole record: https://cve.day/CVE-2020-35895.json · Rebuilt by cve.day 2026-11-25T22:57:56.702Z
