VYPR
Critical severityNVD Advisory· Published Dec 26, 2021· Updated Aug 4, 2024

CVE-2021-45685

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.

PackageAffected versionsPatched versions
columnarcrates.io
<= 0.0.19

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.