Advisory

RUSTSEC-2018-0013

Also known as: CVE-2018-21000, GHSA-2v78-j59h-fmpf

Summary

Vec-to-vec transmutations could lead to heap overflow/corruption

Details

Affected versions of this crate switched the length and capacity arguments in the Vec::from_raw_parts() constructor,
which could lead to memory corruption or data leakage.

The flaw was corrected by using the constructor correctly.

Severity

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

Dates

Published
2018-11-27 12:00 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

safe-transmute

crates.io · All systems

Affected

  • introduced 0.4.0, fixed 0.10.1 (semver)

Fixed versions

0.10.1

Fix

  • Fixed version 0.10.1
    cargo update -p safe-transmute --precise 0.10.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