PT-2018-15493 · Rust · Safe-Transmute

Enet4

+1

·

Published

2018-11-27

·

Updated

2021-08-25

·

CVE-2018-21000

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions safe-transmute crate versions prior to 0.10.1
Description An issue was discovered in the safe-transmute crate where a constructor's arguments are in the wrong order, causing heap memory corruption. The 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.
Recommendations For versions prior to 0.10.1, update to version 0.10.1 or later to fix the issue. As a temporary workaround, consider using the Vec::from raw parts() constructor correctly by ensuring the length and capacity arguments are in the correct order until a patch is available.

Fix

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2018-21000
GHSA-2V78-J59H-FMPF
RUSTSEC-2018-0013

Affected Products

Safe-Transmute