Headline
GHSA-cxcc-q839-2cw9: columnar: `Read` on uninitialized buffer may cause UB (ColumnarReadExt::read_typed_vec())
Affected versions of this crate passes an uninitialized buffer to a user-provided Read
implementation (ColumnarReadExt::read_typed_vec()
).
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.
- GitHub Advisory Database
- GitHub Reviewed
- GHSA-cxcc-q839-2cw9
columnar: `Read` on uninitialized buffer may cause UB (ColumnarReadExt::read_typed_vec())
High severity GitHub Reviewed Published Jun 16, 2022
Package
cargo columnar (Rust)
Affected versions
<= 0.0.19
Description
Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation (ColumnarReadExt::read_typed_vec()).
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
- frankmcsherry/columnar#6
- https://rustsec.org/advisories/RUSTSEC-2021-0087.html
GHSA ID
GHSA-cxcc-q839-2cw9
Source code