PT-2020-17559 · Rust · Thex

Published

2020-12-08

·

Updated

2021-08-25

·

CVE-2020-35927

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions thex crate through 2020-12-08
Description An issue in the thex crate allows cross-thread data races of non-Send types. Specifically, thex::Thex<T> implements Sync for all types T, but it is missing a bound for T: Send. This allows non-Send types, such as Rc, to be sent across thread boundaries, which can trigger undefined behavior and memory corruption.
Recommendations For thex crate through 2020-12-08, consider restricting the use of thex::Thex<T> to only Send types to minimize the risk of exploitation. As a temporary workaround, avoid using thex::Thex<T> with non-Send types such as Rc until a patch is available. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-35927
GHSA-J42V-6WPM-R847
RUSTSEC-2020-0090

Affected Products

Thex