GHSA-36xm-35qq-795w
JSON

medium

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

Severity
medium rating by GitHub
Published
Last changed
Also known as
RUSTSEC-2023-0058

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

Product or packageVersionsReported by
inventory (crates.io)before 0.2.0, from 0.0.0-0 before 0.2.0GitHub Advisory Database, RustSec Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-36xm-35qq-795w changed 2024-02-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2023-0058 changed 2024-02-10CC0-1.0