RUSTSEC-2025-0030

Source
https://rustsec.org/advisories/RUSTSEC-2025-0030
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0030.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2025-0030
Published
2025-02-10T12:00:00Z
Modified
2025-05-06T20:14:30Z
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

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / totally-safe-transmute

Package

Name
totally-safe-transmute
View open source insights on deps.dev
Purl
pkg:cargo/totally-safe-transmute

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [],
        "os": []
    }
}

Database specific

categories
[
    "memory-corruption"
]
informational
"unsound"
cvss
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0030.json"