RUSTSEC-2025-0030
not scored yettotally-safe-transmute allows transmuting any type to any other type in safe Rust
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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | totally-safe-transmute | >= 0.0.0-0 |
References
- https://crates.io/crates/totally-safe-transmute · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0030.html · ADVISORY
- https://github.com/ben0x539/totally-safe-transmute · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Feb 2025)