RUSTSEC-2021-0120

Source
https://rustsec.org/advisories/RUSTSEC-2021-0120
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0120.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0120
Aliases
Published
2021-10-17T12:00:00Z
Modified
2023-11-08T04:07:23.115580Z
Summary
abomonation transmutes &T to and from &[u8] without sufficient constraints
Details

This transmute is at the core of the abomonation crates. It's so easy to use it to violate alignment requirements that no test in the crate's test suite passes under miri. The use of this transmute in serialization/deserialization also incorrectly assumes that the layout of a repr(Rust) type is stable. This transmute can also disclose both the contents of padding bytes which may be an information leak and the contents of pointers, which may be used to defeat ASLR.

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

Affected packages

crates.io / abomonation

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

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

Database specific

{
    "cvss": null,
    "informational": "unsound",
    "categories": []
}