RUSTSEC-2025-0030
Not scored
totally-safe-transmute allows transmuting any type to any other type in safe Rust
- Severity
- Not scored
- Published
- Last changed
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
| Product or package | Versions | Reported by |
|---|---|---|
| totally-safe-transmute (crates.io) | from 0.0.0-0 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2025-0030 changed 2025-05-06 | CC0-1.0 |