Advisory

RUSTSEC-2020-0042

Also known as: CVE-2020-35895, GHSA-h45v-vgvp-3h5v

Summary

Missing check in ArrayVec leads to out-of-bounds write.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2020-09-24 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

stack

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.1 (semver)

Fixed versions

0.3.1

Fix

  • Fixed version 0.3.1
    cargo update -p stack --precise 0.3.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences