Skip to content

Deserializing an array can free uninitialized memory in byte_struct

Critical severity GitHub Reviewed Published Aug 25, 2021 to the GitHub Advisory Database • Updated Mar 31, 2023

Package

cargo byte_struct (Rust)

Affected versions

< 0.6.1

Patched versions

0.6.1

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.

References

Published by the National Vulnerability Database Mar 5, 2021
Reviewed Aug 19, 2021
Published to the GitHub Advisory Database Aug 25, 2021
Last updated Mar 31, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2021-28033

GHSA ID

GHSA-8fgg-5v78-6g76

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.