Advisory

RUSTSEC-2021-0120

Also known as: CVE-2021-45708, GHSA-5vwc-r48g-wj6c, GHSA-hfxp-p695-629x

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.

Severity

Not rated by the source.

Dates

Published
2021-10-17 12:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

abomonation

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