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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-02-10T12:00:00.000Z
- Modified: 2025-05-06T20:14:30.000Z

## 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>

(As written by RustSec Advisory Database.)

## Affected

- totally-safe-transmute (crates.io): from 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)

## Sources

- RustSec Advisory Database: [RUSTSEC-2025-0030](https://rustsec.org/advisories/RUSTSEC-2025-0030.html), CC0-1.0, modified 2025-05-06

---

Page: https://cve.day/RUSTSEC-2025-0030 · Whole record: https://cve.day/RUSTSEC-2025-0030.json · Rebuilt by cve.day 2026-11-25T22:56:43.253Z
