Skip to content

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

Unknown
Published
Updated
Exploit status
No public exploit known

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

Upgrade path

1 package: 0 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
crates.io totally-safe-transmute(crates.io) >= 0.0.0-0 No fix listed No fix yet

Affected products

ProductAffected versionsFixed in
crates.io totally-safe-transmute(crates.io) >= 0.0.0-0 No fix listed

References