Skip to content
OpenAdvisories
Unscored RUSTSEC-2025-0030

totally-safe-transmute allows transmuting any type to any other type in safe Rust

Published Feb 10, 2025 · Updated May 6, 2025 · Assigned by RUSTSEC

Description

This crate is a toy and should never be used.

It showcases a known soundness issue (https://github.com/rust-lang/rust/issues/32670) that will never get fixed. In short, Linux provides a file called `/proc/self/mem` which can be used by a program to modify its own memory. This library modifies an enum variant number by accessing its own memory as a file to effectively transmute a variable.

See also <https://doc.rust-lang.org/std/os/unix/io/index.html#procselfmem-and-similar-os-features>

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io totally-safe-transmute >= 0.0.0-0 — RUSTSEC-2025-0030

References