Affected versions
Version ranges need review.
Rust / Cargosafe-transmute
- Affected versions
- >=0.4.0 <0.10.1
- Fixed version
- 0.10.1
Rust / Cargosafe-transmute
- Affected versions
- >= 0.4.0, < 0.10.1
- Fixed version
- 0.10.1
Exploitation
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.
Links
- https://crates.io/crates/safe-transmute
- https://github.com/advisories/GHSA-2v78-j59h-fmpf
- https://github.com/nabijaczleweli/safe-transmute-rs
- https://github.com/nabijaczleweli/safe-transmute-rs/commit/a134e06d740f9d7c287f74c0af2cd06206774364
- https://github.com/nabijaczleweli/safe-transmute-rs/pull/36
- https://nvd.nist.gov/vuln/detail/CVE-2018-21000
- https://rustsec.org/advisories/RUSTSEC-2018-0013.html
Credits
- tdunlap607

