Advisory

RUSTSEC-2020-0132

Also known as: CVE-2020-36452, GHSA-6wp2-fw3v-mfmc

Summary

FixedCapacityDequeLike::clone() can cause dropping uninitialized memory

Details

Affected versions of this crate don't guard against panics, so that partially uninitialized buffer is dropped when user-provided T::clone() panics in FixedCapacityDequeLike<T, A>::clone(). This causes memory corruption.

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-12-31 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

array-tools

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.2 (semver)

Fixed versions

0.3.2

Fix

  • Fixed version 0.3.2
    cargo update -p array-tools --precise 0.3.2

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