PT-2020-17637 · Rust · Toolshed Crate

Published

2020-11-15

·

Updated

2021-08-25

·

CVE-2020-36456

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 toolshed crate through 2020-11-15 for Rust
Description The issue concerns the CopyCell<T> type in the toolshed crate, which lacks bounds on the contained type for the Send trait. This means that even though not all Copyable types are thread-safe, it is possible to send references to types with interior mutability, such as Cell, across threads. This can cause data races, particularly with non-mutable references that implement the Copy trait.
Recommendations For the toolshed crate through 2020-11-15, consider restricting the use of CopyCell<T> to prevent sending references to types with interior mutability across threads until a fix is available. As a temporary workaround, avoid using the CopyCell<T> type for non-thread-safe Copyable types. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Command Injection

Race Condition

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

Weakness Enumeration

Related Identifiers

CVE-2020-36456
GHSA-2R6Q-6C8C-G762
RUSTSEC-2020-0136

Affected Products

Toolshed Crate