GitHub Advisoryadvisory · crates.io

GHSA-xwxc-j97j-84gf Race condition in Parc

HIGH Published 2021-08-25 Modified 2023-06-13 Official page ↗
Ecosystem
crates.io
Packages
parc
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-362
Reviewed
2021-08-09

Affected packages

• crates.io parc: <= 1.0.1 (no fix yet)

Description

In the affected versions of this crate, `LockWeak` unconditionally implemented `Send` with no trait bounds on `T`. `LockWeak` 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.

Related

Weakness · CWE (1)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness

References