GHSA-hfxp-p695-629x

Suggest an improvement
Source
https://github.com/advisories/GHSA-hfxp-p695-629x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-hfxp-p695-629x/GHSA-hfxp-p695-629x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hfxp-p695-629x
Aliases
Published
2022-06-16T23:24:29Z
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
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-16T23:24:29Z"
}
References

Affected packages

crates.io / abomonation

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.7.3