RUSTSEC-2021-0008
Dashboard / Vulnerabilities / RUSTSEC-2021-0008
RUSTSEC-2021-0008
Published: 2 Jan 2021Last Modified: 8 Nov 2023
Aliases:
Summary: reading on uninitialized buffer can cause UB (`impl<R> BufRead for GreedyAccessReader<R>`)
Details: Affected versions of this crate creates an uninitialized buffer and passes it to user-provided `Read` implementation. This is unsound, because it allows safe Rust code to exhibit an undefined behavior (read from uninitialized memory). The flaw was corrected in version 0.1.1 by zero-initializing a newly allocated buffer before handing it to a user-provided `Read` implementation.
References: https://crates.io/crates/bra, https://rustsec.org/advisories/RUSTSEC-2021-0008.html, https://github.com/Enet4/bra-rs/issues/1
Affected packages
Package
Name: bra
Purl: pkg:cargo/bra
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -0.1.1
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
