CVE-2021-45685: columnar: Read on uninitialized buffer may cause UB (ColumnarReadExt::read_typed_vec())
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.61972%
CWE
Published
1/6/2022
Updated
6/13/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
columnar | rust | <= 0.0.19 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability is explicitly documented in multiple sources (CVE, GHSA, RustSec) as residing in ColumnarReadExt::read_typed_vec(). The provided code sample shows unsafe usage of set_len followed by reading into uninitialized memory via a user-controlled Read implementation. The unsafe block manipulating vector length and the subsequent read into an uninitialized slice directly matches the described vulnerability pattern of CWE-908 (Use of Uninitialized Resource).