Vulnerability DatabaseRUSTSEC-2021-0014

RUSTSEC-2021-0014
Rust vulnerability analysis and mitigation

Overview

A memory-safety/soundness issue was discovered in the marc crate versions prior to 2.0.0 for Rust, identified as RUSTSEC-2021-0014. The vulnerability was reported on January 27, 2021, by the Rust group at Georgia Tech (sslab-gatech). The issue affects the Record::read method in the marc crate, which is a Rust library for handling MARC (Machine-Readable Cataloging) records (NVD, GitHub Issue).

Technical details

The vulnerability exists in the Record::read method where an uninitialized buffer is passed to a user-provided Read implementation. According to the Read trait documentation, it is unsafe to call read with an uninitialized buffer as it can lead to undefined behavior. The issue is located in the rust-marc/src/lib.rs file, where the code creates an uninitialized buffer and attempts to read into it. The vulnerability received a CVSS v3.1 Base Score of 7.5 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability allows a user-provided Read implementation to gain access to the old contents of newly allocated memory, violating memory safety guarantees. This could potentially lead to information disclosure by exposing uninitialized memory contents (NVD).

Exploitability

The vulnerability is exploitable through a custom Read implementation that can access uninitialized memory. The issue requires no special privileges or user interaction to exploit, as indicated by the CVSS metrics (NVD).

Mitigation and workarounds

A naive but safe approach to fix the issue is to zero-initialize the buffer before lending it to a user-provided Read implementation, though this adds runtime performance overhead. As of January 2021, there was no ideal fix available in stable Rust that would work without performance impact. Users should upgrade to version 2.0.0 or later of the marc crate (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

GHSA-m3wp-48jr-vr4gHIGH7.5
  • Rust logoRust
  • mistralrs-server-core
NoYesSep 10, 2026
GHSA-wfgq-w7cq-qj7jHIGH7.2
  • Rust logoRust
  • mistralrs-server-core
NoYesSep 10, 2026
CVE-2026-45056MEDIUM6.9
  • Rust logoRust
  • matrix-sdk-crypto
NoYesSep 11, 2026
CVE-2026-53956MEDIUM5.4
  • Python logoPython
  • rattler_cache
NoYesSep 09, 2026
CVE-2026-45057MEDIUM4.9
  • Rust logoRust
  • matrix-sdk-ui
NoYesSep 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