Advisory

RUSTSEC-2025-0030

Also known as: None

Summary

totally-safe-transmute allows transmuting any type to any other type in safe Rust

Details

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

Severity

Not rated by the source.

Dates

Published
2025-02-10 12:00 UTC
Modified
2025-05-06 20:14 UTC

Affected packages and fixes

totally-safe-transmute

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences