CVE-2021-28030
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the truetype crate before version 0.30.1 for Rust, identified as CVE-2021-28030. The vulnerability was reported on February 17, 2021, and officially issued on March 1, 2021. This security flaw allows attackers to read the contents of uninitialized memory locations through a user-provided Read operation within the Tape::take_bytes function (RustSec Advisory).

Technical details

The vulnerability stems from the Tape::take_bytes function passing an uninitialized buffer to a user-provided Read instance. This implementation flaw can result in safe Read implementations reading from the uninitialized buffer, leading to undefined behavior. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating network accessibility, low attack complexity, and high impact on confidentiality (NVD).

Impact

The primary impact of this vulnerability is the potential exposure of uninitialized memory contents to attackers. This could lead to information disclosure of sensitive data that might be present in the memory locations accessed through the vulnerable function (RustSec Advisory).

Exploitability

The vulnerability can be exploited remotely without requiring any privileges or user interaction. The attack complexity is considered low, making it relatively straightforward for attackers to exploit (NVD).

Mitigation and workarounds

The vulnerability was patched in version 0.30.1 of the truetype crate. The fix was implemented in commit 1f2dc7f37dd by removing the unsafe block and implementing zero-initialization of the buffer. Users should upgrade to version 0.30.1 or later to address this security issue (RustSec Advisory).

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-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 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