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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io totally-safe-transmute(crates.io) | >= 0.0.0-0 | No fix listed | No fix yet |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io totally-safe-transmute(crates.io) | >= 0.0.0-0 | No fix listed |
References
- crates.io product
- rustsec.org vendor-advisory
- github.com