critical9.8
CVE-2018-21000
Heap overflow or corruption in safe-transmute
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | safe-transmute | >= 0.4.0, < 0.10.1 | 0.10.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Safe-Transmute Project | Safe-Transmute | before 0.10.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/nabijaczleweli/safe-transmute-rs/pull/36
- https://rustsec.org/advisories/RUSTSEC-2018-0013.html
- https://github.com/advisories/GHSA-2v78-j59h-fmpf
- https://nvd.nist.gov/vuln/detail/CVE-2018-21000
- https://github.com/nabijaczleweli/safe-transmute-rs/commit/a134e06d740f9d7c287f74c0af2cd06206774364