Vulnerability DatabaseRUSTSEC-2021-0085

RUSTSEC-2021-0085
Rust vulnerability analysis and mitigation

Overview

The vulnerability (RUSTSEC-2021-0085/CVE-2021-45683) was discovered in the binjs_io crate through version 2021-01-03 for Rust. The issue was identified by the Rust research group at Georgia Tech (sslab-gatech) and disclosed on January 3, 2021. The vulnerability affects the Read method implementation in the binjs_io crate, which could potentially lead to reading from uninitialized memory locations (NIST NVD, GitHub Issue).

Technical details

The vulnerability stems from four instances where uninitialized buffers are created and passed to user-provided Read implementations. This violates the Read trait documentation's safety requirements, which explicitly states that buffers must be initialized before calling read. The issue was found in multiple source files including compress.rs, util.rs, and read.rs. The CVSS v3.1 base score is 9.8 (CRITICAL) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The vulnerability is classified as CWE-908 (Use of Uninitialized Resource) (NIST NVD).

Impact

The vulnerability allows safe Rust code to exhibit undefined behavior through reading from uninitialized memory. This could potentially lead to memory safety violations and security implications, particularly given the critical CVSS score of 9.8 (NIST NVD).

Exploitability

The vulnerability can be triggered when using the Read method implementation in affected versions of the binjs_io crate. The low attack complexity (AC:L) and no requirements for privileges (PR:N) or user interaction (UI:N) make this vulnerability particularly concerning (NIST NVD).

Mitigation and workarounds

The suggested fix involves zero-initializing the newly allocated u8 buffer before read(), which prevents user-provided Read from accessing old contents of the newly allocated heap memory. This ensures that no uninitialized memory can be accessed during the read operation (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-46369HIGH7.5
  • Rust logoRust
  • nimiq-blockchain
NoYesAug 12, 2026
CVE-2026-73430MEDIUM5.3
  • Rust logoRust
  • russh
NoYesAug 12, 2026
CVE-2026-73429MEDIUM5.3
  • Rust logoRust
  • russh
NoYesAug 12, 2026
RUSTSEC-2026-0256NONEN/A
  • Rust logoRust
  • circular-buffer
NoYesAug 11, 2026
RUSTSEC-2026-0255NONEN/A
  • Rust logoRust
  • sized-chunks
NoNoAug 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management