CVE-2021-45708: Abomonation transmutes &T to and from &[u8] without sufficient constraints
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52109%
CWE
Published
1/6/2022
Updated
6/13/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
abomonation | rust | <= 0.7.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The core vulnerability stems from unsafe transmute operations between arbitrary types and byte slices. The advisory specifically references transmute operations at the heart of serialization/deserialization. encode()
and decode()
are fundamental functions in serialization crates that would handle these conversions. The CWE-668 exposure occurs because these functions: 1) Assume repr(Rust) layout stability 2) Ignore alignment requirements 3) Expose padding bytes 4) Allow pointer reconstruction. The high confidence comes from the advisory's direct mention of these being central operations and the nature of Rust serialization patterns.