CVE-2021-45685: columnar - Read on uninitialized buffer may cause UB

columnar Updated 02 Oct 2025

Summary

07/01/2021
Yes i
Critical
9.8

CVE-2021-45685: columnar: Read on uninitialized buffer may cause UB (ColumnarReadExt::read_typed_vec()). Affects columnar versions >= 0.0.0-0, < 0.1.0. Fixed in 0.1.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The columnar crate is a library available on crates.io that provides functionality for working with columnar data. It allows users to read and write data in a columnar format, which can be more efficient for certain operations. However, versions of this crate prior to 0.0.0-0 are affected by a vulnerability that can lead to undefined behavior (UB) when performing a Read operation on an uninitialized buffer.

Vulnerability Detail

The vulnerability in the columnar crate arises from passing an uninitialized buffer to a user-provided Read implementation (ColumnarReadExt::read_typed_vec()). This allows arbitrary Read implementations to read from the uninitialized buffer, potentially exposing sensitive memory contents. Additionally, the Read implementation can return an incorrect number of bytes written to the buffer, leading to further issues. Reading from uninitialized memory can result in undefined values and invoke undefined behavior, posing a significant security risk.

How To Fix

Latest published version: 0.13.2 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, developers can avoid using the ColumnarReadExt::read_typed_vec() function or ensure that the buffer passed to it is properly initialized before calling the function. By initializing the buffer with valid data, the risk of memory exposure and undefined behavior can be mitigated.

Conclusion

The columnar crate prior to version 0.0.0-0 is vulnerable to a read on uninitialized buffer issue, which can lead to memory exposure and undefined behavior. It is crucial for developers to update their dependencies to a patched version of the crate to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for columnar →

Share this vulnerability

FAQ

This vulnerability can lead to memory exposure and undefined behavior, which can be exploited by attackers to read sensitive information or cause the application to behave unpredictably.

Yes, all versions prior to 0.0.0-0 are affected by this vulnerability.

No, a CVSS score is not available for this vulnerability as it is categorized as 'unsound' in the advisory.

More information about this vulnerability can be found in the advisory on the RustSec advisory database: https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0087.json

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability. The playground allows you to analyze your Cargo.lock file without requiring any signup or installation.

Related vulnerabilities

Recent vulnerabilities recorded for columnar.

How To Fix

Latest published version: 0.13.2 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback