Advisory

RUSTSEC-2021-0029

Also known as: CVE-2021-28030, GHSA-v7q4-97x4-4qw2

Summary

Tape::take_bytes exposes uninitialized memory to a user-provided Read

Details

Affected versions of this crate passed an unininitialized buffer to a
user-provided Read instance in Tape::take_bytes.

This can result in safe Read implementations reading from the uninitialized
buffer leading to undefined behavior.

The flaw was corrected in commit 1f2dc7f37dd by removing the unsafe block
and zero-initializing the buffer.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2021-02-17 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

truetype

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.30.1 (semver)

Fixed versions

0.30.1

Fix

  • Fixed version 0.30.1
    cargo update -p truetype --precise 0.30.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences