RUSTSEC-2021-0029

Source
https://rustsec.org/advisories/RUSTSEC-2021-0029
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0029.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0029
Aliases
Published
2021-02-17T12:00:00Z
Modified
2023-11-08T04:05:27.666883Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / truetype

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.30.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
    "informational": null,
    "categories": [
        "memory-exposure"
    ]
}