GitHub Advisoryadvisory · crates.io

GHSA-hv9v-7w3v-rj6f `Read` on uninitialized buffer in `fill_buf()` and `read_up_to()`

HIGH Published 2022-06-16 Modified 2023-06-13 Official page ↗
Ecosystem
crates.io
Packages
acc_reader
Severity
High
Reviewed
2022-06-16

Affected packages

• crates.io acc_reader: <= 2.0.0 (no fix yet)

Description

Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation. Arbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.

References