Skip to content
OpenAdvisories
Medium GHSA-36xm-35qq-795w RUSTSEC-2023-0058

Inventory exposes reference to non-Sync data to an arbitrary thread

Published Sep 11, 2023 · Updated Feb 10, 2024 · Assigned by GHSA

Description

Affected versions do not enforce a `Sync` bound on the type of caller-provided value held in the plugin registry. References to these values are made accessible to arbitrary threads other than the one that constructed them.

A caller could use this flaw to submit thread-unsafe data into inventory, then access it as a reference simultaneously from multiple threads.

The flaw was corrected by enforcing that data submitted by the caller into inventory is `Sync`.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io inventory < 0.2.0 0.2.0 GHSA-36xm-35qq-795w
crates.io inventory >= 0.0.0-0, < 0.2.0 0.2.0 RUSTSEC-2023-0058

References