GitHub Advisoryadvisory · crates.io
GHSA-2v78-j59h-fmpf Heap overflow or corruption in safe-transmute
CRITICAL
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
- https://nvd.nist.gov/vuln/detail/CVE-2018-21000 advisory
- https://github.com/nabijaczleweli/safe-transmute-rs/pull/36 web
- https://github.com/nabijaczleweli/safe-transmute-rs/commit/a134e06d740f9d7c287f74c0af2cd06206774364 web
- https://github.com/nabijaczleweli/safe-transmute-rs package
- https://rustsec.org/advisories/RUSTSEC-2018-0013.html web