logo

GHSA-hfxp-p695-629x abomonation

Package

Manager: cargo
Name: abomonation
Vulnerable Version: >=0 <=0.7.3

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

EPSS: N/A pctlN/A

Details

abomonation transmutes &T to and from &[u8] without sufficient constraints 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.

Metadata

Created: 2022-06-16T23:24:29Z
Modified: 2023-06-13T16:02:38Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-hfxp-p695-629x/GHSA-hfxp-p695-629x.json
CWE IDs: []
Alternative ID: N/A
Finding: F113
Auto approve: 1