RUSTSEC-2021-0120
(unsound)
on 2021-10-17: abomonation transmutes &T to and from &[u8] without sufficient constraints
This crate has no reviews yet. To add a review, set up your cargo-crev.
Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories. There is absolutely no guarantee that the repository URL declared by the crate belongs to the crate, or that the code in the repository is the code inside the published tarball.
To review the actual code of the crate, it's best to use cargo crev open abomonation. Alternatively, you can download the tarball of abomonation v0.7.3 or view the source online.
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.
CVE-2021-45708
GHSA-5vwc-r48g-wj6c
GHSA-hfxp-p695-629x