Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. abomonation
  4. ›
  5. GHSA-hfxp-p695-629x

GHSA-hfxp-p695-629x: abomonation transmutes &T to and from &[u8] without sufficient constraints

June 16, 2022 (updated June 13, 2023)

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.

References

  • github.com/TimelyDataflow/abomonation
  • github.com/TimelyDataflow/abomonation/issues/23
  • github.com/advisories/GHSA-hfxp-p695-629x
  • rustsec.org/advisories/RUSTSEC-2021-0120.html

Code Behaviors & Features

Detect and mitigate GHSA-hfxp-p695-629x with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.7.3

Solution

Unfortunately, there is no solution available yet.

Source file

cargo/abomonation/GHSA-hfxp-p695-629x.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:28 +0000.