All reports
Critical

Deserializing an array can free uninitialized memory in byte_struct

Affected versions

Version ranges need review.

Rust / Cargobyte_struct
Affected versions
>=0.0.0-0 <0.6.1
Fixed version
0.6.1
Rust / Cargobyte_struct
Affected versions
< 0.6.1
Fixed version
0.6.1

Exploitation

CVE-2021-28033

Probability of exploitation in the next 30 days: 1.30%

FIRST EPSS · 2026-11-20

Description

Byte_struct stack and unpack structure as raw bytes with packed or bit field layout. An issue was discovered in the byte_struct crate before 0.6.1 for Rust. There can be a drop of uninitialized memory if a certain deserialization method panics.

Links

Credits

  • tdunlap607