GitHub Advisoryadvisory · crates.io

GHSA-2v78-j59h-fmpf Heap overflow or corruption in safe-transmute

CRITICAL Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2018-21000
Ecosystem
crates.io
Packages
safe-transmute
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-119
Reviewed
2021-08-19

Affected packages

• crates.io safe-transmute: >= 0.4.0, < 0.10.1 → fixed in 0.10.1

Description

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.

Related

Alias · CVE (1)

  • CVE-2018-21000 An issue was discovered in the safe-transmute crate before 0.10.1 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer weakness

References