CVE-2021-45685
Description
An issue was discovered in the columnar crate through 2021-01-07 for Rust. ColumnarReadExt::read_typed_vec may read from uninitialized memory locations.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
The columnar crate's read_typed_vec function reads from uninitialized memory, causing undefined behavior.
Vulnerability
The ColumnarReadExt::read_typed_vec method in the columnar crate (versions through 2021-01-07) passes an uninitialized buffer to a user-provided Read implementation. This occurs when the method reserves capacity with vector.reserve(len) and then uses unsafe { vector.set_len(len); } without initializing the memory [3].
Exploitation
An attacker who can supply a custom Read implementation to read_typed_vec() can read data from uninitialized memory, leading to exposure of sensitive information or creation of undefined values. The function is reachable from safe Rust code when a user passes a Read instance that does not properly handle uninitialized buffers [3].
Impact
Successful exploitation results in reading from uninitialized memory, which can produce undefined values and lead to undefined behavior (UB). This may cause information disclosure or memory corruption [4].
Mitigation
As of the last available references, no patched version of the columnar crate has been released. Workarounds include zero-initializing the buffer before calling read() or avoiding the use of read_typed_vec() with untrusted Read implementations [3][4].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
columnarcrates.io | <= 0.0.19 | — |
Affected products
3- columnar/columnardescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-9mp7-45qh-r8j8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-45685ghsaADVISORY
- github.com/frankmcsherry/columnar/issues/6ghsaWEB
- raw.githubusercontent.com/rustsec/advisory-db/main/crates/columnar/RUSTSEC-2021-0087.mdghsax_refsource_MISCWEB
- rustsec.org/advisories/RUSTSEC-2021-0087.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.