Advisory

RUSTSEC-2020-0041

Also known as: CVE-2020-25791, CVE-2020-25792, CVE-2020-25793, CVE-2020-25794, CVE-2020-25795, CVE-2020-25796, GHSA-64gv-qg2v-vxv6, GHSA-9p9m-9xww-qjcx, GHSA-fqpx-cq8x-9wp4, GHSA-mp6f-p9gp-vpj9, GHSA-rfgg-vccr-m46m, GHSA-x54v-qxxr-93qc

Summary

Multiple soundness issues in Chunk and InlineArray

Details

Chunk:

  • Array size is not checked when constructed with unit() and pair().
  • Array size is not checked when constructed with From<InlineArray<A, T>>.
  • Clone and insert_from are not panic-safe; A panicking iterator causes memory safety issues with them.

InlineArray:

  • Generates unaligned references for types with a large alignment requirement.

Severity

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

Dates

Published
2020-09-06 12:00 UTC
Modified
2024-03-15 00:05 UTC

Affected packages and fixes

sized-chunks

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.6.3 (semver)

Fixed versions

0.6.3

Fix

  • Fixed version 0.6.3
    cargo update -p sized-chunks --precise 0.6.3

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