{"id":"RUSTSEC-2025-0030","aliases":["RUSTSEC-2025-0030"],"related":[],"kind":"vulnerability","state":"published","title":"totally-safe-transmute allows transmuting any type to any other type in safe Rust","summary":"This crate is a toy and should never be used.\n\nIt 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.\n\nSee also <https://doc.rust-lang.org/std/os/unix/io/index.html#procselfmem-and-similar-os-features>","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"This crate is a toy and should never be used.\n\nIt 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.\n\nSee also <https://doc.rust-lang.org/std/os/unix/io/index.html#procselfmem-and-similar-os-features>","format":"markdown","source":"rustsec"}],"published":"2025-02-10T12:00:00.000Z","modified":"2025-05-06T20:14:30.000Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"totally-safe-transmute","purl":"pkg:cargo/totally-safe-transmute","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/totally-safe-transmute","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0030.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/ben0x539/totally-safe-transmute","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0030","url":"https://rustsec.org/advisories/RUSTSEC-2025-0030.html","licence":"CC0-1.0","modified":"2025-05-06T20:14:30.000Z"}],"updatedAt":"2026-11-25T22:56:43.253Z"}