{"id":"CVE-2020-35895","aliases":["EUVD-2021-1737","GHSA-h45v-vgvp-3h5v","RUSTSEC-2020-0042"],"status":"published","title":"Out-of-bounds write in stack","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01866,"percentile":0.79452,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2020-09-24T12:00:00Z","modified":"2026-10-24T10:30:46Z","fixes":[{"ecosystem":"crates.io","package":"stack","fixed_in":["0.3.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"stack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"stack","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"stack","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.3.1"}]}]}],"products":[{"vendor":"stack_project","product":"stack"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0042.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35895","tags":["advisory"]},{"url":"https://github.com/arcnmx/stack-rs/issues/4","tags":["web","report"]},{"url":"https://github.com/arcnmx/stack-rs/commit/369e55736f9bd29c37b1712afc2923f4028148c6","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h45v-vgvp-3h5v"},{"url":"https://github.com/arcnmx/stack-rs","tags":["package"]},{"url":"https://crates.io/crates/stack","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-35895","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.","status":"published","published":"2020-12-31T08:23:44Z","modified":"2024-08-04T17:16:13.177Z","updated_at":"2026-11-02T14:35:57.975444Z"}],"euvd":[{"id":"EUVD-2021-1737","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.","status":"published","published":"2020-12-31T08:23:44Z","modified":"2024-08-04T17:16:13Z","updated_at":"2026-11-03T03:07:04.595509Z"}],"ghsa":[{"id":"GHSA-h45v-vgvp-3h5v","title":"Out-of-bounds write in stack","description":"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.","status":"published","published":"2021-08-25T20:49:13Z","modified":"2023-09-18T21:09:42Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:37:05.567008Z"}],"nvd":[{"id":"CVE-2020-35895","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.","status":"published","published":"2020-12-31T10:15:17.037Z","modified":"2026-06-17T03:14:33.323Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:06:28.340168Z"}],"osv":[{"id":"CVE-2020-35895","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.","status":"published","published":"2020-12-31T10:15:17.037Z","modified":"2026-10-24T10:30:46.384895288Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:16.612899Z"},{"id":"GHSA-h45v-vgvp-3h5v","title":"Out-of-bounds write in stack","description":"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.","status":"published","published":"2021-08-25T20:49:13Z","modified":"2023-11-08T04:03:37.99086Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:46:48.546324Z"},{"id":"RUSTSEC-2020-0042","title":"Missing check in ArrayVec leads to out-of-bounds write.","description":"ArrayVec::insert allows insertion of an element into the array object into the\nspecified index. Due to a missing check on the upperbound of this index, it is\npossible to write out of bounds.","status":"published","published":"2020-09-24T12:00:00Z","modified":"2023-11-08T04:03:37.99086Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
