{"id":"CVE-2020-35895","aliases":["CVE-2020-35895","GHSA-h45v-vgvp-3h5v","RUSTSEC-2020-0042"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds write in stack","summary":"An issue was discovered in the stack crate before 0.3.1 for Rust. ArrayVec has an out-of-bounds write via element insertion.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the stack crate before 0.3.1 for Rust. ArrayVec has an out-of-bounds write via element insertion.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se detectó un problema en la crate stack versiones anteriores a 0.3.1 para Rust.&#xa0;La función ArrayVec presenta una escritura fuera de límites por medio de una inserción de elementos.","source":"nvd"}],"published":"2020-09-24T12:00:00.000Z","modified":"2026-06-17T03:14:33.323Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","score":10,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.1"}],"ecosystem":"crates.io","package":"stack","purl":"pkg:cargo/stack","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.3.1"}],"ecosystem":"crates.io","package":"stack","purl":"pkg:cargo/stack","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.3.1"}],"vendor":"stack_project","product":"stack","cpe":"cpe:2.3:a:stack_project:stack:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0042.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35895","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/arcnmx/stack-rs/issues/4","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/arcnmx/stack-rs/commit/369e55736f9bd29c37b1712afc2923f4028148c6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/arcnmx/stack-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/stack","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-35895","url":"https://www.cve.org/CVERecord?id=CVE-2020-35895","licence":"CVE Terms of Use","modified":"2024-08-04T17:16:13.177Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h45v-vgvp-3h5v","url":"https://github.com/advisories/GHSA-h45v-vgvp-3h5v","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:37.990Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0042","url":"https://rustsec.org/advisories/RUSTSEC-2020-0042.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:37.990Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35895","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35895","licence":"Public domain","modified":"2026-06-17T03:14:33.323Z"}],"updatedAt":"2026-11-25T22:57:56.702Z","epss":{"score":0.01866,"percentile":0.79939,"date":"2026-12-02T12:00:21.000Z"}}