HistoryEdit

RUSTSEC-2020-0134

LockWeak<T> allows to create data race to T.

Reported
Issued
Package
parc (crates.io)
Type
Vulnerability
Categories
Aliases
Details
https://github.com/hyyking/rustracts/pull/6
CVSS Score
8.1 HIGH
CVSS Details
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
no patched versions

Description

In the affected versions of this crate, LockWeak<T> unconditionally implemented Send with no trait bounds on T. LockWeak<T> doesn't own T and only provides &T.

This allows concurrent access to a non-Sync T, which can cause undefined behavior like data races.