PT-2020-17521 · Rust · Crayon

Published

2020-08-31

·

Updated

2021-08-25

·

CVE-2020-35889

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions crayon crate through 2020-08-31 for Rust
Description The issue is related to a time-of-check to time-of-use (TOCTOU) bug in the ObjectPool and HandlePool, which can lead to a memory safety violation via HandleLike. This is because the HandleLike trait methods are assumed to be pure, but this assumption is unsound as HandleLike is a safe, public trait that allows custom implementations.
Recommendations For the crayon crate through 2020-08-31, consider restricting the use of the ObjectPool and HandlePool until a fix is available, and avoid using custom implementations of the HandleLike trait to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Time Of Check To Time Of Use

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-35889
GHSA-M833-JV95-MFJH
RUSTSEC-2020-0037

Affected Products

Crayon